=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm 2012-11-06 15:09:42 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm 2012-11-07 13:14:27 +0000 @@ -1,3 +1,4 @@ +#set( $maxComments = 4 ) #foreach( $ip in $interpretations )
@@ -45,18 +46,22 @@
#set( $comments = $ip.comments ) -
-
+ #set( $commentStartPos = ( $comments.size() - $maxComments ) ) +
+ #if( $comments.size() > $maxComments ) + + #end +
#foreach( $comment in $comments ) -
+
${comment.user.name}  ${format.formatDate( $comment.created )}
-
-
- ${comment.text} -
+
+ ${comment.text} +
+
#end
=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js 2012-10-14 18:31:58 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js 2012-11-07 13:14:27 +0000 @@ -12,6 +12,12 @@ $( "#interpretationFeed" ).load( "getInterpretations.action" ); } ); +function expandComments( id ) +{ + $( "#comments" + id ).children().show(); + $( "#commentHeader" + id ).hide(); +} + function isNextPage() { var fromTop = $( document ).scrollTop(); @@ -75,4 +81,4 @@ } } ); } -} \ No newline at end of file +} === modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css 2012-11-06 14:03:24 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css 2012-11-07 13:14:27 +0000 @@ -191,6 +191,14 @@ margin: 0 0 6px 4px; } +.interpretationCommentHeader +{ + padding: 7px 0 5px 0; + margin: 1px 0 12px 0; + border-top: 1px solid #fff; + border-bottom: 1px solid #fff; +} + a.alert, .alert { color: #E92B2B;