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

34 lines
1.5 KiB
Plaintext
Raw Normal View History

2012-08-25 04:14:51 +00:00
<!DOCTYPE html>
<html>
<head>
<title>hsl_members(<%= controller.controller_name %>.<%= controller.action_name %><%= "["+params[:id]+"]" unless params[:id].blank? %>)</title>
2012-08-25 04:14:51 +00:00
<%= 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">
2013-01-26 09:40:30 +00:00
<a href="/" title="Home"><img src="/assets/logo.png" id="logo" /></a>
<%= link_to 'People', users_path if can? :read, User %>
<%= link_to 'Access Cards', cards_path if can? :manage, Card %>
2013-08-27 05:12:45 +00:00
<% if can? :create, 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 %>
2013-02-12 08:58:17 +00:00
<%= link_to 'Payments', payments_path if can? :read, Payment %>
<%= link_to 'Computers', macs_path if user_signed_in? && (can? :read, Mac) %>
<% if user_signed_in? then %><%= link_to 'Profile', edit_user_registration_path %><% end %>
<%= link_to 'Logout', destroy_user_session_path, :method => :delete if user_signed_in? %>
<%= link_to 'Login', new_user_session_path unless user_signed_in? %>
2013-02-01 11:44:05 +00:00
<%= link_to 'Membership Application', new_user_registration_path unless user_signed_in? %>
2012-08-31 06:54:25 +00:00
</div>
<div id="content">
2013-01-26 09:40:30 +00:00
<p class="notice"><%= raw(notice) %></p>
<p class="alert"><%= raw(alert) %></p>
2012-08-25 04:14:51 +00:00
<%= yield %>
</div>
2012-08-25 04:14:51 +00:00
</body>
</html>