Commit d32a4cc201f9d57c1b288569d5b8b01d9ce7cb97
- Date: Sun Apr 27 21:28:36 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: d32a4cc201f9d57c1b288569d5b8b01d9ce7cb97
- Tree SHA1: 2d53e91b21f070b53596110b3df2b83efe6b9177
Make tab background white when not in context-menu mode
Commit diff
| |   |
| 49 | 49 | </ul> |
| 50 | 50 | <% if @project -%> |
| 51 | 51 | <h2 id="project_title"><%= link_to h(@project.title), @project -%></h2> |
| 52 | | <ul id="submenu"> |
| 52 | <ul id="submenu" class="<%= @content_for_submenu.blank? ? "white" : "" -%>"> |
| 53 | 53 | <li class="<%= submenu_selected_class_if_current?(:overview) -%>"> |
| 54 | 54 | <%= link_to "Project Overview", |
| 55 | 55 | project_path(@project), :class => "round-tl-5 round-tr-5" -%> |
| toggle raw diff |
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -49,7 +49,7 @@
</ul>
<% if @project -%>
<h2 id="project_title"><%= link_to h(@project.title), @project -%></h2>
- <ul id="submenu">
+ <ul id="submenu" class="<%= @content_for_submenu.blank? ? "white" : "" -%>">
<li class="<%= submenu_selected_class_if_current?(:overview) -%>">
<%= link_to "Project Overview",
project_path(@project), :class => "round-tl-5 round-tr-5" -%> |
| |   |
| 1 | | <li><%= link_to "Activity", [@project, @repository] -%></li> |
| 1 | <li><%= link_to "Overview", [@project, @repository] -%></li> |
| 2 | 2 | <li><%= link_to "Commits", |
| 3 | 3 | project_repository_logs_path(@project, @repository) -%></li> |
| 4 | 4 | <li><%= link_to "Trees", |
| toggle raw diff |
--- a/app/views/repositories/_context_menu.html.erb
+++ b/app/views/repositories/_context_menu.html.erb
@@ -1,4 +1,4 @@
-<li><%= link_to "Activity", [@project, @repository] -%></li>
+<li><%= link_to "Overview", [@project, @repository] -%></li>
<li><%= link_to "Commits",
project_repository_logs_path(@project, @repository) -%></li>
<li><%= link_to "Trees", |
| |   |
| 308 | 308 | color: #000; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | #submenu.white li.selected a { |
| 312 | background: #fff; |
| 313 | } |
| 314 | |
| 311 | 315 | #submenu li a:hover { |
| 312 | 316 | text-decoration: none; |
| 313 | 317 | background: #3b5f02; |
| … | … | |
| 323 | 323 | color: #000; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | #submenu.white li.selected a:hover { |
| 327 | background: #fff; |
| 328 | color: #000; |
| 329 | } |
| 330 | |
| 326 | 331 | /* context menu */ |
| 327 | 332 | |
| 328 | 333 | #contextmenu { |
| toggle raw diff |
--- a/public/stylesheets/base.css
+++ b/public/stylesheets/base.css
@@ -308,6 +308,10 @@ abbr {
color: #000;
}
+#submenu.white li.selected a {
+ background: #fff;
+}
+
#submenu li a:hover {
text-decoration: none;
background: #3b5f02;
@@ -319,6 +323,11 @@ abbr {
color: #000;
}
+#submenu.white li.selected a:hover {
+ background: #fff;
+ color: #000;
+}
+
/* context menu */
#contextmenu { |