|
1 | 1 | {% extends 'layout/page.html' %} |
2 | 2 |
|
3 | 3 | {% block head_title %} |
4 | | - {{ i18n.gettext('List of issues') }} |
| 4 | + {{ i18n.gettext('List of issues')|u }} |
5 | 5 | {% endblock %} |
6 | 6 |
|
7 | 7 | {% block page_header %} |
8 | | - {{ i18n.gettext('List of issues') }} |
| 8 | + {{ i18n.gettext('List of issues')|u }} |
9 | 9 | {% endblock %} |
10 | 10 |
|
11 | 11 | {% block content %} |
|
16 | 16 | {% if context.list() %} |
17 | 17 | <table class='table'> |
18 | 18 | <tr class='info'> |
19 | | - <td>{{ i18n.gettext('Priority') }}</td> |
20 | | - <td>{{ i18n.gettext('ID') }}</td> |
21 | | - <td>{{ i18n.gettext('Activity') }}</td> |
22 | | - <td>{{ i18n.gettext('Actor') }}</td> |
23 | | - <td>{{ i18n.gettext('Keyword') }}</td> |
24 | | - <td>{{ i18n.gettext('Title') }}</td> |
25 | | - <td>{{ i18n.gettext('Status') }}</td> |
26 | | - <td>{{ i18n.gettext('Creator') }}</td> |
27 | | - <td>{{ i18n.gettext('Assigned To') }}</td> |
| 19 | + {% if request.show.priority %} |
| 20 | + <td>{{ i18n.gettext('Priority')|u }}</td> |
| 21 | + {% endif %} |
| 22 | + {% if request.show.id %} |
| 23 | + <td>{{ i18n.gettext('ID')|u }}</td> |
| 24 | + {% endif %} |
| 25 | + {% if request.show.activity %} |
| 26 | + <td>{{ i18n.gettext('Activity')|u }}</td> |
| 27 | + {% endif %} |
| 28 | + {% if request.show.actor %} |
| 29 | + <td>{{ i18n.gettext('Actor')|u }}</td> |
| 30 | + {% endif %} |
| 31 | + {% if request.show.keyword %} |
| 32 | + <td>{{ i18n.gettext('Keyword')|u }}</td> |
| 33 | + {% endif %} |
| 34 | + {% if request.show.title %} |
| 35 | + <td>{{ i18n.gettext('Title')|u }}</td> |
| 36 | + {% endif %} |
| 37 | + {% if request.show.status %} |
| 38 | + <td>{{ i18n.gettext('Status')|u }}</td> |
| 39 | + {% endif %} |
| 40 | + {% if request.show.creator %} |
| 41 | + <td>{{ i18n.gettext('Creator')|u }}</td> |
| 42 | + {% endif %} |
| 43 | + {% if request.show.assignedto %} |
| 44 | + <td>{{ i18n.gettext('Assigned To')|u }}</td> |
| 45 | + {% endif %} |
28 | 46 | </tr> |
29 | 47 | {% for issue in context.list() %} |
30 | 48 | <tr> |
31 | | - <td>{{ issue.priority.plain() }}</td> |
| 49 | + {% if request.show.priority %} |
| 50 | + <td>{{ issue.priority.plain()|u|e }}</td> |
| 51 | + {% endif %} |
| 52 | + {% if request.show.id %} |
32 | 53 | <td>{{ issue.id }}</td> |
| 54 | + {% endif %} |
| 55 | + {% if request.show.activity %} |
33 | 56 | <td>{{ issue.activity }}</td> |
34 | | - <td>{{ issue.actor }}</td> |
35 | | - <td>{{ issue.keyword.plain() }}</td> |
| 57 | + {% endif %} |
| 58 | + {% if request.show.actor %} |
| 59 | + <td>{{ issue.actor|u|e }}</td> |
| 60 | + {% endif %} |
| 61 | + {% if request.show.keyword %} |
| 62 | + <td>{{ issue.keyword.plain()|u|e }}</td> |
| 63 | + {% endif %} |
| 64 | + {% if request.show.title %} |
36 | 65 | <td> |
37 | | - <a href='issue{{ issue.id }}'>{{ issue.title.plain(hyperlink=0) }}</a> |
| 66 | + <a href='issue{{ issue.id }}'>{{ issue.title.plain(hyperlink=0)|u|e }}</a> |
38 | 67 | </td> |
39 | | - <td>{{ issue.status.plain() }}</td> |
40 | | - <td>{{ issue.creator.plain() }}</td> |
| 68 | + {% endif %} |
| 69 | + {% if request.show.status %} |
| 70 | + <td>{{ issue.status.plain()|u|e }}</td> |
| 71 | + {% endif %} |
| 72 | + {% if request.show.creator %} |
| 73 | + <td>{{ issue.creator.plain()|u|e }}</td> |
| 74 | + {% endif %} |
| 75 | + {% if request.show.assignedto %} |
41 | 76 | <td>{{ issue.assignedto.plain() }}</td> |
| 77 | + {% endif %} |
42 | 78 | </tr> |
43 | 79 | {% endfor %} |
44 | 80 | </table> |
45 | 81 | {% include 'layout/pagination.html' %} |
46 | | - <div class='row-fluid'> |
| 82 | + <div class='row-fluid'> |
47 | 83 | <div class='pull-right'> |
48 | 84 | <a class='btn btn-success' |
49 | 85 | href="{{ request.indexargs_url('issue', {'@action':'export_csv'}) }}"> |
50 | | - {{ i18n.gettext('Download as CSV') }} |
| 86 | + {{ i18n.gettext('Download as CSV')|u }} |
51 | 87 | </a> |
52 | 88 | </div> |
53 | 89 | </div> |
54 | 90 |
|
55 | 91 | {% include 'layout/sort.html' %} |
56 | 92 |
|
57 | 93 | {% else %} |
58 | | - <p class='text-error'>{{ i18n.gettext('There are no issues yet!') }}</p> |
| 94 | + <p class='text-error'>{{ i18n.gettext('There are no issues yet!')|u }}</p> |
59 | 95 | {% endif %} |
60 | 96 |
|
61 | 97 | {% endif %} |
|
0 commit comments