You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/04/01 03:30:21 UTC
svn commit: r1307984 -
/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html
Author: gjm
Date: Sun Apr 1 01:30:21 2012
New Revision: 1307984
URL: http://svn.apache.org/viewvc?rev=1307984&view=rev
Log:
Dashboard code import: BH_Dashboard: Bug fixed: Do not raise ZeroDivisionError in tag cloud
Modified:
incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html
Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html?rev=1307984&r1=1307983&r2=1307984&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html Sun Apr 1 01:30:21 2012
@@ -7,9 +7,9 @@
<h3 style="display: inline;">$heading</h3>
<p style="font-size: medium; line-height: 150%;">
<py:for each="item in items"
- py:with="_max = bounds.max ; _min = bounds.min" >
+ py:with="_max = bounds.max + 1; _min = bounds.min" >
<a href="${item_link(item)}"
- style="font-size: ${int(28 - (13 / (_max - _min)) * (_max - item[1]) )}px">
+ style="font-size: ${int(28 - (13 / (_max - _min)) * (_max - item[1] - 1) )}px">
${item[0]} <py:if test="verbose">(${item[1]})</py:if>
</a>