Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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&amp;daysback=3&amp;authors=" title="Previous Period">Previous Period</a>.

      <div id="ctxtnav" class="nav">
        <h2>Context Navigation</h2>
          <ul>
              <li class="first"><span class="&lt;a class=&#34;prev&#34; href=&#34;/timeline?from=2010-05-24&amp;amp;daysback=3&amp;amp;authors=&#34; title=&#34;Previous Period&#34;&gt;Previous Period&lt;/a&gt;">&larr; <a class="prev" href="/timeline?from=2010-05-24&amp;daysback=3&amp;authors=" title="Previous Period">Previous Period</a></span></li><li class="last"><span class="missing">Next Period &rarr;</span></li>
          </ul>
        <hr />
      </div>
  • trac/web/chrome.py

     
    171171                          class_='prev')
    172172
    173173    add_ctxtnav(req, tag.span(Markup('&larr; '), prev_link or prev_label,
    174                               class_=prev_link or 'missing'))
     174                              class_=not prev_link and 'missing' or None))
    175175
    176176    if up_label and 'up' in links:
    177177        up = links['up'][0]
     
    183183                          class_='next')
    184184
    185185    add_ctxtnav(req, tag.span(next_link or next_label, Markup(' &rarr;'),
    186                               class_=next_link or 'missing'))
     186                              class_=not next_link and 'missing' or None))
    187187
    188188
    189189def _save_messages(req, url, permanent):

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 14 years ago

Component: generalrendering
Resolution: fixed
Status: newclosed

Good catch! Patch applied in [9792].

comment:2 by Remy Blank, 14 years ago

Owner: set to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.