[openstreetmap/openstreetmap-website] Add last updated date to diary entry page (#2969)
Tucker Chapman
notifications at github.com
Fri Nov 27 03:07:24 UTC 2020
@tuckerrc commented on this pull request.
> @@ -7,7 +7,7 @@
<h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
<small class='text-muted'>
- <%= t(".posted_by_html", :link_user => (link_to diary_entry.user.display_name, user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to diary_entry.language.name, :controller => "diary_entries", :action => "index", :display_name => nil, :language => diary_entry.language_code)) %>
+ <%= t(".posted_by_html", :link_user => (link_to diary_entry.user.display_name, user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to diary_entry.language.name, :controller => "diary_entries", :action => "index", :display_name => nil, :language => diary_entry.language_code), :updated => l(diary_entry.updated_at, :format => :blog)) %>
I was going for simple code changes but I like this idea better. I created a new string and made it conditional.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2969#discussion_r531360479
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201126/42ce86d6/attachment.htm>
More information about the rails-dev
mailing list