You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by as...@apache.org on 2008/05/27 21:53:34 UTC

svn commit: r660668 - in /ode/sandbox/singleshot: app/views/layouts/application.html.erb public/stylesheets/default.css

Author: assaf
Date: Tue May 27 12:53:32 2008
New Revision: 660668

URL: http://svn.apache.org/viewvc?rev=660668&view=rev
Log:
Highlight current tab.

Modified:
    ode/sandbox/singleshot/app/views/layouts/application.html.erb
    ode/sandbox/singleshot/public/stylesheets/default.css

Modified: ode/sandbox/singleshot/app/views/layouts/application.html.erb
URL: http://svn.apache.org/viewvc/ode/sandbox/singleshot/app/views/layouts/application.html.erb?rev=660668&r1=660667&r2=660668&view=diff
==============================================================================
--- ode/sandbox/singleshot/app/views/layouts/application.html.erb (original)
+++ ode/sandbox/singleshot/app/views/layouts/application.html.erb Tue May 27 12:53:32 2008
@@ -11,7 +11,13 @@
   <body>
     <div id='header'>
       <ul class='links'><li><%= link_to 'Logout', session_url(:method=>:delete) %></li></ul>
-      <ul class='tabs'><li><%= link_to '➠ Tasks', tasks_url %></li><li><%= link_to 'Following', following_tasks_url %></a></li><li><%= link_to 'Completed', completed_tasks_url %></a></li><li><%= link_to 'Activity', activities_url %></a></li><li><a href='#'>Start &hellip;</a></li></ul>
+      <ul class='tabs'><%=
+        [ ['➠ Tasks', tasks_url, 'Pending and available tasks'],
+          ['Following', following_tasks_url, 'Tasks you create, observing or administrating'],
+          ['Completed', completed_tasks_url, 'Tasks you completed'],
+          ['Activity', activities_url, 'Recent task activity'] ].map { |tab|
+            content_tag 'li', link_to(tab[0], tab[1], :title=>tab[2], :class=>current_page?(tab[1]) ? 'current': nil)
+          }.join %></ul>
       <ul class='alternate'><%= content_tag 'li', link_to(image_tag('feed.png') + ' Feed', @alternate[Mime::ATOM], :rel=>'alternate', :title=>'Subscribe with your feed reader') if @alternate && @alternate[Mime::ATOM] %><%= content_tag 'li', link_to(image_tag('calendar.png') + ' Calendar', @alternate[Mime::ICS], :rel=>'alternate', :title=>'Add to your calendar') if @alternate && @alternate[Mime::ICS] %></ul>
     </div>
     <div id='main'>

Modified: ode/sandbox/singleshot/public/stylesheets/default.css
URL: http://svn.apache.org/viewvc/ode/sandbox/singleshot/public/stylesheets/default.css?rev=660668&r1=660667&r2=660668&view=diff
==============================================================================
--- ode/sandbox/singleshot/public/stylesheets/default.css (original)
+++ ode/sandbox/singleshot/public/stylesheets/default.css Tue May 27 12:53:32 2008
@@ -148,8 +148,8 @@
   -webkit-border-top-left-radius: 6px;
   -webkit-border-top-right-radius: 6px;
 }
-#header ul.tabs li a:hover {
-  background-color: #002f2f;
+#header ul.tabs li a:hover, #header ul.tabs li a.current {
+  background-color: #044360;
 }
 #header ul.tabs li a .counter {
   position: relative;