style="display:none" <% end %>id="wiki-toolbar">
-
+
-
-
- -
-
-
-
- <% if @node.has_tag('locked') && (current_user ? (current_user.role != "moderator" && current_user.role != "admin") : true) %>
- -
-
-
- <% else %>
- <% if current_user && current_user.first_time_poster %>
- -
-
-
-
-
-
- <% else %>
- -
-
-
-
-
-
- -
-
-
-
-
- <% end %>
- <% end %>
-
- <% if logged_in_as(['admin']) %>
- -
- <%= link_to url_for(action: :delete,id: @node.id),method: :delete, data: {confirm: I18n.t('wiki.show.are_you_sure_delete', path: @node.path)}, class: "nav-link" do %>
-
- <%= t('wiki.show.delete') %>
-
- <% end %>
-
- <% end %>
-
- -
-
-
- <%= t('wiki.show.talk') %>
-
-
-
- -
-
- <%= @node.revisions.length %>
-
-
-
-
- -
-
-
-
-
@@ -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