Updated stats and privacy
This commit is contained in:
parent
2c204a8f9d
commit
9e08a0d036
67
Gemfile.lock
67
Gemfile.lock
|
@ -30,52 +30,51 @@ GEM
|
|||
multi_json (~> 1.0)
|
||||
arel (3.0.2)
|
||||
bcrypt-ruby (3.0.1)
|
||||
builder (3.0.0)
|
||||
cancan (1.6.8)
|
||||
builder (3.0.4)
|
||||
cancan (1.6.10)
|
||||
coffee-rails (3.2.2)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (~> 3.2.0)
|
||||
coffee-script (2.2.0)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.3.3)
|
||||
coffee-script-source (1.6.3)
|
||||
daemon_controller (1.1.5)
|
||||
devise (2.1.1)
|
||||
devise (2.2.7)
|
||||
bcrypt-ruby (~> 3.0)
|
||||
orm_adapter (~> 0.1)
|
||||
railties (~> 3.1)
|
||||
warden (~> 1.2.1)
|
||||
erubis (2.7.0)
|
||||
execjs (1.4.0)
|
||||
multi_json (~> 1.0)
|
||||
execjs (2.0.2)
|
||||
gravtastic (3.2.6)
|
||||
hike (1.2.1)
|
||||
i18n (0.6.0)
|
||||
hike (1.2.3)
|
||||
i18n (0.6.5)
|
||||
journey (1.0.4)
|
||||
jquery-rails (2.1.1)
|
||||
railties (>= 3.1.0, < 5.0)
|
||||
thor (~> 0.14)
|
||||
json (1.7.5)
|
||||
libv8 (3.3.10.4)
|
||||
jquery-rails (3.0.4)
|
||||
railties (>= 3.0, < 5.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
json (1.8.0)
|
||||
libv8 (3.16.14.3)
|
||||
mail (2.4.4)
|
||||
i18n (>= 0.4.0)
|
||||
mime-types (~> 1.16)
|
||||
treetop (~> 1.4.8)
|
||||
mime-types (1.19)
|
||||
multi_json (1.3.6)
|
||||
orm_adapter (0.1.0)
|
||||
passenger (4.0.14)
|
||||
mime-types (1.25)
|
||||
multi_json (1.8.0)
|
||||
orm_adapter (0.4.0)
|
||||
passenger (4.0.19)
|
||||
daemon_controller (>= 1.1.0)
|
||||
rack
|
||||
rake (>= 0.8.1)
|
||||
pg (0.17.0)
|
||||
polyglot (0.3.3)
|
||||
rack (1.4.1)
|
||||
rack (1.4.5)
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
rack-ssl (1.3.2)
|
||||
rack-ssl (1.3.3)
|
||||
rack
|
||||
rack-test (0.6.1)
|
||||
rack-test (0.6.2)
|
||||
rack (>= 1.0)
|
||||
rails (3.2.3)
|
||||
actionmailer (= 3.2.3)
|
||||
|
@ -94,13 +93,14 @@ GEM
|
|||
rake (>= 0.8.7)
|
||||
rdoc (~> 3.4)
|
||||
thor (~> 0.14.6)
|
||||
rake (0.9.2.2)
|
||||
rdoc (3.12)
|
||||
rake (10.1.0)
|
||||
rdoc (3.12.2)
|
||||
json (~> 1.4)
|
||||
ref (1.0.5)
|
||||
rest-client (1.6.7)
|
||||
mime-types (>= 1.16)
|
||||
sass (3.2.1)
|
||||
sass-rails (3.2.5)
|
||||
sass (3.2.11)
|
||||
sass-rails (3.2.6)
|
||||
railties (~> 3.2.0)
|
||||
sass (>= 3.1.10)
|
||||
tilt (~> 1.3)
|
||||
|
@ -111,24 +111,25 @@ GEM
|
|||
hike (~> 1.2)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
sqlite3 (1.3.6)
|
||||
sqlite3 (1.3.8)
|
||||
taps (0.3.24)
|
||||
rack (>= 1.0.1)
|
||||
rest-client (>= 1.4.0, < 1.7.0)
|
||||
sequel (~> 3.20.0)
|
||||
sinatra (~> 1.0.0)
|
||||
therubyracer (0.10.1)
|
||||
libv8 (~> 3.3.10)
|
||||
therubyracer (0.12.0)
|
||||
libv8 (~> 3.16.14.0)
|
||||
ref
|
||||
thor (0.14.6)
|
||||
tilt (1.3.3)
|
||||
treetop (1.4.10)
|
||||
tilt (1.4.1)
|
||||
treetop (1.4.15)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
tzinfo (0.3.33)
|
||||
uglifier (1.2.7)
|
||||
tzinfo (0.3.37)
|
||||
uglifier (2.2.1)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (~> 1.3)
|
||||
warden (1.2.1)
|
||||
multi_json (~> 1.0, >= 1.0.2)
|
||||
warden (1.2.3)
|
||||
rack (>= 1.0)
|
||||
|
||||
PLATFORMS
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<dt># of Door Accesses Denied:</dt>
|
||||
<dd><%= @num_door_denieds %> (<%= @recent_door_denieds %> in the last 7 days)</dd>
|
||||
<dt># of Logins:</dt>
|
||||
<dd><%= @num_logins %> (<%= @recent_logins %> users today)</dd>
|
||||
<dd><%= @num_logins %> (<%= @recent_logins %> users last 7 days)</dd>
|
||||
<dt># of Computers in this DB:</dt>
|
||||
<dd><%= @num_macs %> (<%= @recent_macs %> seen today)</dd>
|
||||
</dl>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<% if can? :read_details, Mac %>
|
||||
<% if @mac_time_start_date.present? %>
|
||||
<b>Most Active Machine Last <%= distance_of_time_in_words DateTime.now, @mac_time_start_date %>:</b>
|
||||
<span title="<%= @most_active_mac.mac %><%= " - "+@most_active_mac.ip.to_s if can? :read_details, @most_active_mac %>">
|
||||
|
@ -13,6 +14,7 @@
|
|||
- <%= (@runner_up.last[:time] / 1.hour).round %> hrs
|
||||
</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<h2>What machines are on our network?</h2>
|
||||
<%= link_to "New MAC registration", new_mac_path if can? :create, Mac %>
|
||||
|
@ -31,6 +33,10 @@ Rails.logger.info mac.inspect %>
|
|||
<% end %>
|
||||
</ul>
|
||||
|
||||
<% unless can? :read_details, Mac %>
|
||||
<p>To see more or register your own, login!</p>
|
||||
<% end %>
|
||||
|
||||
<% if can? :read_details, Mac %>
|
||||
<ul class="mac_list hidden">
|
||||
<% @hidden_macs.each do |mac| %>
|
||||
|
|
|
@ -151,13 +151,13 @@ ActiveRecord::Schema.define(:version => 20130928112252) do
|
|||
t.string "current_sign_in_ip"
|
||||
t.string "last_sign_in_ip"
|
||||
t.boolean "admin"
|
||||
t.integer "member", :limit => 255
|
||||
t.integer "member"
|
||||
t.datetime "waiver"
|
||||
t.datetime "orientation"
|
||||
t.string "emergency_name"
|
||||
t.string "emergency_phone"
|
||||
t.string "emergency_email"
|
||||
t.integer "member_level", :limit => 255
|
||||
t.integer "member_level"
|
||||
t.string "payment_method"
|
||||
t.string "phone"
|
||||
t.text "current_skills"
|
||||
|
|
Loading…
Reference in New Issue
Block a user