Skip to content

Commit

Permalink
Unify conditions on the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Jul 24, 2023
1 parent 81868ea commit d4864fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/api/app/views/webui/package/revisions.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
.col-auto
= page_entries_info @revisions, entry_name: 'revision'

- unless params['show_all']
- unless @revisions.total_pages == 1 || !User.session
.text-center.mt-4= link_to('Show all',
package_view_revisions_path(project: @project, package: @package, show_all: 1),
class: 'btn btn-sm btn-secondary')
- unless params['show_all'] || @revisions.total_pages == 1 || !User.session
.text-center.mt-4= link_to('Show all',
package_view_revisions_path(project: @project, package: @package, show_all: 1),
class: 'btn btn-sm btn-secondary')
- else
%p
%i No commits exists yet.

0 comments on commit d4864fe

Please sign in to comment.