Module: Kuva::ApplicationHelper
- Defined in:
- app/helpers/kuva/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#breadcrumbs_for(photoset) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/kuva/application_helper.rb', line 4 def (photoset) content = capture do if photoset_page? concat content_tag(:li, link_to_root_url) else concat content_tag(:li, link_to_root_url) concat content_tag(:li, link_to_set_url(photoset)) end end content_tag :ul, content, class: "breadcrumbs" end |