Revisions
-
riklomas revised this gist
Nov 30, 2011 . 1 changed file with 7 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,14 @@ <ul class="weeks"> <li>Week</li> <% navigation_weeks.each do |w| %> <li class="<%= (controller_name == "posts" || controller_name == "things") && params[:action]=="index" && params[:week].present? && params[:year].present? && params[:week]==w.week.to_s && params[:year]==w.year.to_s ? 'active' : '' %>"> <%= link_to posts_path(:week => w.week, :year => w.year), :class => 'tip', :title => week_dates(w.week, w.year) do %> <%= w.week %> <% if nmonth != week_month(w.week, w.year) %> <span class="<%= week_month(w.week, w.year).downcase %>"><%= week_month(w.week, w.year) %></span> <% end %> <% end %> </li> <% nmonth = week_month(w.week, w.year) %> <% end %> </ul> -
riklomas revised this gist
Nov 30, 2011 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,15 @@ <% nmonth = "" %> <li> <ul class="weeks"> <li>Week</li> <% navigation_weeks.each do |w| %> <li class="<%= (controller_name == "posts" || controller_name == "things") && params[:action]=="index" && params[:week].present? && params[:year].present? && params[:week]==w.week.to_s && params[:year]==w.year.to_s ? 'active' : '' %>"><%= link_to posts_path(:week => w.week, :year => w.year), :class => 'tip', :title => week_dates(w.week, w.year) do %> <%= w.week %> <% if nmonth != week_month(w.week, w.year) %> <span class="<%= week_month(w.week, w.year).downcase %>"><%= week_month(w.week, w.year) %></span> <% end %> <% end %></li> <% nmonth = week_month(w.week, w.year) %> <% end %> </ul> </li> -
There are no files selected for viewing
File renamed without changes. -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <li> <ul class="weeks"> <li>Week</li> <% navigation_weeks.each do |w| %> <li class="<%= (controller_name == "posts" || controller_name == "things") && params[:action]=="index" && params[:week].present? && params[:year].present? && params[:week]==w.week.to_s && params[:year]==w.year.to_s ? 'active' : '' %>"><%= link_to "#{w.week} <span class='#{week_month(w.week, w.year).downcase}'>#{week_month(w.week, w.year)}</span>".html_safe, posts_path(:week => w.week, :year => w.year), :class => 'tip', :title => week_dates(w.week, w.year) %></li> <% end %> </ul> </li>