diff --git a/app/views/like/_like.html.erb b/app/views/like/_like.html.erb index a588cc519e..065e906845 100644 --- a/app/views/like/_like.html.erb +++ b/app/views/like/_like.html.erb @@ -5,6 +5,11 @@ <% end %> + <% if node.type == 'page' %> + data-confirm='Please be aware that you are editing a post by another contributor, a privilege you have only because you are an admin or co-author.' <% end %> class='btn btn-outline-secondary btn-circle btn-sm' href='<%= @node.edit_path %>?t=<%= Time.now.to_i %>'> + + + <% end %> <% end %> @@ -81,7 +86,26 @@

- +
+ + <% if node.type == 'note' %> + <%= number_with_delimiter(@node.views) %> <%= t('notes.show.views') %> + <% if @node.comments %> + | <%= @node.comments.length %> <%= t('notes.show.comments') %> + <% end %> + <% end %> + + <% if node.type == 'page' %> + <%= number_with_delimiter(@node.views) %> <%= t('wiki.show.views') %> + <% if @node.comments %> + | <%= @node.comments.length %> Comments + <% end %> + | <%= raw t('wiki.show.last_edited', url1: "/profile/" + @revision.author.name, author: @revision.author.name, time: time_ago_in_words(@revision.created_at)) %> + <% end %> + +
+
+

Print without page links

Print in 3-column layout

diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index b8a93fbafb..809bacb0ec 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -37,27 +37,17 @@ <%= @node.created_at.to_s(:long) %> + + <%= @node.created_at.to_s(:short) %> + - | <%= number_with_delimiter(@node.views) %> <%= t('notes.show.views') %> - <% if @node.comments %> - | - <%= @node.fetch_comments(current_user).length %> <%= t('notes.show.comments') %> - <% end %> - | #<%= @node.id %> + | #<%= @node.id %> - | <%= number_with_delimiter(@node.views) %> <%= t('notes.show.views') %> - <% if @node.comments %> - | - <%= @node.fetch_comments(current_user).length %> <%= t('notes.show.comments') %> - <% end %> - | #<%= @node.id %> - - - <%= @node.created_at.to_s(:short) %> - + | #<%= @node.id %> +
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb index 11483ab8aa..79e4571ddf 100644 --- a/app/views/wiki/_header.html.erb +++ b/app/views/wiki/_header.html.erb @@ -29,84 +29,13 @@
style="display:none" <% end %>id="wiki-toolbar">
-
+
- <%= number_with_delimiter(@node.views) %> <%= t('wiki.show.views') %> | - <%= raw t('wiki.show.last_edited', url1: "/profile/" + @revision.author.name, author: @revision.author.name, time: time_ago_in_words(@revision.created_at)) %> - | - - #<%= @node.id %> - + <%= number_with_delimiter(@node.authors.length) %> Authors | + <%= @node.revisions.length %> <%= t('wiki.revisions.revisions') %> | + <%= t('wiki.show.talk') %>
- -
@@ -136,5 +65,3 @@ <% end %> - -
diff --git a/test/integration/I18n_test.rb b/test/integration/I18n_test.rb index 2066f8ee49..82c1e284bd 100644 --- a/test/integration/I18n_test.rb +++ b/test/integration/I18n_test.rb @@ -356,7 +356,7 @@ class I18nTest < ActionDispatch::IntegrationTest follow_redirect! get '/wiki/' + nodes(:organizers).title.parameterize - assert_select 'span', I18n.t('wiki.show.view') + assert_select 'a' , I18n.t('wiki.show.talk') end end