Edgewall Software

Opened 15 years ago

Last modified 14 years ago

#7800 closed defect

Sorting by age broken in browser view — at Version 1

Reported by: chub@… Owned by:
Priority: high Milestone: 0.12.1
Component: version control/browser Version: 0.11-stable
Severity: normal Keywords: age date order
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

The key to sort the browser view is "age" not "date".

Patch is inlined. =)

  • trac/versioncontrol/templates/browser.html

    old new  
    8080              ${sortable_th(dir.order, dir.desc, 'name', 'Name')}
    8181              ${sortable_th(dir.order, dir.desc, 'size', 'Size')}
    8282              <th class="rev">Rev</th>
    83               ${sortable_th(dir.order, dir.desc, 'date', 'Age')}
     83              ${sortable_th(dir.order, dir.desc, 'age', 'Age')}
    8484              <th class="change">Last Change</th>
    8585            </tr>
    8686          </thead>

Change History (1)

comment:1 by Remy Blank, 15 years ago

Description: modified (diff)
Keywords: needinfo added; browser versioncontrol removed
Milestone: 0.11.2

Sorry, no more tickets for 0.11.2.

I quickly tested on trunk, and the sorting by age seems to work ok. But if I apply your patch, the sorting is messed up.

Could you describe more precisely what problem you observe and how to reproduce it? Also, what Trac version are you using (set the Version field)?

Note: See TracTickets for help on using tickets.