<fieldset>
<div class='form-row'>
<label class='standard-label'><%= t'trace.edit.filename' %></label>
- <p class='deemphasize'><%= @trace.name %> (<%= link_to t('trace.edit.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>)</p>
+ <p class='deemphasize'><%= @trace.name %> (<%= link_to t('trace.edit.download'), trace_data_path(@trace) %>)</p>
</div>
<div class='form-row'>
<label class='standard-label'><%= t'trace.edit.uploaded_at' %></label>
<table border="0">
<tr>
<td><%= t'trace.view.filename' %></td>
- <td><%= @trace.name %> (<%= link_to t('trace.view.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>)</td>
+ <td><%= @trace.name %> (<%= link_to t('trace.view.download'), trace_data_path(@trace) %>)</td>
</tr>
<tr>
<td><%= t'trace.view.uploaded' %></td>
<% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
<div class="buttons">
<%= if_user(@trace.user) do %>
- <%= button_to t('trace.view.edit_track'), :controller => 'trace', :action => 'edit', :id => @trace.id %>
+ <%= button_to t('trace.view.edit_track'), trace_edit_path(@trace) %>
<% end %>
<%= button_to t('trace.view.delete_track'), :controller => 'trace', :action => 'delete', :id => @trace.id %>
</div>