Sha256: 1be99e38de7f148b442547268c8bda58ca66f37358d17969727ea1ff21567cd9
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
- if model %p - if packet['route.main_site_route'] && model.ancestors.count > 0 - for a in packet['route.main_site_route'].self_and_ancestors %a{:href => a.full_path}= orange[:sitemap].link_text_for(a) > - for a in (model.ancestors - model.root) %a{:href => a.full_path}= orange[:sitemap].link_text_for(a) > %span.here= orange[:sitemap].link_text_for(model) - elsif packet['route.main_site_route'] - for a in packet['route.main_site_route'].ancestors %a{:href => a.full_path}= orange[:sitemap].link_text_for(a) > %span.here= orange[:sitemap].link_text_for packet['route.main_site_route'] - else - for a in model.ancestors %a{:href => a.full_path}= orange[:sitemap].link_text_for(a) > %span.here= orange[:sitemap].link_text_for(model) - else # Possibly a restful route %p - if packet['route.main_site_route'] - for a in packet['route.main_site_route'].self_and_ancestors %a{:href => a.full_path}= orange[:sitemap].link_text_for(a) > - else - home = orange[:sitemap].home(packet) %a{:href => home.full_path}= orange[:sitemap].link_text_for(home) > %span.here= packet['route.resource'].to_s.capitalize
Version data entries
3 entries across 3 versions & 1 rubygems