Sha256: 6b01b5e581d5a9cea709119c42ddae99b489988aa5b6fcb0c27e599c1914b1dd
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
- if @site && !@site.new_record? - if Cms::Fortress.configuration.content_resources.any? {|resource| can? :view, "contents.#{resource[:name]}" } %li.dropdown(class="#{ "active" if content_page? }") %a.dropdown-toggle(data-toggle='dropdown' href='#') = t("cms.fortress.contents") %b.caret %ul.dropdown-menu - Cms::Fortress.configuration.content_resources.each do |resource| - if can? :view, "contents.#{resource[:name]}" - path = begin; eval(resource[:path]);rescue;end - if path = topnav_item t(resource[:title]), path, current_page?(path) - if Cms::Fortress.configuration.design_resources.any? {|resource| can? :view, "designs.#{resource[:name]}" } %li.dropdown(class="#{ "active" if design_page? }") %a.dropdown-toggle(data-toggle='dropdown' href='#') = t("cms.fortress.design") %b.caret %ul.dropdown-menu - Cms::Fortress.configuration.design_resources.each do |resource| - if can? :view, "designs.#{resource[:name]}" - path = begin; eval(resource[:path]);rescue;end - if path = topnav_item t(resource[:title]), path, current_page?(path) - if Cms::Fortress.configuration.settings_resources.any? {|resource| can? :view, "settings.#{resource[:name]}" } %li.dropdown(class="#{ "active" if admin_page? }") %a.dropdown-toggle(data-toggle='dropdown' href='#') = t("cms.fortress.setttings") %b.caret %ul.dropdown-menu - Cms::Fortress.configuration.settings_resources.each do |resource| - if can? :view, "settings.#{resource[:name]}" - path = begin; eval(resource[:path]); rescue; end - if path = topnav_item t(resource[:title]), path, current_page?(path)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cms-fortress-1.2.0 | app/views/cms/fortress/themes/wide/_menu.html.haml |