← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~stevenk/launchpad/fix-last-modified into lp:launchpad

 

Steve Kowalik has proposed merging lp:~stevenk/launchpad/fix-last-modified into lp:launchpad.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~stevenk/launchpad/fix-last-modified/+merge/66844

No longer show a spurious 'ago' in the DSP +code-index page.
-- 
https://code.launchpad.net/~stevenk/launchpad/fix-last-modified/+merge/66844
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stevenk/launchpad/fix-last-modified into lp:launchpad.
=== modified file 'lib/lp/code/browser/tests/test_branchlisting.py'
--- lib/lp/code/browser/tests/test_branchlisting.py	2011-07-04 13:48:02 +0000
+++ lib/lp/code/browser/tests/test_branchlisting.py	2011-07-04 23:56:33 +0000
@@ -349,6 +349,7 @@
             dsp, name='+code-index', rootsite='code')
         html = view()
         self.assertIn(branch.name, html)
+        self.assertIn('a moment ago</span>\n', html)
 
 
 class TestDevelopmentFocusPackageBranches(TestCaseWithFactory):

=== modified file 'lib/lp/code/templates/distributionsourcepackage-branches-grouped.pt'
--- lib/lp/code/templates/distributionsourcepackage-branches-grouped.pt	2011-07-04 13:48:02 +0000
+++ lib/lp/code/templates/distributionsourcepackage-branches-grouped.pt	2011-07-04 23:56:33 +0000
@@ -71,7 +71,7 @@
             <span tal:attributes="title branch/date_last_modified/fmt:datetime"
                   tal:content="branch/date_last_modified/fmt:approximatedate">
               sometime
-              </span> ago
+              </span>
           </td>
         </tr>
         <tr tal:condition="group/more-branch-count">