[Python-checkins] r70515 - in tracker/instances/python-dev/html: issue.index.html issue.item.html issue.search.html

martin.v.loewis python-checkins at python.org
Sat Mar 21 20:34:45 CET 2009


Author: martin.v.loewis
Date: Sat Mar 21 20:34:44 2009
New Revision: 70515
Log:
Issue #251: Allow searching for message and nosy counts.
Modified:
 tracker/instances/python-dev/html/issue.index.html
 tracker/instances/python-dev/html/issue.item.html
 tracker/instances/python-dev/html/issue.search.html
Modified: tracker/instances/python-dev/html/issue.index.html
==============================================================================
--- tracker/instances/python-dev/html/issue.index.html	(original)
+++ tracker/instances/python-dev/html/issue.index.html	Sat Mar 21 20:34:44 2009
@@ -40,6 +40,7 @@
 <th tal:condition="request/show/dependencies" i18n:translate="">Depends On</th>
 <th tal:condition="request/show/type" i18n:translate="">Type</th>
 <th tal:condition="request/show/message_count" i18n:translate="">Msgs</th>
+ <th tal:condition="request/show/nosy_count" i18n:translate="">Nosy</th>
 </tr>
 <tal:block tal:repeat="i batch" condition=true>
 <tr tal:define="group python:[r[1] for r in request.group]"
@@ -87,6 +88,8 @@
 tal:content="python:i.type.plain() or default">&nbsp;</td>
 <td tal:condition="request/show/message_count"
 tal:content="python:int(i.message_count or 0)">&nbsp;</td>
+ <td tal:condition="request/show/nosy_count"
+ tal:content="python:int(i.nosy_count or 0)">&nbsp;</td>
 </tr>
 
 </tal:block>
Modified: tracker/instances/python-dev/html/issue.item.html
==============================================================================
--- tracker/instances/python-dev/html/issue.item.html	(original)
+++ tracker/instances/python-dev/html/issue.item.html	Sat Mar 21 20:34:44 2009
@@ -135,7 +135,8 @@
 tal:replace="structure python:db.user.classhelp('username,realname,address', property='nosy')" />
 </th>
 <td>
- <span tal:replace="structure context/nosy/field" />
+ <span tal:replace="structure context/nosy/field" />
+ <span tal:replace="python: '(%d)' % context.nosy_count" />
 </td>
 </tr>
 <tr>
@@ -226,7 +227,9 @@
 </table>
 
 <table class="messages" tal:condition="context/messages">
- <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
+ <tr><th colspan="4" class="header"
+ tal:content="python:'Messages (%d)' % context.message_count"
+ >Messages</th></tr>
 <tal:block tal:repeat="msg python:context.messages.sorted('creation')">
 <tr>
 <th><a tal:attributes="href string:msg${msg/id}"
Modified: tracker/instances/python-dev/html/issue.search.html
==============================================================================
--- tracker/instances/python-dev/html/issue.search.html	(original)
+++ tracker/instances/python-dev/html/issue.search.html	Sat Mar 21 20:34:44 2009
@@ -251,6 +251,21 @@
 <td metal:use-macro="sort_input"></td>
 <td metal:use-macro="group_input"></td>
 </tr>
+<tr tal:define="name string:nosy_count">
+ <th i18n:translate="">Nosy count:</th>
+ <td metal:use-macro="search_input"></td>
+ <td metal:use-macro="column_input"></td>
+ <td metal:use-macro="sort_input"></td>
+ <td metal:use-macro="group_input"></td>
+</tr>
+
+<tr tal:define="name string:message_count">
+ <th i18n:translate="">Message count:</th>
+ <td metal:use-macro="search_input"></td>
+ <td metal:use-macro="column_input"></td>
+ <td metal:use-macro="sort_input"></td>
+ <td metal:use-macro="group_input"></td>
+</tr>
 
 <tr>
 <th i18n:translate="">No Sort or group:</th>


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /