-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add browser not supported message for google maps * Add hover effects to edit links and pagy buttons
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 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
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 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,10 +1,10 @@ | ||
nav class="flex gap-4 justify-center my-5" role="navigation" aria-label="pager" | ||
- pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] | ||
- if item.is_a?(Integer) # page link | ||
a class="px-3 py-1 text-sm font-extrabold leading-6 cursor-pointer rounded-6px text-gray-3 bg-gray-7" href="#{pagy_url_for(pagy, item)}" ==> item | ||
a class="px-3 py-1 text-sm font-extrabold leading-6 transition cursor-pointer rounded-6px text-gray-3 bg-gray-7 hover:bg-gray-4" href="#{pagy_url_for(pagy, item)}" ==> item | ||
|
||
- elsif item.is_a?(String) # current page | ||
span class="px-3 py-1 text-sm font-extrabold leading-6 text-white cursor-pointer rounded-6px bg-blue-dark" ==> item | ||
span class="px-3 py-1 text-sm font-extrabold leading-6 text-white transition cursor-pointer hover:bg-blue-medium rounded-6px bg-blue-dark" ==> item | ||
|
||
- elsif item == :gap # page gap | ||
span class="px-3 py-1 text-sm font-extrabold leading-6 rounded-6px text-gray-3 bg-gray-7" ==> pagy_t('pagy.nav.gap') |