2006/unicorn/WebContent/WEB-INF/resources/templates xhtml10.vm,1.35,1.36

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv27718/WebContent/WEB-INF/resources/templates

Modified Files:
	xhtml10.vm 
Log Message:
fixed broken direct links in case of direct or upload input methods

Index: xhtml10.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/xhtml10.vm,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- xhtml10.vm	19 Oct 2009 16:31:32 -0000	1.35
+++ xhtml10.vm	19 Oct 2009 17:21:43 -0000	1.36
@@ -43,8 +43,8 @@
 		</span>
 		#if($observation.isPassed()) #set($ref = "test_ok") #else #set($ref = "test_fail") #end
 		$ucn.evaluate($lang, $ref, "<span class=\"name\">$unicorncall.getObserverName($observationName, $lang)#if($observation.isSetRating()) ($observation.Rating/100)#end</span>")
-		#if ($observation.getFilteredRequestUri())<a class="direct_link" href="$observation.getFilteredRequestUri()" title="$direct_link_title_1">$direct_link_label</a>
-		#else <a class="direct_link" href="$esc.html($observation.getHTMLRequestUri())" title="$direct_link_title_2">$direct_link_label</a>#end
+		#if ($unicorncall.getInputMethod() == "URI") <a class="direct_link" href="$esc.html($observation.getHTMLRequestUri())" title="$direct_link_title_1">$direct_link_label</a>
+		#else <a class="direct_link" href="$esc.html($observation.getHTMLIndexUri())" title="$direct_link_title_2">$direct_link_label</a>#end
 	</h2>
 	
 	<div class="results block">

Received on Monday, 19 October 2009 17:21:49 UTC