X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f4239f8fc5d0e89da2eff4132332fdf0efdaf62a..6bce75b134a1175359360c5e3ee17bb8edfeb6f0:/app/views/diary_entries/_diary_entry.html.erb?ds=inline diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index a31560516..4080b8f95 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -7,12 +7,15 @@

<%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %>

- <%= 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)) %> + <%= 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)) %> + <% if (l(diary_entry.updated_at, :format => :blog) != l(diary_entry.created_at, :format => :blog)) %> + <%= t(".updated_at_html", :updated => l(diary_entry.updated_at, :format => :blog)) %> + <% end %> -
+
<%= diary_entry.body.to_html %>
@@ -20,31 +23,33 @@ <%= render :partial => "location", :object => diary_entry %> <% end %> - +