Add ability to take GPX storage offline.
This commit is contained in:
parent
70dfeb0f3b
commit
0f5646d7f0
6 changed files with 26 additions and 4 deletions
|
@ -1,10 +1,12 @@
|
|||
<tr>
|
||||
<% cl = cycle('table0', 'table1') %>
|
||||
<td class="<%= cl %>">
|
||||
<% if trace.inserted %>
|
||||
<a href="<%= url_for :controller => 'trace', :action => 'view', :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => 'trace', :action => 'icon', :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
|
||||
<% else %>
|
||||
<span style="color:red"><%= t'trace.trace.pending' %></span>
|
||||
<% if OSM_STATUS != :gpx_offline %>
|
||||
<% if trace.inserted %>
|
||||
<a href="<%= url_for :controller => 'trace', :action => 'view', :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => 'trace', :action => 'icon', :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
|
||||
<% else %>
|
||||
<span style="color:red"><%= t'trace.trace.pending' %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id} %>
|
||||
|
|
2
app/views/trace/offline.html.erb
Normal file
2
app/views/trace/offline.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h2><%= t 'trace.offline.heading' %></h2>
|
||||
<p><%= t 'trace.offline.message' %></p>
|
|
@ -1,10 +1,12 @@
|
|||
<h2><%= t 'trace.view.heading', :name => h(@trace.name) %></h2>
|
||||
|
||||
<% if OSM_STATUS != :gpx_offline %>
|
||||
<% if @trace.inserted %>
|
||||
<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
|
||||
<% else %>
|
||||
<span style="color:red"><%= t'trace.view.pending' %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<table border="0">
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue