try fix tabs rubriken/calendar

This commit is contained in:
Andreas Stephanides
2013-08-18 22:12:28 +02:00
parent 0b19583afb
commit 55b4102a68
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<ul class="nav nav-tabs">
<li <%= (request.fullpath == calendars_path)? 'class="active"'.html_safe : ''%> >
<li <%= (request.fullpath == "")? 'class="active"'.html_safe : ''%> >
<%= link_to I18n.t 'calendars.alle' , calendars_path %> </li>
<% for c in Calendar.all %>
<li <%= (!@calendar.nil? && c == @calendar) ? 'class="active"'.html_safe : '' %> title="<%= c.name %>">

View File

@@ -1,8 +1,8 @@
<ul class="nav nav-tabs">
<li <%= (request.fullpath == rubriken_path)? 'class="active"' : ''%> >
<%= link_to I18n.t 'rubriken.alle' , calendars_path %> </li>
<li <%= (request.fullpath == rubriken_path)? 'class="active"'.html_safe : ''%> >
<%= link_to I18n.t ('rubriken.alle') , calendars_url %> </li>
<% for r in Rubrik.all %>
<li <%= (!@rubrik.nil? && r == @rubrik) ? 'class="active"' : '' %> title="<%= r.name %>">
<li <%= (!@rubrik.nil? && r == @rubrik) ? 'class="active"'.html_safe : '' %> title="<%= r.name %>">
<%= link_to r.name, r %>
</li>
<% end %>