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

42 lines
2.0 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>
2014-02-09 10:42:17 +00:00
<% if params[:controller] == "resources" %>
<link href="/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="/bootstrap/css/bootstrap-theme.min.css" type="text/css" rel="stylesheet" />
<script src="/bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
<% else %>
<%= stylesheet_link_tag "application", :media => "all" %>
<% end %>
2012-08-25 04:14:51 +00:00
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
2012-08-25 06:28:00 +00:00
<div id="header">
<a id="home_nav_link" 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-12-30 04:56:47 +00:00
<%= link_to 'Payments', payments_path if can? :create, Payment %>
2013-09-28 11:59:19 +00:00
<%= link_to 'Computers', macs_path if user_signed_in? || (can? :read, Mac) %>
<%= link_to 'Settings', settings_path if can? :read, Setting %>
<% 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>
<%= raw Setting.analytics_code if Setting.present? %>
2012-08-25 04:14:51 +00:00
</body>
</html>