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:
parent
6600221fe3
commit
141df02e67
14 changed files with 49 additions and 55 deletions
|
@ -1,7 +1,7 @@
|
|||
<tr>
|
||||
<% cl = cycle('table0', 'table1') %>
|
||||
<td class="<%= cl %>">
|
||||
<% if STATUS != :gpx_offline %>
|
||||
<% if Settings.status != "gpx_offline" %>
|
||||
<% if trace.inserted %>
|
||||
<a href="<%= url_for :controller => 'traces', :action => 'show', :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => 'traces', :action => 'icon', :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
|
||||
<% else %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue