Skip to content

Commit

Permalink
Merge pull request #14692 from ncounter/revisions-show-all
Browse files Browse the repository at this point in the history
Fix button visibility condition
  • Loading branch information
eduardoj committed Jul 24, 2023
2 parents 53abfe0 + 1adebcd commit d208d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/package/revisions.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%i Revision #{revision} not found
- unless params['show_all']
= paginate @revisions, views_prefix: 'webui'
- unless @revisions.total_pages == 1 && !User.session
- unless @revisions.total_pages == 1 || !User.session
.text-center= link_to('Show all',
package_view_revisions_path(project: @project, package: @package, show_all: 1),
class: 'btn btn-sm btn-secondary')
Expand Down

0 comments on commit d208d5f

Please sign in to comment.