Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul id="subnav">
- <li><%= link_to "Recently", {:controller => 'news', :action => 'index'}, :class => ((params[:year].blank? || params[:year] == "2008")? "active" : "")></li>
- <li><%= link_to "2007", {:controller => 'news', :action => 'year', :id => 2007}, :class => (params[:year] == "2007" ? "active" : "") %></li>
- <li><%= link_to "2006", {:controller => 'news', :action => 'year', :id => 2006}, :class => (params[:year] == "2006" ? "active" : "") %></li>
- </ul>
Add Comment
Please, Sign In to add comment