incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1351281 - in /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets: templates/widget_cloud.html ticket.py
Date Mon, 18 Jun 2012 10:46:02 GMT
Author: gjm
Date: Mon Jun 18 10:46:02 2012
New Revision: 1351281

URL: http://svn.apache.org/viewvc?rev=1351281&view=rev
Log:
dashboard: adding table 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=1351281&r1=1351280&r2=1351281&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:46:02 2012
@@ -42,6 +42,24 @@
           </li>
         </ul>
       </py:when>
+      <py:when test="'table'">
+        <table class="table table-striped table-condensed">
+          <thead>
+            <tr>
+              <th class="full-x">&nbsp;</th>
+              <th py:if="verbose">Qty</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr py:for="item in items" py:if="item[1] &gt; 0">
+              <td>
+                <a href="${item_link(item)}">${display_value(item[0])}</a>
+              </td>
+              <td py:if="verbose">${item[1]}</td>
+            </tr>
+          </tbody>
+        </table>
+      </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=1351281&r1=1351280&r2=1351281&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:46:02 2012
@@ -85,7 +85,7 @@ class TicketFieldCloudWidget(WidgetBase)
                             - `cloud` : Similar to tag cloud
                             """,
                         'default' : 'list',
-                        'type' : EnumField('list', 'cloud'),
+                        'type' : EnumField('list', 'cloud', 'table'),
                     },
             }
     get_widget_params = pretty_wrapper(get_widget_params, check_widget_name)



Mime
View raw message