Module: SitesHelper

Defined in:
app/helpers/sites_helper.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
5
6
7
8
9
# File 'app/helpers/sites_helper.rb', line 2

def order_links(site)
  String.new.tap do |output|
    output << link_to(image('move_to_top.png', alt: 'Move to top'), move_to_top_admin_site_path(site), method: :put)
    output << link_to(image('move_higher.png', alt: 'Move up'), move_higher_admin_site_path(site), method: :post)
    output << link_to(image('move_lower.png', alt: 'Move down'), move_lower_admin_site_path(site), method: :post)
    output << link_to(image('move_to_bottom.png', alt: 'Move to bottom'), move_to_bottom_admin_site_path(site), method: :put)
  end
end