mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Fix minor issues
This commit is contained in:
parent
d518603719
commit
98467bdbf2
3 changed files with 3 additions and 4 deletions
|
|
@ -94,8 +94,7 @@ class Settings::UsersController < ApplicationController
|
|||
archive_file.content_type == 'application/x-zip-compressed' ||
|
||||
File.extname(archive_file.original_filename).downcase == '.zip'
|
||||
|
||||
redirect_to edit_user_registration_path, alert: 'Please upload a valid ZIP file.'
|
||||
return
|
||||
redirect_to edit_user_registration_path, alert: 'Please upload a valid ZIP file.' and return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<% @exports.each do |export| %>
|
||||
<tr>
|
||||
<td><%= export.name %></td>
|
||||
<td><%= number_to_human_size(export.file.byte_size) || 'N/A' %></td>
|
||||
<td><%= number_to_human_size(export.file&.byte_size) || 'N/A' %></td>
|
||||
<td><%= human_datetime(export.created_at) %></td>
|
||||
<td><%= export.status %></td>
|
||||
<td class="whitespace-nowrap">
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
<%= link_to '📋', points_path(import_id: import.id) %>
|
||||
</td>
|
||||
<td><%= number_to_human_size(import.file.byte_size) || 'N/A' %></td>
|
||||
<td><%= number_to_human_size(import.file&.byte_size) || 'N/A' %></td>
|
||||
<td data-points-count>
|
||||
<%= number_with_delimiter import.processed %>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue