1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00
my-images/app/views/layouts/application.html.erb
2018-10-19 11:37:15 -04:00

40 lines
899 B
Plaintext

<!DOCTYPE html>
<html>
<head>
<title>My Images</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_pack_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<header>
<div class="container">
<div class="title">
<%= content_for :title %>
</div>
<div class="profile">
<% if @current_user %>
Signed in as: <%= @current_user.name %> | <%= link_to 'Sign out', session_path, method: :delete %>
<% else %>
<%= link_to 'Sign in with GitHub', '/auth/github' %>
<% end %>
</div>
</div>
</header>
<main>
<div class="container">
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, class: "alert alert-info" %>
<% end %>
<%= yield %>
</div>
</main>
</body>
</html>