diff options
Diffstat (limited to 'app/views/admin/blog/_submenu.html.erb')
-rw-r--r-- | app/views/admin/blog/_submenu.html.erb | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index ab662e7..b93e30d 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -1,6 +1,6 @@ <nav id='actions' class='multilist'> <ul class='search_list'> - <li> + <li class='not_a_link'> <%= render :partial => "/shared/admin/search", :locals => { :url => admin_blog_posts_url @@ -9,7 +9,7 @@ </ul> <ul class='collapsible_menu'> - <li> + <li class='not_a_link'> <%= link_to t('.posts.title'), '#', :class => 'page_copy_icon' %> </li> @@ -18,37 +18,42 @@ :class => 'page_icon' %> </li> <li> - <%= link_to t('.posts.new'), new_admin_blog_post_url, - :class => 'page_add_icon' %> - </li> - </ul> - - <ul class='collapsible_menu'> - <li> - <% if BlogComment.unmoderated.any? %> - <% title = t('.comments.title_with_count', :new_count => BlogComment.unmoderated.size) %> - <% else %> - <% title = t('.comments.title') %> - <% end %> - <%= link_to title, '#', - :class => 'comments_icon' %> - </li> - <li> - <%= link_to t('.comments.new'), admin_blog_comments_path, - :class => 'comment_icon' %> - </li> - <li> - <%= link_to t('.comments.approved'), approved_admin_blog_comments_path, - :class => 'comment_tick_icon' %> + <%= link_to t('.posts.uncategorized'), uncategorized_admin_blog_posts_url, + :class => 'page_icon' %> </li> <li> - <%= link_to t('.comments.rejected'), rejected_admin_blog_comments_path, - :class => 'comment_cross_icon' %> + <%= link_to t('.posts.new'), new_admin_blog_post_url, + :class => 'page_add_icon' %> </li> </ul> + <% if BlogPost.comments_allowed? %> + <ul class='collapsible_menu'> + <li class='not_a_link'> + <% if BlogComment.unmoderated.any? %> + <% title = t('.comments.title_with_count', :new_count => BlogComment.unmoderated.size) %> + <% else %> + <% title = t('.comments.title') %> + <% end %> + <%= link_to title, '#', + :class => 'comments_icon' %> + </li> + <li> + <%= link_to t('.comments.new'), admin_blog_comments_path, + :class => 'comment_icon' %> + </li> + <li> + <%= link_to t('.comments.approved'), approved_admin_blog_comments_path, + :class => 'comment_tick_icon' %> + </li> + <li> + <%= link_to t('.comments.rejected'), rejected_admin_blog_comments_path, + :class => 'comment_cross_icon' %> + </li> + </ul> + <% end %> <ul class='collapsible_menu'> - <li> + <li class='not_a_link'> <%= link_to t('.categories.title'), '#', :class => 'folder_icon' %> </li> @@ -63,11 +68,15 @@ </ul> <ul class='collapsible_menu'> - <li> + <li class='not_a_link'> <%= link_to t('.settings.title'), admin_blog_settings_path, :class => 'settings_icon' %> </li> <li> + <%= link_to t('.settings.comments'), comments_admin_blog_settings_url, + :class => "#{BlogPost.comments_allowed? ? 'success' : 'failure'}_icon" %> + </li> + <li> <%= link_to t('.settings.moderation'), moderation_admin_blog_settings_url, :class => "#{BlogComment::Moderation.enabled? ? 'success' : 'failure'}_icon" %> </li> |