]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entries/_diary_entry_heading.html.erb
Merge remote-tracking branch 'upstream/pull/5168'
[rails.git] / app / views / diary_entries / _diary_entry_heading.html.erb
1 <div class='mb-3'>
2   <% if @user %>
3     <h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
4   <% else %>
5     <div class="row">
6       <div class="col-auto">
7         <%= user_thumbnail diary_entry.user %>
8       </div>
9       <div class="col">
10         <h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
11       </div>
12     </div>
13   <% end %>
14
15   <small class='text-body-secondary'>
16     <%= t("diary_entries.diary_entry.posted_by_html", :link_user => (link_to diary_entry.user.display_name, 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)) %>
17     <% if (l(diary_entry.updated_at, :format => :blog) != l(diary_entry.created_at, :format => :blog)) %>
18       <%= t("diary_entries.diary_entry.updated_at_html", :updated => l(diary_entry.updated_at, :format => :blog)) %>
19     <% end %>
20   </small>
21 </div>