← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3317: Work in progress

 

------------------------------------------------------------
revno: 3317
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-04-07 15:57:13 +0200
message:
  Work in progress
modified:
  labs/dhis-web-light/src/main/webapp/dhis-web-light/dashboard.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'labs/dhis-web-light/src/main/webapp/dhis-web-light/dashboard.vm'
--- labs/dhis-web-light/src/main/webapp/dhis-web-light/dashboard.vm	2011-04-07 10:29:18 +0000
+++ labs/dhis-web-light/src/main/webapp/dhis-web-light/dashboard.vm	2011-04-07 13:57:13 +0000
@@ -25,6 +25,12 @@
 
 <div class="contentDiv">
 #foreach( $doc in $documents )
-<div class="contentItemDiv" onclick="">$encoder.htmlEncode( $doc.name )</div>
+#if( $doc.external )
+#set( $link = $doc.url )
+#else
+#set( $link = "../dhis-web-commons-stream/loadDocument.action?id=${doc.id}" )
+#end
+
+<div class="contentItemDiv" onclick="javascript:window.location.href='${link}'">$encoder.htmlEncode( $doc.name )</div>
 #end
 </div>