Adding door alert emails (test mode) and adjusting door log graph view
This commit is contained in:
@@ -12,8 +12,8 @@ $(function() {
|
||||
|
||||
$( "#graph-dialog" ).dialog({
|
||||
autoOpen: false,
|
||||
height: 480,
|
||||
width: 640,
|
||||
height: 700,
|
||||
width: 825,
|
||||
modal: true,
|
||||
});
|
||||
|
||||
@@ -130,7 +130,7 @@ function generatePlotBands(start,end){
|
||||
|
||||
<div id="graph-dialog" title="Door Status">
|
||||
|
||||
<div id="graph" style="height: 400px; width: 600px; float: right;"></div>
|
||||
<div id="graph" style="height: 600px; width: 800px; float: right;"></div>
|
||||
|
||||
<%= form_tag(nil, :method => :get) do %>
|
||||
<label>Start Date
|
||||
|
||||
5
app/views/door_mailer/alert.html.erb
Executable file
5
app/views/door_mailer/alert.html.erb
Executable file
@@ -0,0 +1,5 @@
|
||||
It's <%= DateTime.current.to_time.strftime("%l:%M %p") %> and the doors are <%= @status[:unlocked] ? "open" : "not open" %> !
|
||||
|
||||
See more info at: <a href="http://live.heatsynclabs.org">http://live.heatsynclabs.org</a>
|
||||
|
||||
<a href="http://twitter.com/willbradley>@willbradley</a> programmed me to let y'all know, just in case. Cheers!
|
||||
Reference in New Issue
Block a user