aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/routes_helper.rb
diff options
context:
space:
mode:
authorLuc Donnet2014-06-25 16:34:19 +0200
committerLuc Donnet2014-06-25 16:34:19 +0200
commit0449133dc118c1859511b23c02743bcf08dc7359 (patch)
treec98e7831c160ee5837b216b3536a169a7830b425 /app/helpers/routes_helper.rb
parent3988cf436bd2a751b3f229eaeebe0e2f371f6774 (diff)
downloadchouette-core-0449133dc118c1859511b23c02743bcf08dc7359.tar.bz2
Refactoring layout 2nd part Refs #0026847
Diffstat (limited to 'app/helpers/routes_helper.rb')
-rw-r--r--app/helpers/routes_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb
index ab91800ae..bbb611506 100644
--- a/app/helpers/routes_helper.rb
+++ b/app/helpers/routes_helper.rb
@@ -1,7 +1,17 @@
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