Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<header class="navbar">
<div class="navbar-inverse navbar-static-top">
<div class="navbar-inner">
<div class="container">
<%= link_to (image_tag "logo_black_bg.png", :alt => "1logo", :style =>"width: 6cm;"), root_path %>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="#about">About</a></li>
</ul>
<ul class="nav btn-toolbar">
<%= link_to "Browse Products", products_path, class: "btn btn-info" %>
<%= link_to 'Post Products', new_product_path, class: "btn btn-success" %>
</ul>
</li>
</ul>
<% if user_signed_in? %>
<ul class="nav pull-right">
<li>
<span class="center" >
Signed in as <%= link_to(current_user.email,edit_user_registration_path) %> Not you?
<%= link_to('Sign out', destroy_user_session_path, :method=>'delete') %>
</span>
</li>
</ul>
<ul class="nav">
<% else %>
<%= form_for(resource, :html => {:class => "navbar-form pull-right"}, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<%= f.email_field :email, :type => "text", :class =>"span2", :placeholder => "Email Address" %>
<%= f.password_field :password, :class =>"span2", :placeholder => "Password" %>
<%= f.submit "Sign in", :class => "btn btn-large btn-primary" %>
<%= link_to 'Sign up', new_user_registration_path, class: "btn btn-large btn-success" %>
<% end %>
</ul>
<% end %>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
</header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.