Sha256: b411b1453c47f1b8742858822f0ceb6dcc1a0a063265834319bb15915730f0d5

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

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

<div class="topnav" id="myTopnav">

<a> <%= link_to 'Main app', main_app.root_path %> </a>
<% if !user_signed_in? %>  
  <a> <%= link_to 'Sign Up', new_user_path %> </a>
  <a> <%= link_to 'Log In', new_session_path %> </a>
<% end %>
<% if user_signed_in? %>
   <a> <%= link_to 'Log Out', 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/index.html.erb