Modify ↓
#9380 closed defect (fixed)
[PATCH] prevnext_nav() generates strange span element
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | rendering | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I found a strange span element of #ctxtnav
in timeline page.
The class attribute of span element has <a class="prev" href="/timeline?from=2010-05-24&daysback=3&authors=" title="Previous Period">Previous Period</a>
.
<div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li class="first"><span class="<a class="prev" href="/timeline?from=2010-05-24&amp;daysback=3&amp;authors=" title="Previous Period">Previous Period</a>">← <a class="prev" href="/timeline?from=2010-05-24&daysback=3&authors=" title="Previous Period">Previous Period</a></span></li><li class="last"><span class="missing">Next Period →</span></li> </ul> <hr /> </div>
-
trac/web/chrome.py
171 171 class_='prev') 172 172 173 173 add_ctxtnav(req, tag.span(Markup('← '), prev_link or prev_label, 174 class_= prev_link or 'missing'))174 class_=not prev_link and 'missing' or None)) 175 175 176 176 if up_label and 'up' in links: 177 177 up = links['up'][0] … … 183 183 class_='next') 184 184 185 185 add_ctxtnav(req, tag.span(next_link or next_label, Markup(' →'), 186 class_=n ext_link or 'missing'))186 class_=not next_link and 'missing' or None)) 187 187 188 188 189 189 def _save_messages(req, url, permanent):
Attachments (0)
Change History (2)
comment:1 by , 14 years ago
Component: | general → rendering |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 14 years ago
Owner: | set to |
---|
Note:
See TracTickets
for help on using tickets.
Good catch! Patch applied in [9792].