def action_icon_label(action, url, title, options={}, label = true)
      options[:title] = title
      options[:class].presence ? options[:class] << " #{action}_icon " : options[:class] = "#{action}_icon"
      options[:class] << ' icon_label' if label

      case action
      when :preview
        options[:target] = '_blank'
      when :delete
        options[:method] = :delete
      when :reorder_done
        options[:class] << ' hidden'
      end

      link_to(label && title || '', url, options)
    end
def action_icon_label(action, url, title, options={}, label = true)
      options[:title] = title
      options[:class].presence ? options[:class] << " #{action}_icon " : options[:class] = "#{action}_icon"
      options[:class] << ' icon_label' if label

      case action
      when :preview
        options[:target] = '_blank'
      when :delete
        options[:method] = :delete
      when :reorder_done
        options[:class] << ' hidden'
      end

      link_to(label && title || '', url, options)
    end
See icons.scss for defined icons/classes