-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
企業個別ユーザーページだけ特別扱いせず、大元のkaminariのページネーションを変更した - #7956 (comment) - https://github.com/fjordllc/bootcamp/pull/7956/files#r1757220135
- Loading branch information
Showing
9 changed files
with
8 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
- if users.present? | ||
.user-list | ||
= paginate users, theme: 'company_user', params: { controller: 'companies/users', action: 'index' } | ||
= paginate users, params: { controller: 'companies/users', action: 'index' } | ||
.row | ||
= render partial: 'users/user', collection: users | ||
= paginate users, theme: 'company_user', params: { controller: 'companies/users', action: 'index' } | ||
= paginate users, params: { controller: 'companies/users', action: 'index' } | ||
- else | ||
= render 'users/no_match_user' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
- # rubocop:disable Rails/OutputSafety | ||
li.pagination__item.is-first | ||
= link_to_unless current_page.first?, raw('<i class="fas fa-angle-double-left"></i>'), url, remote:, class: 'pagination__item-link is-first' | ||
- if current_page.first? | ||
span.pagination__item-link.is-first.is-disabled | ||
i.fas.fa-angle-double-left | ||
- else | ||
= link_to raw('<i class="fas fa-angle-double-left"></i>'), url, remote:, class: 'pagination__item-link is-first' | ||
- # rubocop:enable Rails/OutputSafety |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.