Skip to content

Commit

Permalink
Provide "Download logfile" URL depending on ...
Browse files Browse the repository at this point in the history
... instance anonymous configuration
  • Loading branch information
eduardoj committed Aug 27, 2024
1 parent ee7c7d6 commit 848c28f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
%i.far.fa-pause-circle
Stop refresh

- if User.session
= link_to(raw_logfile_path(package: package_name, project: project, arch: arch, repository: repo),
- if ::Configuration.anonymous
= link_to(public_build_path(package: package_name, project: project, arch: arch, repository: repo, filename: '_log'),
target: :_blank,
rel: 'noopener',
class: 'live-link-action btn-secondary') do
%i.fas.fa-download
Download logfile
- else
= link_to(public_build_path(package: package_name, project: project, arch: arch, repository: repo, filename: '_log'),
= link_to(raw_logfile_path(package: package_name, project: project, arch: arch, repository: repo),
target: :_blank,
rel: 'noopener',
class: 'live-link-action btn-secondary') do
Expand Down

0 comments on commit 848c28f

Please sign in to comment.