Created
June 21, 2013 07:01
-
-
Save adambray/5829396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Tickets</title> | |
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> | |
<%= javascript_include_tag "application", "data-turbolinks-track" => true %> | |
<%= csrf_meta_tags %> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<div class="navbar navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<a class="brand" href="#">ResNet Ticketr</a> | |
<div class="nav-collapse"> | |
<ul class="nav"> | |
<li><%= link_to "Tickets", tickets_path %></li> | |
<li><%= link_to "Users", users_path %></li> | |
</ul> | |
<ul class="nav pull-right"> | |
<% if current_user %> | |
<li><p><%= "Hello, #{current_user.first_name}"%> <%= link_to "sign out", destroy_user_session_path, method: :delete %></p></li> | |
<% else %> | |
<li><p><%= link_to "sign up", new_user_registration_path %> or <%= link_to "sign in", new_user_session_path %></p></li> | |
<% end %> | |
</div> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="container" id="main"> | |
<div class="row"> | |
<% flash.each do |name, msg| %> | |
<% unless msg.blank? %> | |
<%= content_tag :div, :id => "flash_#{name}", :class => "alert alert-#{name == :notice ? "success" : "error"}" do %> | |
<button class="close" data-dismiss="alert">×</button> | |
<%= msg.gsub(/\n/, "<br />").html_safe %> | |
<% end %> | |
<% end %> | |
<% end %> | |
<% flash.clear %> | |
<div class="span12"> | |
<%= yield %> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment