Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(491)

Delta Between Two Patch Sets: MoinMoin/templates/ticket/index.html

Issue 10889044: Rough TicketIndex implementation
Left Patch Set: ticket/index.html: add an id to the <table>, use <thead> and <tbody> Created 10 years, 8 months ago
Right Patch Set: put display_fields.py under a new schema package Created 10 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « MoinMoin/templates/display_widgets.html ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% from "index_widgets.html" import render %} 1 {% from "display_widgets.html" import render %}
2 2
3 {% extends theme("layout.html") %} 3 {% extends theme("layout.html") %}
4 4
5 {% block content %} 5 {% block content %}
6 {% if data_rendered %} 6 {% if data_rendered %}
7 <div id="moin-content-data"> 7 <div id="moin-content-data">
8 {{ data_rendered }} 8 {{ data_rendered }}
9 </div> 9 </div>
10 {% endif %} 10 {% endif %}
11 11
12 <table id="moin-index-table"> 12 <table id="moin-index-table">
13 <thead> 13 <thead>
14 <tr> 14 <tr>
15 <th> 15 <th>
16 {{ _("Name") }} 16 {{ _("Name") }}
17 </th> 17 </th>
18 {% for name, spec in fields %} 18 {% for field in fields %}
19 <th> 19 <th>
20 {{ spec.label }} 20 {{ field.label }}
21 </th> 21 </th>
22 {% endfor %} 22 {% endfor %}
23 </tr> 23 </tr>
24 </thead> 24 </thead>
25 25
26 <tbody> 26 <tbody>
27 {% for e in tickets %} 27 {% for e in tickets %}
28 <tr> 28 <tr>
29 <td> 29 <td>
30 <a href="{{ url_for('.show_item', item_name=e.fullname) }}"> 30 <a href="{{ url_for('.show_item', item_name=e.fullname) }}">
31 {{ e.relname }} 31 {{ e.relname }}
32 </a> 32 </a>
33 </td> 33 </td>
34 {% for name, spec in fields %} 34 {% for field in fields %}
35 <td> 35 <td>
36 {{ render(e.meta[name], spec.widget) }} 36 {{ render(e.meta[field.name], field.widget) }}
37 </td> 37 </td>
38 {% endfor %} 38 {% endfor %}
39 </tr> 39 </tr>
40 {% else %} 40 {% else %}
41 <tr><td colspan="100"> {{ _("(No Ticket Yet)") }} </td></tr> 41 <tr><td colspan="100"> {{ _("(No tickets yet)") }} </td></tr>
Thomas.J.Waldmann 2013/07/11 16:23:49 i think it should be plural for 0: "tickets" (and
xiaq 2013/07/12 01:31:22 ok
42 {% endfor %} 42 {% endfor %}
43 </tbody> 43 </tbody>
44 </table> 44 </table>
45 {% endblock %} 45 {% endblock %}
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b