diff options
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/history_helper.rb | 4 | ||||
| -rw-r--r-- | app/helpers/pagination_helper.rb | 2 | ||||
| -rw-r--r-- | app/helpers/routes_helper.rb | 10 |
3 files changed, 14 insertions, 2 deletions
diff --git a/app/helpers/history_helper.rb b/app/helpers/history_helper.rb index a4f2df05c..88c6b8da3 100644 --- a/app/helpers/history_helper.rb +++ b/app/helpers/history_helper.rb @@ -1,7 +1,7 @@ module HistoryHelper def creation_tag(object) - field_set_tag t("layouts.creation_tag.title") do + field_set_tag t("layouts.creation_tag.title"), :class => "history_tag" do content_tag :ul do [(content_tag :li do if object.has_attribute?(:creation_time) @@ -20,7 +20,7 @@ module HistoryHelper end def history_tag(object) - field_set_tag t("layouts.history_tag.title") do + field_set_tag t("layouts.history_tag.title"), :class => "history_tag" do content_tag :ul do [(content_tag :li do if object.has_attribute?(:created_at) diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index 0ad70f26e..b85137b85 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -1,5 +1,7 @@ module PaginationHelper def paginated_content(models, default_partial_name = nil) + return "" if models.blank? + html = "" models.each_slice(3) do |row_models| html += '<div class="row">' 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 |
