<% end %>
</p>
-<% if @traces.size > 1 %>
+<% if @traces.size > 0 %>
<%= 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>
- <th></th>
- <th></th>
- </tr>
- <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
-</table>
+ <table id="trace_list" cellpadding="3">
+ <tr>
+ <th></th>
+ <th></th>
+ </tr>
+ <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
+ </table>
-<% if @traces.size > 1 %>
<%= render :partial => 'trace_paging_nav' %>
+<% else %>
+ <%= t 'trace.list.empty_html', :upload_link => link_to(t('trace.list.upload_new'), trace_create_path) %>
<% end %>
<%= render :partial => 'trace_optionals' %>