app/views/layouts/admin/cms/_left.html.haml in cms-fortress-1.0.3 vs app/views/layouts/admin/cms/_left.html.haml in cms-fortress-1.0.4

- old
+ new

@@ -1,21 +1,28 @@ = render '/admin/cms/partials/navigation_before' %ul.navigation - if admin_page? - %li= active_link_to t('admin.cms.base.sites'), admin_cms_sites_path, :active => ['admin/cms/sites'] - %li= active_link_to t('cms.fortress.roles.title'), cms_fortress_roles_path - %li= active_link_to t('cms.fortress.users.title'), cms_fortress_users_path + - if can? :view, 'settings.sites' + %li= active_link_to t('admin.cms.base.sites'), admin_cms_sites_path, :active => ['admin/cms/sites'] + - if can? :view, 'settings.roles' + %li= active_link_to t('cms.fortress.roles.title'), cms_fortress_roles_path + - if can? :view, 'settings.users' + %li= active_link_to t('cms.fortress.users.title'), cms_fortress_users_path - elsif design_page? - if @site && !@site.new_record? - %li= active_link_to t('admin.cms.base.layouts'), admin_cms_site_layouts_path(@site) - %li= active_link_to t('admin.cms.base.snippets'), admin_cms_site_snippets_path(@site) + - if can? :view, 'designs.layouts' + %li= active_link_to t('admin.cms.base.layouts'), admin_cms_site_layouts_path(@site) + - if can? :view, 'designs.snippets' + %li= active_link_to t('admin.cms.base.snippets'), admin_cms_site_snippets_path(@site) - else - if @site && !@site.new_record? - %li= active_link_to t('admin.cms.base.pages'), admin_cms_site_pages_path(@site) - %li= active_link_to t('admin.cms.base.files'), admin_cms_site_files_path(@site) + - if can? :view, 'contents.pages' + %li= active_link_to t('admin.cms.base.pages'), admin_cms_site_pages_path(@site) + - if can? :view, 'contents.files' + %li= active_link_to t('admin.cms.base.files'), admin_cms_site_files_path(@site) = cms_hook :navigation = render '/admin/cms/partials/navigation_inner'