Skip to content

Commit

Permalink
Fixed style for topmenu selected active menu items; also made it so t…
Browse files Browse the repository at this point in the history
…hat Browse menu item is marked as selected from submissions views
  • Loading branch information
brzaik committed Feb 19, 2012
1 parent 70d1208 commit 699f8fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/application/layout/topmenu.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ nav#TM {

&:active {
color:#FFF;
padding: 7px 20px 0px 20px;
height:23px;
}

&:hover {
Expand Down
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 @@ -22,7 +22,7 @@
<section>
<div class="TM-sectop">
<%= link_to new_content_path, :class => "btn #{ current_page?(new_content_path) ? 'selected' : '' }" do %><%= t(:add) %><% end %>
<%= link_to contents_path, :class => "btn #{ current_page?(contents_path) ? 'selected' : '' }" do %><%= t(:browse) %><% end %>
<%= link_to contents_path, :class => "btn #{ current_page?(contents_path) || current_page?(feed_submission_path) ? 'selected' : '' }" do %><%= t(:browse) %><% end %>
</div>
<div class="TM-secbot">
<h1><%= t(:content) %></h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<%= javascript_include_tag "html5.js" %>
<![endif]-->
</head>
<body class="TM-visible">
<body>
<nav id="show-TM">
<a href="#">-- Show Top Menu --</a>
</nav>
Expand Down

0 comments on commit 699f8fe

Please sign in to comment.