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