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' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue