download event log

This commit is contained in:
Pete Matsyburka committed 2026-10-08 10:04:12 +03:00
1 parent 58e24ef758
commit 7464f9cfad
2 files changed
+12 -1

No files matched your search

+5 -1
View File
@@ -54,7 +54,8 @@
<% if @submission.submitters.to_a.any?(&:completed_at?) %>
<% show_combined_download = @submission.completed_at? && !is_combined_enabled %>
<% show_unarchive = signed_in? && can?(:destroy, @submission) && @submission.archived_at? && @submission.completed_at? %>
<% show_download_dropdown = show_combined_download || show_unarchive %>
<% show_event_log_download = signed_in? && can?(:manage, :event_log_download) && can?(:read, @submission) %>
<% show_download_dropdown = show_combined_download || show_event_log_download || show_unarchive %>
<% if @submission.completed_at? || !is_combined_enabled %>
<div class="join relative">
<native-action data-label="<%= t('download') %>" data-icon="download">
@@ -95,6 +96,9 @@
</li>
</native-action>
<% end %>
<% if show_event_log_download %>
<%= render 'submissions/download_event_log' %>
<% end %>
<% if show_unarchive %>
<native-action data-label="<%= t('unarchive') %>" data-icon="rotate" data-section="archive">
<li>