X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cf4cfc530ae54abee7b6a0dccbc9d4603ab35611..732e1ab03a3b0f003dd8dc10e505d8d952fa18b9:/app/views/diary_entry/_diary_entry.html.erb diff --git a/app/views/diary_entry/_diary_entry.html.erb b/app/views/diary_entry/_diary_entry.html.erb index 76a6666f3..5a34bad5e 100644 --- a/app/views/diary_entry/_diary_entry.html.erb +++ b/app/views/diary_entry/_diary_entry.html.erb @@ -31,11 +31,12 @@ <%= link_to t('diary_entry.diary_entry.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %> <% end %> + <% if @user and diary_entry.user.id != @user.id %>
  • - <% if @user and diary_entry.user.id != @user.id %> <%= link_to t('issues.report'), new_issue_url(reportable_id: diary_entry.id, reportable_type: diary_entry.class.name, reported_user_id: diary_entry.user.id) %> - <% end %>
  • + <% end %> + <%= if_administrator(:li) do %> <%= link_to t('diary_entry.diary_entry.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('diary_entry.diary_entry.confirm') } %> <% end %>