diff options
| author | Xinhui | 2017-12-13 18:03:19 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-13 18:03:19 +0100 |
| commit | f9d51d00b98c47beb9cc1d6effe3339c4b4a3f9e (patch) | |
| tree | 29243d7840847cfcdf446f1bd8c2c5482c88c38d /app/helpers/application_helper.rb | |
| parent | 9146198415d07833833467e98ba909ed5454720f (diff) | |
| download | chouette-core-f9d51d00b98c47beb9cc1d6effe3339c4b4a3f9e.tar.bz2 | |
Line#show display secondary companies as a list
Refs #5142
Diffstat (limited to 'app/helpers/application_helper.rb')
| -rw-r--r-- | app/helpers/application_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d2cdaaa20..6b35863f6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3,6 +3,14 @@ module ApplicationHelper include NewapplicationHelper + def array_to_html_list items + content_tag :ul do + items.each do |item| + concat content_tag :li, item + end + end + end + def page_header_title(object) # Unwrap from decorator, we want to know the object model name object = object.object if object.try(:object) |
