Open-Source-Access-Control-.../app/views/layouts/application.html.erb

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-08-25 04:14:51 +00: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-25 06:28:00 +00:00
<div id="header">
<%= link_to 'Users', users_path if can? :read, User %>
<%= link_to 'Cards', cards_path if can? :manage, Card %>
<% if can? :manage, UserCertification %>
<%= link_to 'Cert Classes', certifications_path if can? :read, Certification %>
<%= link_to 'User Certs', user_certifications_path if can? :create, UserCertification %>
<% else %>
<%= link_to 'Certifications', certifications_path if can? :read, Certification %>
<% end %>
<%= link_to 'Logs', door_logs_path if can? :read, DoorLog %>
<% if user_signed_in? then %><%= link_to 'Profile', edit_user_registration_path %><% end %>
2012-09-04 04:56:37 +00:00
<%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
<%= link_to 'Sign in', new_user_session_path unless user_signed_in? %>
2012-08-31 06:54:25 +00:00
</div>
<p class="notice"><%= raw(notice) %></p>
<p class="alert"><%= raw(alert) %></p>
2012-08-25 04:14:51 +00:00
<%= yield %>
</body>
</html>