module Lipstick::Helpers::SortableHelper

Public Instance Methods

Private Instance Methods

glyphicon(direction) click to toggle source
# File lib/lipstick/helpers/sortable_helper.rb, line 32
def glyphicon(direction)
  content_tag('div', class: 'glyphicon') do
    content_tag('div', nil, class: "glyphicon-chevron-#{icon(direction)}")
  end
end
icon(direction) click to toggle source
# File lib/lipstick/helpers/sortable_helper.rb, line 38
def icon(direction)
  direction == 'asc' ? 'up' : 'down'
end