Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 15, 2014 03:45
Show Gist options
  • Select an option

  • Save axilaris/9561578 to your computer and use it in GitHub Desktop.

Select an option

Save axilaris/9561578 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Megaaccounts</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
<body>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
<p class="navbar-text pull-right">
<% if user_signed_in? %>
Logged in as <strong><%= current_user.email %></strong>.
<%= link_to 'Edit profile', edit_user_registration_path, :class => 'navbar-link' %> |
<%= link_to "Logout", destroy_user_session_path, method: :delete, :class => 'navbar-link' %>
<% else %>
<%= link_to "Sign up", new_user_registration_path, :class => 'navbar-link' %> |
<%= link_to "Login", new_user_session_path, :class => 'navbar-link' %>
<% end %>
<%= yield %>
</body>
<%= yield :modaldiv %>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment