2012-08-24 21:14:51 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Dooraccess</title>
|
|
|
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
|
|
<%= javascript_include_tag "application" %>
|
|
|
|
<%= csrf_meta_tags %>
|
|
|
|
</head>
|
|
|
|
<body>
|
2012-08-24 23:28:00 -07:00
|
|
|
<div id="header">
|
2012-09-15 18:41:55 -07:00
|
|
|
<%= link_to 'Users', users_path if user_signed_in? %>
|
|
|
|
<%= link_to 'Logs', door_logs_path if user_signed_in? %>
|
2012-09-03 21:56:37 -07:00
|
|
|
<%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
|
2012-09-15 18:41:55 -07:00
|
|
|
<%= link_to 'Sign in', new_user_session_path unless user_signed_in? %>
|
2012-08-30 23:54:25 -07:00
|
|
|
</div>
|
2012-09-02 02:59:29 -07:00
|
|
|
<p class="notice"><%= notice %></p>
|
|
|
|
<p class="alert"><%= alert %></p>
|
2012-08-24 21:14:51 -07:00
|
|
|
<%= yield %>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|