Permalink
Browse files

Added tags counts

  • Loading branch information...
hrach committed Jun 2, 2012
1 parent 843c79c commit db3e2d06b69ce9c2305e20242f9a51257fe7167d
Showing with 7 additions and 1 deletion.
  1. +5 −0 src/java/com/skrasek/school/pb138/Trend.java
  2. +1 −1 web/index.jsp
  3. +1 −0 web/template.xsl
@@ -64,6 +64,11 @@ public int compareTo(Trend o)
return o.sum - this.sum;
}
+ public int getSum()
+ {
+ return sum;
+ }
+
@Override
public boolean equals(Object o) {
if (o == null) return false;
View
@@ -29,7 +29,7 @@
}
}
%>
- <trend<%= checked %>><%= hashtag.getName().replaceAll("&","&amp;").replaceAll("<","&lt;") %></trend>
+ <trend<%= checked %> count="<%= hashtag.getSum() %>"><%= hashtag.getName().replaceAll("&","&amp;").replaceAll("<","&lt;") %></trend>
<% } %>
</trends>
<url>
View
@@ -81,6 +81,7 @@
</xsl:if>
</xsl:element>
<xsl:value-of select="."/>
+ (<xsl:value-of select="@count"/>)
</li>
</xsl:template>

0 comments on commit db3e2d0

Please sign in to comment.