mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove unused methods from navigation helper
This commit is contained in:
@@ -75,26 +75,11 @@ module Spree
|
||||
klass
|
||||
end
|
||||
|
||||
def link_to_clone(resource, options = {})
|
||||
options[:data] = { action: 'clone' }
|
||||
link_to_with_icon('icon-copy', Spree.t(:clone), clone_admin_product_url(resource), options)
|
||||
end
|
||||
|
||||
def link_to_new(resource)
|
||||
options[:data] = { action: 'new' }
|
||||
link_to_with_icon('icon-plus', Spree.t(:new), edit_object_url(resource))
|
||||
end
|
||||
|
||||
def link_to_edit(resource, options = {})
|
||||
options[:data] = { action: 'edit' }
|
||||
link_to_with_icon('icon-edit', Spree.t(:edit), edit_object_url(resource), options)
|
||||
end
|
||||
|
||||
def link_to_edit_url(url, options = {})
|
||||
options[:data] = { action: 'edit' }
|
||||
link_to_with_icon('icon-edit', Spree.t(:edit), url, options)
|
||||
end
|
||||
|
||||
def link_to_delete(resource, options = {})
|
||||
url = options[:url] || object_url(resource)
|
||||
name = options[:name] || Spree.t(:delete)
|
||||
@@ -150,14 +135,6 @@ module Spree
|
||||
raw(s)
|
||||
end
|
||||
|
||||
def configurations_menu_item(link_text, url, description = '')
|
||||
%(<tr>
|
||||
<td>#{link_to(link_text, url)}</td>
|
||||
<td>#{description}</td>
|
||||
</tr>
|
||||
).html_safe
|
||||
end
|
||||
|
||||
def configurations_sidebar_menu_item(link_text, url, options = {})
|
||||
is_active = url.ends_with?(controller.controller_name) ||
|
||||
url.ends_with?( "#{controller.controller_name}/edit")
|
||||
|
||||
Reference in New Issue
Block a user