implemented activities tab
[shapado:piglops-shapado.git] / app / views / shared / _content-nav.html.haml
1 %nav
2   %ul.content-tabs
3     %li.questions
4       =link_to t("layouts.application.questions"), url_for(questions_link)
5     %li.answers
6       =link_to "Answers", url_for(questions_link.merge(:answers => 1))
7     %li.unanswered
8       =link_to t("layouts.application.unanswered"), url_for(questions_link.merge(:unanswered => 1))
9     %li.activity
10       =link_to "Activity", activities_path(:context => (params[:context]||params[:action]))
11
12   %section.filters{:class => @active_subtab }
13     %ul
14       %header Sort By:
15       %li.newest
16         = link_to t("questions.index.newest"), url_for(params.merge(questions_link).merge(:sort=>"newest")), :title => t("questions.index.newest_tooltip")
17       %li.hot
18         = link_to t("questions.index.hot"), url_for(params.merge(questions_link).merge(:sort=>"hot")), :title => t("questions.index.hot_tooltip"), :rel => "nofollow"
19       %li.votes
20         = link_to t("questions.index.votes"), url_for(params.merge(questions_link).merge(:sort=>"votes")), :title =>  t("questions.index.votes_tooltip"), :rel => "nofollow"