refactor solution for #3804

This commit is contained in:
Albert Yi
2018-08-07 13:31:45 -07:00
parent d053e135ab
commit b56681a609
5 changed files with 25 additions and 16 deletions

View File

@@ -67,7 +67,7 @@
<br><%= time_ago_in_words_tagged upload.created_at %>
</td>
<td class="col-normal">
<%= upload.presenter.status(self) %>
<%= render_status(upload) %>
</td>
</tr>
<% end %>

View File

@@ -28,7 +28,7 @@
<% elsif @upload.is_duplicate? %>
<p>This upload is a duplicate: <%= link_to "post ##{@upload.duplicate_post_id}", post_path(@upload.duplicate_post_id) %></p>
<% else %>
<p>An error occurred: <%= @upload.presenter.status(self) %></p>
<p>An error occurred: <%= render_status(@upload) %></p>
<% if CurrentUser.user.is_builder? %>
<ul>
<% @upload.backtrace.to_s.split(/\n/).each do |line| %>