Skip to content

Instantly share code, notes, and snippets.

@ZachBeta
Created August 18, 2011 01:31
Show Gist options
  • Save ZachBeta/1153090 to your computer and use it in GitHub Desktop.
Save ZachBeta/1153090 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title><%= content_for?(:title) ? yield(:title) : "TimeTracker" %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag :defaults, :cache => true %>
<%= csrf_meta_tag %>
<%= yield(:head) %>
</head>
<body>
<div id="container">
<div id="user_nav">
<% if current_user %>
Logged in as <%= current_user.email %>
<%= link_to "Log out", logout_path %>
<% else %>
<%= link_to "Sign up", signup_path %> or
<%= link_to "Log in", login_path %>
<% end %>
</div>
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %>
<%= content_tag :h1, yield(:title) if show_title? %>
<%= yield %>
<HR>
<p> THIS IS A BETA! Please send
<ul>
<li>suggestions</li>
<li>comments</li>
<li>questions</li>
<li>concerns</li>
<li>bug reports</li>
<li>cat pictures</li>
</ul> to <a href="mailto:[email protected]?subject=TimeTracker Beta">my personal email - [email protected]</a></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment