Skip to content

Instantly share code, notes, and snippets.

@terakilobyte
Created November 14, 2015 19:35
Show Gist options
  • Save terakilobyte/6dfdad0714db6aaff28d to your computer and use it in GitHub Desktop.
Save terakilobyte/6dfdad0714db6aaff28d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Rumbl.io</title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css ") %>">
</head>
<body>
<div class="container" role="main">
<div class="header">
<ol class="breadcrumb text-right">
<%= if @current_user do %>
<li>
<%= @current_user.username %>
</li>
<li>
<%= link "Logout", to: session_path(@conn, :delete, @current_user), method: "delete" %>
</li>
<% else %>
<li><%= link "Register", to: user_path(@conn, :new) %></li>
<li><%= link "Login", to: session_path(@conn, :new) %></li>
<% end %>
</ol>
</div>
<p class="alert alert-info" role="alert">
<%= get_flash(@conn, :info) %>
</p>
<p class="alert alert-danger" role="alert">
<%= get_flash(@conn, :error) %>
</p>
<%= @inner %>
</div>
<!-- /container -->
<script src="<%= static_path(@conn, "/js/app.js ") %>"></script>
</body>
</html>
@terakilobyte
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment