Move status into the settings object

Only the very early boot code needs to look at the value
from the environment directly.
This commit is contained in:
Tom Hughes 2019-03-16 16:29:12 +00:00
parent 6600221fe3
commit 141df02e67
14 changed files with 49 additions and 55 deletions

View file

@ -2,7 +2,7 @@
<h2><%= t '.heading', :name => h(@trace.name) %></h2>
<% end %>
<% if STATUS != :gpx_offline %>
<% if Settings.status != "gpx_offline" %>
<% if @trace.inserted %>
<img src="<%= url_for :controller => 'traces', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
<% else %>