Fix minor issues

This commit is contained in:
Eugene Burmakin 2025-07-02 20:29:12 +02:00
parent d518603719
commit 98467bdbf2
3 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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">

View file

@ -64,7 +64,7 @@
&nbsp;
<%= 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>