Skip to content

Commit 8224a21

Browse files
committed
Removed commented out markup in django_theme.html
1 parent 6c41f4f commit 8224a21

File tree

1 file changed

+5
-102
lines changed

1 file changed

+5
-102
lines changed

trac-env/templates/django_theme.html

+5-102
Original file line numberDiff line numberDiff line change
@@ -52,96 +52,24 @@ <h2>${_("Context Navigation")}</h2>
5252

5353
${jmacros.notices(chrome.notices)}
5454

55-
<!-- # block content (placeholder in theme.html) -->
5655
# block content
57-
58-
{# ------------------------------------------------------------------
59-
60-
Note: here should go the content defined by the end user page.
61-
62-
See layout.html which defines an useful default content for this
63-
block and has more detailed usage notes.
64-
65-
------------------------------------------------------------------ #}
66-
6756
# endblock content
68-
<!-- # endblock content (placeholder in theme.html) -->
6957
</div>
7058
<a href="#top" class="backtotop"><i class="icon icon-chevron-up"></i> Back to Top</a>
7159
</div>
7260
# endmacro
7361

7462
<head>
75-
<!-- # block head (placeholder in theme.html) -->
7663
# block head
7764
# endblock head
78-
<!-- # endblock head (placeholder in theme.html) -->
79-
</head> {# jinjacheck: "()" OK #}
65+
</head>
8066

8167
<body>
8268
# block body
83-
<!-- # block body (content inherited from theme.html) -->
84-
<!-- # include 'site_header.html' (theme.html) -->
69+
8570
# include 'site_header.html' ignore missing
86-
<!-- end of site_header.html -->
87-
{# ------------------------------------------------------------------
88-
89-
Note: here we produce the main structure of the body element:
90-
91-
div id="banner"
92-
div id="header"
93-
... logo + metanav ...
94-
/div
95-
... mainnav ...
96-
/div
97-
div id="main"
98-
... ctxtnav [+ warnings][+ notices] ...
99-
100-
# block content
101-
102-
(here goes the content block produced by the end user page,
103-
typically a "content" div, which could (should!) be followed
104-
by the parent content produced by the layout.html page)
105-
106-
# endblock content
107-
/div
108-
div id="footer"
109-
...
110-
/div
111-
112-
It's entirely possible for the end user page to prepend to, append
113-
to, or replace this default structure by redefining the body
114-
block, but it should be seldom needed.
115-
116-
------------------------------------------------------------------ #}
71+
11772
<div id="banner">
118-
{#
119-
<div id="header">
120-
# if chrome.logo.src:
121-
<a id="logo" href="${chrome.logo.link or
122-
href.wiki('TracIni') + '#header_logo-section'}">
123-
<img ${{
124-
'src': chrome.logo.src,
125-
'alt': chrome.logo.alt,
126-
'height': chrome.logo.height,
127-
'width': chrome.logo.width,
128-
}|htmlattr} /></a>
129-
## jinjacheck: "attribute alt" OK
130-
## jinjacheck: "attribute src" OK
131-
# else:
132-
<h1><a href="${chrome.logo.link}">${project.name}</a></h1>
133-
# endif
134-
</div>
135-
<form id="search" action="${href.search()}" method="get">
136-
# if trac_error_rendering is undefined and 'SEARCH_VIEW' in perm:
137-
<div>
138-
<label for="proj-search">${_("Search:")}</label>
139-
<input type="text" id="proj-search" name="q" size="18" ${accesskey("f")} value="" />
140-
<input type="submit" value="${_('Search')}" />
141-
</div>
142-
# endif
143-
</form>
144-
#}
14573
<div class="copy-banner">
14674
<div class="container">
14775
<h1>Issues</h1>
@@ -190,34 +118,9 @@ <h3>Useful links</h3>
190118
</div>
191119
# endif
192120

193-
{#
194-
<div id="footer"><hr/>
195-
<a id="tracpowered" href="https://trac.edgewall.org/"
196-
><img src="${chrome.htdocs_location}trac_logo_mini.png" height="30"
197-
width="107" alt="${_('Trac Powered')}"/></a>
198-
<p class="left">
199-
# set trac_version
200-
<a href="${href.about()}"><strong>Trac ${trac.version}</strong></a>
201-
<br />
202-
# endset
203-
# set eo
204-
<a href="http://www.edgewall.org/">Edgewall Software</a>
205-
# endset
206-
# trans trac_version, eo
207-
208-
Powered by ${trac_version}
209-
By ${eo}.
210-
211-
# endtrans
212-
</p>
213-
<p class="right">${chrome.footer}</p>
214-
</div>
215-
#}
216-
<!-- # include 'site_footer.html' (theme.html) -->
217121
# include 'site_footer.html' ignore missing
218-
<!-- end of site_footer.html -->
219-
<!-- # endblock body (content inherited from theme.html) -->
122+
220123
# endblock body
221-
</body> {# jinjacheck: "got (html)" OK #}
124+
</body>
222125

223126
</html>

0 commit comments

Comments
 (0)