[Blends-commit] r1841 - blends/trunk/webtools/templates

Debian Pure Blends Subversion Commit noreply at alioth.debian.org
Sun Aug 23 21:24:41 UTC 2009


Author: tille
Date: Sun Aug 23 21:24:40 2009
New Revision: 1841
URL: http://svn.debian.org/viewsvn/blends?rev=1841&view=rev

Log:
Regard publicstion URLs


Modified:
   blends/trunk/webtools/templates/tasks.xhtml

Modified: blends/trunk/webtools/templates/tasks.xhtml
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/templates/tasks.xhtml?rev=1841&view=diff&r1=1841&r2=1840&p1=blends/trunk/webtools/templates/tasks.xhtml&p2=blends/trunk/webtools/templates/tasks.xhtml
==============================================================================
--- blends/trunk/webtools/templates/tasks.xhtml	(original)
+++ blends/trunk/webtools/templates/tasks.xhtml	Sun Aug 23 21:24:40 2009
@@ -161,7 +161,18 @@
 	     <div class="published"
 	     py:if="project.properties.has_key('published')">Please cite:
 	       <span class="authors" py:if="project.properties['published'].has_key('authors')">${project.properties['published']['authors']}:</span>
-	       <span class="title" py:if="project.properties['published'].has_key('title')">${project.properties['published']['title']}.</span>
+	       <span py:choose="">
+		 <span py:when="project.properties['published'].has_key('url')">
+		   <span py:choose="">
+                     <span class="title"
+			   py:when="project.properties['published'].has_key('title')"><a href="${project.properties['published']['url']}">${project.properties['published']['title']}.</a></span>
+		     <span py:otherwise=""><a href="${project.properties['published']['url']}">Link
+			 to publication</a></span>
+		   </span>
+		 </span>
+		 <span py:otherwise=""><span class="title" py:if="project.properties['published'].has_key('title')">${project.properties['published']['title']}</span>
+		 </span>
+	       </span>
 	       <span class="journal" py:if="project.properties['published'].has_key('in')">${project.properties['published']['in']}</span>
 	       <span class="year" py:if="project.properties['published'].has_key('year')">(${project.properties['published']['year']})</span>
 	     </div>



More information about the Blends-commit mailing list