|
21 | 21 |
|
22 | 22 | <body> |
23 | 23 | <div id="loader"><%= image_tag "loader.gif" %></div> |
24 | | - |
| 24 | + |
25 | 25 | <div class="header"> |
26 | 26 | <% if Rails.env.development? %> |
27 | 27 | <div style="float: left; font-size: 20pt; background-color: black; color: red;">DEVELOPMENT <br />ENVIRONMENT</div> |
28 | 28 | <% end %> |
29 | | - |
| 29 | + |
30 | 30 | <%= link_to image_tag("header.png"), root_url %> |
31 | 31 | </div> |
32 | | - |
| 32 | + |
33 | 33 | <% if kiosk_signed_in? %> |
34 | 34 | <div class="loggedin loggedin-expanded"> |
35 | 35 | <b>KIOSK MODE</b><br/> |
|
88 | 88 | <%= conditional_link_to "Reference", reference_events_url, :index, Event %> |
89 | 89 | <%= conditional_link_to "Email (#{Email.where(unread: true).count})", emails_url, :read, Email %> |
90 | 90 | <%= conditional_link_to "Finance", invoices_url, :read, :finance %> |
91 | | - <%= conditional_link_to "Members", members_url, :index, Member %> |
| 91 | + <%= conditional_link_to "Members", members_url(active_only: 1), :index, Member %> |
92 | 92 | <%= conditional_link_to "Timecards", timecard_entries_url, :read, TimecardEntry %> |
93 | 93 | <%= conditional_link_to "Weather", weather_index_url, :index, WeatherController %> |
94 | 94 | <%= link_to "Radio Checkout", 'https://bit.ly/techradios', target: :_blank if can? :read, Event %> |
95 | | - |
| 95 | + |
96 | 96 | <% if member_signed_in? or kiosk_signed_in? %> |
97 | 97 | <%= link_to "Miscellaneous", "#", class: "toggle-div", data: {div: "misc-menu"} %> |
98 | 98 |
|
99 | | - <% if show_admin_link %> |
| 99 | + <% if show_admin_link %> |
100 | 100 | <%= link_to "Tracker Admin", "#", class: "toggle-div", data: {div: "submenu"} %> |
101 | 101 | <% end %> |
102 | 102 | <% end %> |
|
107 | 107 | <%= conditional_link_to "Organizations", organizations_url, :read, Organization %> |
108 | 108 | <%= conditional_link_to "Attachments", attachments_url, :read, Attachment %> |
109 | 109 | </div> |
110 | | - |
| 110 | + |
111 | 111 | <% if show_admin_link %> |
112 | 112 | <div id="submenu" style="display: none;" class="main-nav"> |
113 | 113 | <%= conditional_link_to "Locations", locations_url, :read, Location %> |
|
125 | 125 | <% if flash[:notice] %><div class="notice"><%= flash[:notice] %></div><% end %> |
126 | 126 | <% if flash[:alert] %><div class="alert"><%= flash[:alert] %></div><% end %> |
127 | 127 | <% if flash[:error] %> <div class="error"> <%= flash[:error] %> </div><% end %> |
128 | | - |
| 128 | + |
129 | 129 | <% if content_for?(:body) %> |
130 | 130 | <%= yield :body %> |
131 | 131 | <% else %> |
|
0 commit comments