aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/routes_helper.rb
blob: b3d79262e65515344dfbabd9cb49242467ffbec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module RoutesHelper

  def line_formatted_name( line)
    return line.published_name if line.number.blank?
    "#{line.published_name} [#{line.number}]"
  end

  def fonticon_wayback(wayback)
    if wayback == "A"
      return '<i class="fa fa-arrow-right"></i>'.html_safe
    else
      return '<i class="fa fa-arrow-left"></i>'.html_safe  
    end
  end
  
end