Sha256: 94ca7025ca9886ffeb51c2c6afbfd65ce6221f4338956179b3c78b2d838adc21

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<%= stylesheet_link_tag "whodat/navbar" %>

<div class="topnav" id="myTopnav">
 
  <a> <%= link_to 'Main app', main_app.root_path %> </a>

  <% if !user_signed_in? %>
    <a> <%= link_to 'Sign Up', whodat.new_user_path %> </a>
    <a> <%= link_to 'Log In', whodat.new_session_path %> </a>
  <% end %>

  <% if user_signed_in? %>
    <a> <%= link_to 'Log Out', whodat.session_path(current_user), data: {confirm: "Are you sure?" }, method: :delete %> </a>
    <div id="username"> You're logged in as <%=current_user.name %> </div>
  <% end %>
 
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whodat-1.0.1 app/views/whodat/dashboard/_navbar.html.erb