-
-
Save eric/95519 to your computer and use it in GitHub Desktop.
This file contains 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 characters
<div class="header_wrapper"> | |
<div class="header clearfix"> | |
<h1><a href="/">Kashless</a></h1> | |
<ul class="menu"> | |
<li><%= link_to "Find a free item", listings_path %></li> | |
<li><%= link_to "Give Away", new_listing_path %></li> | |
<%- if logged_in? && current_user.has_role?(:admin) -%> | |
<li><%= link_to "Users Admin", admin_users_path %></li> | |
<li><%= link_to "Invitations Admin", admin_invitations_path %></li> | |
<li><%= link_to "Reports", admin_report_form_path %></li> | |
<%- end -%> | |
<%- if logged_in? %> | |
<li class="auth_logged_in"> | |
<%= link_to current_user.display_name, edit_user_path(current_user) %> | |
<ul> | |
<li><%= link_to "My Profile", profile_path %></li> | |
<li><%= link_to "My Listings", "#" %></li> | |
<li><%= link_to "My Offers", "#" %></li> | |
<li><%= link_to "Saved Searches", "#" %></li> | |
<li><%= link_to "Kash (#{ number_to_currency current_user.available_funds })", "#" %></li> | |
<li><%= link_to "Settings", edit_user_path(current_user) %></li> | |
<li><%= link_to "Log out", logout_path %></li> | |
</ul> | |
</li> | |
<%- else -%> | |
<li class="auth_logged_out"> | |
<%= link_to "Sign up", signup_path, { :title => "Create an account" } %> | |
</li> | |
<li class="auth_logged_out"> | |
<%= link_to "Log in", login_path, { :title => "Log in" } %> | |
</li> | |
<%# link_to "Help", "http://help.kashless.org/", :rel => "external" %> | |
<%- end -%> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment