views: fix deprecated keyword argument warnings in current_page?.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<%= subnav_link_to "Edit", edit_artist_path(@artist), :"data-shortcut" => "e" %>
|
||||
<% end %>
|
||||
<%= subnav_link_to "History", artist_versions_path(:search => {:artist_id => @artist.id}) %>
|
||||
<% if current_page?({ action: :edit }) && policy(@artist).update? %>
|
||||
<% if current_page?(action: :edit) && policy(@artist).update? %>
|
||||
<% if @artist.is_deleted? %>
|
||||
<%= subnav_link_to "Undelete", artist_path(@artist, format: "js"), method: :put, data: {confirm: "Are you sure you want to undelete this artist?", params: "artist[is_deleted]=false"}, remote: true %>
|
||||
<% else %>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<% if policy(@pool).update? %>
|
||||
<%= subnav_link_to "Edit", edit_pool_path(@pool), "data-shortcut": "e" %>
|
||||
<% end %>
|
||||
<% if current_page?({ action: :edit }) %>
|
||||
<% if current_page?(action: :edit) %>
|
||||
<% if policy(@pool).undelete? %>
|
||||
<%= subnav_link_to "Undelete", undelete_pool_path(@pool), :method => :post, :remote => true %>
|
||||
<% elsif policy(@pool).destroy? %>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<% if policy(@wiki_page).edit? %>
|
||||
<%= subnav_link_to "Edit", edit_wiki_page_path(@wiki_page.id), "data-shortcut": "e" %>
|
||||
|
||||
<% if current_page?({ action: :edit }) %>
|
||||
<% if current_page?(action: :edit) %>
|
||||
<% if @wiki_page.is_deleted? %>
|
||||
<%= subnav_link_to "Undelete", wiki_page_path(@wiki_page.id), remote: true, method: :put, "data-params": "wiki_page[is_deleted]=false", "data-shortcut": "shift+d", "data-confirm": "Are you sure you want to undelete this wiki?" %>
|
||||
<% else %>
|
||||
|
||||
Reference in New Issue
Block a user