Show a helpful message when there are no traces to display
This commit is contained in:
parent
888a0be790
commit
0b81013437
2 changed files with 11 additions and 2 deletions
|
@ -20,7 +20,11 @@
|
|||
<% end %>
|
||||
</p>
|
||||
|
||||
<%= render :partial => 'trace_paging_nav' %>
|
||||
<% if @traces.size > 1 %>
|
||||
<%= render :partial => 'trace_paging_nav' %>
|
||||
<% else %>
|
||||
<%= t('trace.list.empty') %> <%= link_to t('trace.list.upload_new'), :controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil %> <%= raw t('trace.list.learn_more') %>
|
||||
<% end %>
|
||||
|
||||
<table id="trace_list" cellpadding="3">
|
||||
<tr>
|
||||
|
@ -30,6 +34,8 @@
|
|||
<%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
|
||||
</table>
|
||||
|
||||
<%= render :partial => 'trace_paging_nav' %>
|
||||
<% if @traces.size > 1 %>
|
||||
<%= render :partial => 'trace_paging_nav' %>
|
||||
<% end %>
|
||||
|
||||
<%= render :partial => 'trace_optionals' %>
|
||||
|
|
|
@ -1511,6 +1511,9 @@ en:
|
|||
your_traces: "Your GPS traces"
|
||||
public_traces_from: "Public GPS traces from %{user}"
|
||||
tagged_with: " tagged with %{tags}"
|
||||
empty: "Nothing here yet."
|
||||
upload_new: "Upload a new trace"
|
||||
learn_more: "Or learn more about GPS tracing on the <a href='http://wiki.openstreetmap.org/wiki/Beginners_Guide_1.2'>wiki page</a>."
|
||||
delete:
|
||||
scheduled_for_deletion: "Trace scheduled for deletion"
|
||||
make_public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue