app/views/georgia/header/_pages.html.erb in georgia-0.7.8 vs app/views/georgia/header/_pages.html.erb in georgia-0.8.0

- old
+ new

@@ -1,3 +1,3 @@ -<% if can? :index, Georgia::Page %> - <%= sidebar_navigation_link 'Pages', georgia.search_pages_url, controller: 'pages', icon: 'file' %> -<% end -%> +<% if Georgia::PagePolicy.new(current_user, Georgia::Page).search? %> + <%= sidebar_navigation_link 'Pages', georgia.search_pages_path, icon: 'file', active: (controller_name == 'pages' or (controller_name == 'revisions' and @revision.try(:revisionable_type) == 'Georgia::Page')) %> +<% end -%> \ No newline at end of file