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/06/18 12:48:32 UTC

svn commit: r1351284 - in /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets: templates/widget_cloud.html ticket.py

Author: gjm
Date: Mon Jun 18 10:48:31 2012
New Revision: 1351284

URL: http://svn.apache.org/viewvc?rev=1351284&view=rev
Log:
dashboard: adding compact view for cloud widget - towards #93 (from olemis)

Modified:
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_cloud.html
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py

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=1351284&r1=1351283&r2=1351284&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 Mon Jun 18 10:48:31 2012
@@ -60,6 +60,14 @@
           </tbody>
         </table>
       </py:when>
+      <py:when test="'compact'">
+        <div class="span2" py:for="item in items" py:if="item[0] &gt; 0">
+          <a href="${item_link(item)}">
+            ${display_value(item[0])}
+            <py:if test="verbose">(${item[1]})</py:if>
+          </a>
+        </div>
+      </py:when>
       <py:otherwise>
         <!--! TODO: Error message: Invalid widget view -->
       </py:otherwise>

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py?rev=1351284&r1=1351283&r2=1351284&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py Mon Jun 18 10:48:31 2012
@@ -85,7 +85,7 @@ class TicketFieldCloudWidget(WidgetBase)
                             - `cloud` : Similar to tag cloud
                             """,
                         'default' : 'list',
-                        'type' : EnumField('list', 'cloud', 'table'),
+                        'type' : EnumField('list', 'cloud', 'table', 'compact'),
                     },
             }
     get_widget_params = pretty_wrapper(get_widget_params, check_widget_name)