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"> </th>
+ <th py:if="verbose">Qty</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr py:for="item in items" py:if="item[1] > 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)