]> git.openstreetmap.org Git - rails.git/commitdiff
Improve date display in user notes list
authorTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 11:10:24 +0000 (11:10 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 3 Feb 2013 11:10:24 +0000 (11:10 +0000)
app/views/notes/mine.html.erb
config/locales/en.yml

index d7d8663372a5abbb57f5a0a9abaf1e844c18adbd..fd0e2916562369a73cfd4c9915115b063be3b675 100644 (file)
@@ -26,8 +26,8 @@
     <td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
     <td><%= note_author(note.author) %></td>
     <td><%= note.comments.first.body.to_html %></td>   
     <td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
     <td><%= note_author(note.author) %></td>
     <td><%= note.comments.first.body.to_html %></td>   
-    <td><%= friendly_date(note.created_at) %></td>
-    <td><%= friendly_date(note.updated_at) %></td>
+    <td><%= t 'note.mine.ago_html', :when => friendly_date(note.created_at) %></td>
+    <td><%= t 'note.mine.ago_html', :when => friendly_date(note.updated_at) %></td>
   </tr>
 <% end -%>
 </table>
   </tr>
 <% end -%>
 </table>
index 67f1aa909fddc40d4b97e83779eadcd29256901f..00bc48097aa9d174d256dbed3fd5e88b4e53f938 100644 (file)
@@ -2004,6 +2004,7 @@ en:
       description: "Description"
       created_at: "Created at"
       last_changed: "Last changed"
       description: "Description"
       created_at: "Created at"
       last_changed: "Last changed"
+      ago_html: "%{when} ago"
   javascripts:
     map:
       base:
   javascripts:
     map:
       base: