]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/list.html.erb
Return note comments as formatted HTML as well as text
[rails.git] / app / views / trace / list.html.erb
index 06c6fb9f1c194f3b692288bc3e8d19b07f756dcc..5a33defc8af659c4c818fb06ffaa08ba42ddf86c 100644 (file)
   <% 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 %>
+  <p><%= t 'trace.list.empty_html', :upload_link => trace_create_path %></p>
 <% end %>
 
 <%= render :partial => 'trace_optionals' %>