|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="${trac_lang}"> {# jinjacheck: "attribute lang" OK #} |
3 | 3 |
|
4 | | -# macro navigation(category) |
5 | | -<div id="${category}" class="nav"> |
6 | | - # if chrome.nav[category]: |
7 | | - <ul>{% |
8 | | - for item in chrome.nav[category] |
9 | | - %}<li ${{'class': { |
10 | | - 'first': loop.first, 'last': loop.last, 'active': item.active |
11 | | - }}|htmlattr}>${item.label}</li>{% |
12 | | - endfor |
| 4 | + # macro navigation(category) |
| 5 | + <div id="${category}" class="nav"> |
| 6 | + # if chrome.nav[category]: |
| 7 | + <ul>{% |
| 8 | + for item in chrome.nav[category] |
| 9 | + %}<li ${{'class': { |
| 10 | + 'first': loop.first, 'last': loop.last, 'active': item.active |
| 11 | + }}|htmlattr}>${item.label}</li>{% |
| 12 | + endfor |
13 | 13 | %}</ul> |
14 | | - # endif |
15 | | -</div> |
16 | | -# endmacro |
17 | | - |
18 | | -# macro main() |
19 | | -<div role="main"> |
20 | | - <div id="metanav" class="nav"> |
21 | | - <ul> |
22 | | - # if req.is_authenticated: |
| 14 | + # endif |
| 15 | + </div> |
| 16 | + # endmacro |
| 17 | + |
| 18 | + # macro main() |
| 19 | + <div role="main"> |
| 20 | + <div id="metanav" class="nav"> |
| 21 | + <ul> |
| 22 | + # if req.is_authenticated: |
23 | 23 | <li>Logged in as ${req.authname}</li> |
24 | 24 | <li> |
25 | 25 | <form action="/github/logout" method="post" id="logout" class="trac-logout"> |
26 | 26 | <button type="submit">Logout</button> |
27 | 27 | <input type="hidden" name="__FORM_TOKEN" value="${req.form_token}"> |
28 | 28 | </form> |
29 | 29 | </li> |
30 | | - # else |
| 30 | + # else |
31 | 31 | <li><a href="/login?referer=${req.path_info|urlencode()}">Login</a></li> |
32 | | - # endif |
33 | | - <li><a href="${req.href.prefs()}">Preferences</a></li> |
34 | | - </ul> |
35 | | - </div> |
36 | | - ${navigation('mainnav')} |
37 | | - <div id="main" ${{'class': { |
38 | | - 'uisymbols': req.session.get('ui.use_symbols'), |
39 | | - 'uinohelp': req.session.get('ui.hide_help'), |
40 | | - }}|htmlattr}> |
41 | | - |
42 | | - # if req.authname != 'anonymous' and not req.session.email: |
43 | | - <div class="system-message" id="warning"> |
44 | | - Add an email address on the <a href="${req.href.prefs()}">Preferences</a> |
45 | | - page to receive updates on tickets you own, have created, or been CCed on. |
| 32 | + # endif |
| 33 | + <li><a href="${req.href.prefs()}">Preferences</a></li> |
| 34 | + </ul> |
46 | 35 | </div> |
47 | | - # endif |
| 36 | + ${navigation('mainnav')} |
| 37 | + <div id="main" ${{'class': { |
| 38 | + 'uisymbols': req.session.get('ui.use_symbols'), |
| 39 | + 'uinohelp': req.session.get('ui.hide_help'), |
| 40 | + }}|htmlattr}> |
| 41 | + |
| 42 | + # if req.authname != 'anonymous' and not req.session.email: |
| 43 | + <div class="system-message" id="warning"> |
| 44 | + Add an email address on the <a href="${req.href.prefs()}">Preferences</a> |
| 45 | + page to receive updates on tickets you own, have created, or been CCed on. |
| 46 | + </div> |
| 47 | + # endif |
48 | 48 |
|
49 | | - # if resourcepath_template: |
50 | | - # include resourcepath_template ignore missing |
51 | | - # endif |
| 49 | + # if resourcepath_template: |
| 50 | + # include resourcepath_template ignore missing |
| 51 | + # endif |
52 | 52 |
|
53 | | - # if chrome.ctxtnav: |
54 | | - <div id="ctxtnav" class="nav"> |
55 | | - <h2>${_("Context Navigation")}</h2> |
56 | | - <ul> |
57 | | - # for elm in chrome.ctxtnav: |
58 | | - <li ${{'class': {'first': loop.first, 'last': loop.last}}|htmlattr}>${ |
59 | | - elm}</li> |
60 | | - # endfor |
61 | | - </ul> |
62 | | - <hr /> |
63 | | - </div> |
64 | | - # endif |
| 53 | + # if chrome.ctxtnav: |
| 54 | + <div id="ctxtnav" class="nav"> |
| 55 | + <h2>${_("Context Navigation")}</h2> |
| 56 | + <ul> |
| 57 | + # for elm in chrome.ctxtnav: |
| 58 | + <li ${{'class': {'first': loop.first, 'last': loop.last}}|htmlattr}>${ |
| 59 | + elm}</li> |
| 60 | + # endfor |
| 61 | + </ul> |
| 62 | + <hr /> |
| 63 | + </div> |
| 64 | + # endif |
65 | 65 |
|
66 | | - ${jmacros.warnings(chrome.warnings)} |
| 66 | + ${jmacros.warnings(chrome.warnings)} |
67 | 67 |
|
68 | | - ${jmacros.notices(chrome.notices)} |
| 68 | + ${jmacros.notices(chrome.notices)} |
69 | 69 |
|
70 | | - # block content |
71 | | - # endblock content |
| 70 | + # block content |
| 71 | + # endblock content |
| 72 | + </div> |
| 73 | + <a href="#top" class="backtotop"><i class="icon icon-chevron-up"></i> Back to Top</a> |
72 | 74 | </div> |
73 | | - <a href="#top" class="backtotop"><i class="icon icon-chevron-up"></i> Back to Top</a> |
74 | | -</div> |
75 | | -# endmacro |
| 75 | + # endmacro |
76 | 76 |
|
77 | | -<head> |
78 | | - # block head |
79 | | - # endblock head |
80 | | -</head> |
| 77 | + <head> |
| 78 | + # block head |
| 79 | + # endblock head |
| 80 | + </head> |
81 | 81 |
|
82 | 82 | {# we don't use the modernizer js lib anymore, but the css still uses some classes from it #} |
83 | | -<body class="mdzr-boxshadow mdzr-svg"> |
84 | | - # block body |
| 83 | + <body class="mdzr-boxshadow mdzr-svg"> |
| 84 | + # block body |
85 | 85 |
|
86 | | - # include 'site_header.html' ignore missing |
| 86 | + # include 'site_header.html' ignore missing |
87 | 87 |
|
88 | | - <div id="banner"> |
89 | | - <div class="copy-banner"> |
90 | | - <div class="container"> |
91 | | - <h1>Issues</h1> |
| 88 | + <div id="banner"> |
| 89 | + <div class="copy-banner"> |
| 90 | + <div class="container"> |
| 91 | + <h1>Issues</h1> |
| 92 | + </div> |
92 | 93 | </div> |
93 | | - </div> |
94 | 94 |
|
95 | | - # if req.path_info == '/': |
96 | | - <div class="container sidebar-right"> |
97 | | - ${main()} |
98 | | - <div role="complementary"> |
99 | | - <form action="/search/" id="sidebar_search" class="search form-input" role="search"> |
100 | | - <label class="visuallyhidden" for="q">Search:</label> |
101 | | - <input id="id_sidebar_search_q" name="q" placeholder="Search Trac" type="search" /> |
102 | | - |
103 | | - <button type="submit"> |
104 | | - <i class="icon icon-search"></i> |
105 | | - <span class="visuallyhidden">Search</span> |
106 | | - </button> |
107 | | - </form> |
108 | | - <h3>Useful links</h3> |
109 | | - <dl> |
110 | | - <dt><a href="https://docs.djangoproject.com/en/dev/internals/contributing/">Contribution Guide</a></dt> |
111 | | - <dd>You'd like to contribute to Django but don't know how? This document will explain our process and how to get involved.</dd> |
112 | | - |
113 | | - <dt><a href="/query?status=!closed&easy=1">"Easy Pickings"</a></dt> |
114 | | - <dd>First time contributor and you're looking for something manageable? The "easy pickings" list is a good start.</dd> |
115 | | - |
116 | | - <dt><a href="https://docs.djangoproject.com/en/dev/internals/security/">Security Policy</a></dt> |
117 | | - <dd>You found a security issue in Django? You'd like to know more about our security policy? It's all in there.</dd> |
118 | | - |
119 | | - <dt><a href="https://github.com/django/django">GitHub</a></dt> |
120 | | - <dd>Want to peek under the hood and see Django's source code, file or help review a pull request? It's all on GitHub.</dd> |
121 | | - |
122 | | - <dt><a href="https://dashboard.djangoproject.com/">Django Dashboard</a></dt> |
123 | | - <dd>Confused about Trac's filtering system? This dashboard shows easy-to-read metrics and has links to pre-set filters to get you started.</dd> |
124 | | - |
125 | | - <dt><a href="irc://irc.freenode.net/django-dev">#django-dev IRC channel</a></dt> |
126 | | - <dd>Questions about a ticket? Stuck on how to write a unit test for your pull request? Come chat with us!</dd> |
127 | | - </dl> |
| 95 | + # if req.path_info == '/': |
| 96 | + <div class="container sidebar-right"> |
| 97 | + ${main()} |
| 98 | + <div role="complementary"> |
| 99 | + <form action="/search/" id="sidebar_search" class="search form-input" role="search"> |
| 100 | + <label class="visuallyhidden" for="q">Search:</label> |
| 101 | + <input id="id_sidebar_search_q" name="q" placeholder="Search Trac" type="search" /> |
| 102 | + |
| 103 | + <button type="submit"> |
| 104 | + <i class="icon icon-search"></i> |
| 105 | + <span class="visuallyhidden">Search</span> |
| 106 | + </button> |
| 107 | + </form> |
| 108 | + <h3>Useful links</h3> |
| 109 | + <dl> |
| 110 | + <dt><a href="https://docs.djangoproject.com/en/dev/internals/contributing/">Contribution Guide</a></dt> |
| 111 | + <dd>You'd like to contribute to Django but don't know how? This document will explain our process and how to get involved.</dd> |
| 112 | + |
| 113 | + <dt><a href="/query?status=!closed&easy=1">"Easy Pickings"</a></dt> |
| 114 | + <dd>First time contributor and you're looking for something manageable? The "easy pickings" list is a good start.</dd> |
| 115 | + |
| 116 | + <dt><a href="https://docs.djangoproject.com/en/dev/internals/security/">Security Policy</a></dt> |
| 117 | + <dd>You found a security issue in Django? You'd like to know more about our security policy? It's all in there.</dd> |
| 118 | + |
| 119 | + <dt><a href="https://github.com/django/django">GitHub</a></dt> |
| 120 | + <dd>Want to peek under the hood and see Django's source code, file or help review a pull request? It's all on GitHub.</dd> |
| 121 | + |
| 122 | + <dt><a href="https://dashboard.djangoproject.com/">Django Dashboard</a></dt> |
| 123 | + <dd>Confused about Trac's filtering system? This dashboard shows easy-to-read metrics and has links to pre-set filters to get you started.</dd> |
| 124 | + |
| 125 | + <dt><a href="irc://irc.freenode.net/django-dev">#django-dev IRC channel</a></dt> |
| 126 | + <dd>Questions about a ticket? Stuck on how to write a unit test for your pull request? Come chat with us!</dd> |
| 127 | + </dl> |
| 128 | + </div> |
128 | 129 | </div> |
129 | 130 | </div> |
130 | | - </div> |
131 | | - # else |
132 | | - <div class="container full-width"> |
133 | | - ${main()} |
134 | | - </div> |
135 | | - # endif |
| 131 | + # else |
| 132 | + <div class="container full-width"> |
| 133 | + ${main()} |
| 134 | + </div> |
| 135 | + # endif |
136 | 136 |
|
137 | | - # include 'site_footer.html' ignore missing |
| 137 | + # include 'site_footer.html' ignore missing |
138 | 138 |
|
139 | | - # endblock body |
140 | | -</body> |
| 139 | + # endblock body |
| 140 | + </body> |
141 | 141 |
|
142 | 142 | </html> |
0 commit comments