2012-08-25 04:14:51 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-01-26 09:21:41 +00:00
|
|
|
<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">
|
2013-12-02 09:03:40 +00:00
|
|
|
<a id="home_nav_link" href="/" title="Home"><img src="/assets/logo.png" id="logo" /></a>
|
2013-01-26 09:21:41 +00:00
|
|
|
<%= 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 %>
|
2013-01-25 13:01:02 +00:00
|
|
|
<%= 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) %>
|
2013-09-29 02:31:28 +00:00
|
|
|
<%= link_to 'Settings', settings_path if can? :read, Setting %>
|
2013-01-25 13:52:19 +00:00
|
|
|
<% if user_signed_in? then %><%= link_to 'Profile', edit_user_registration_path %><% end %>
|
2013-01-26 09:21:41 +00:00
|
|
|
<%= 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>
|
2013-01-26 09:21:41 +00:00
|
|
|
<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 %>
|
2013-01-26 09:21:41 +00:00
|
|
|
</div>
|
2013-10-04 09:59:41 +00:00
|
|
|
<%= raw Setting.analytics_code if Setting.present? %>
|
2012-08-25 04:14:51 +00:00
|
|
|
</body>
|
|
|
|
</html>
|