jordanisip (owner)

Revisions

gist: 95518 Download_button fork
public
Public Clone URL: git://gist.github.com/95518.git
Embed All Files: show embed
header haml #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.header_wrapper
  .header.clearfix
    %h1= link_to "Kashless", "/"
 
    %ul.menu
      %li= link_to "Find a free item", listings_path
      %li= link_to "Give Away", new_listing_path
      
      - if logged_in? && current_user.has_role?(:admin)
        %li= link_to "Users Admin", admin_users_path
        %li= link_to "Invitations Admin", admin_invitations_path
        %li= link_to "Reports", admin_report_form_path
 
      - if logged_in?
        %li.auth_logged_in
          = link_to current_user.display_name, edit_user_path(current_user)
          %ul
            %li= link_to "My Profile", profile_path
            %li= link_to "My Listings", "#"
            %li= link_to "My Offers", "#"
            %li= link_to "Saved Searches", "#"
            %li= link_to "Kash (#{ number_to_currency current_user.available_funds })", "#"
            %li= link_to "Settings", edit_user_path(current_user) %>
            %li= link_to "Log out", logout_path
 
      - else
        %li.auth_logged_out
          = link_to "Sign up", signup_path, { :title => "Create an account" }
        %li.auth_logged_out
          = link_to "Log in", login_path, { :title => "Log in" }
 
        =# link_to "Help", "http://help.kashless.org/", :rel => "external"