Merge lp:~stevenk/launchpad/branch-approximatedate into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13343 |
Proposed branch: | lp:~stevenk/launchpad/branch-approximatedate |
Merge into: | lp:launchpad |
Diff against target: |
103 lines (+12/-21) 4 files modified
lib/lp/code/browser/branchlisting.py (+0/-10) lib/lp/code/browser/tests/test_branchlisting.py (+7/-6) lib/lp/code/templates/branch-listing.pt (+4/-4) lib/lp/code/templates/distributionsourcepackage-branches-grouped.pt (+1/-1) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/branch-approximatedate |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+66480@code.launchpad.net |
Commit message
[r=lifeless][bug=162305] Use approximatedate for showing branch dates.
Description of the change
Change how dates for branches are displayed. This took far too long to sort out, but there are two properties in branchlisting called since_created and since_updated. They return a duration which was then formatted as a duration -- and the duration formatter maxed out at weeks, so branches would show 'Last modified: 163 weeks ago'.
I have ripped them out, and switched to the dates themselves, which will show approximate dates, such as 'Last modified: 2 years ago'.
I have written a sinfully small test for this, but approximatedate is very well tested.
To post a comment you must log in.