Skip to content

Commit

Permalink
Made it so that moderate button receives selected style when the user…
Browse files Browse the repository at this point in the history
… is on that page
  • Loading branch information
brzaik committed Jul 15, 2012
1 parent 4eccbf0 commit f4213e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/elements/_topmenu_contents.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<%= link_to t(:browse), feeds_path, :class => "btn #{ current_page?(feeds_path) || (controller.controller_name == 'submissions' && ['index', 'show'].include?(controller.action_name)) ? 'selected' : '' }" %>
<%= link_to t(:add), new_content_path, :class => "btn #{ current_page?(new_content_path) ? 'selected' : '' }" if can? :create, Content %>
<% if @pending_submissions_count %>
<%= link_to moderate_path, :class => "btn" do %>
<%= link_to moderate_path, :class => "btn #{ current_page?(moderate_path) ? 'selected' : '' }" do %>
<%= t(:moderate) %>&nbsp;<span class="badge<% if @pending_submissions_count > 0 %> action<% end %>"><%= @pending_submissions_count %></span>
<% end %>
<% end %>
Expand Down

0 comments on commit f4213e8

Please sign in to comment.