implement saved searches(filters)
[shapado:piglops-shapado.git] / app / views / shared / _user-zone.html.haml
1 .user-zone.module
2
3   -if !logged_in?
4     /=multiauth_menu("Sign In")
5     = multiauth_dropdown("Sign In")
6   -else
7     .avatar
8       = gravatar(current_user.email.to_s, :size => 25)
9
10     .greeting
11       %small Welcome
12       -if logged_in?
13         %b=current_user.login
14     .clear
15
16     %nav
17       %ul
18         %li.active
19           =link_to "Mi perfil", user_path(current_user)
20         %li
21           =link_to "Mi Karma: #{current_user.reputation_on(current_group)}"
22         %li
23           =link_to "Followed", feed_user_path(current_user)
24         %li
25           =link_to "All", questions_path
26         %li
27           =link_to "By Me", by_me_user_path(current_user)
28         %li
29           =link_to "Preferred", preferred_user_path(current_user)
30         %li
31           =link_to "Contributed", contributed_user_path(current_user)
32         %li
33           =link_to "Collaborate!", expertise_user_path(current_user)
34         %li.log-out
35           =link_to t("layouts.application.logout"), destroy_user_session_path
36
37       %ul
38         -current_user.searches.where(:group_id => current_group.id).each do |search|
39           %li
40             =link_to search.name, search_path(search)