diff options
| author | RadoslavL <63926126+RadoslavL@users.noreply.github.com> | 2023-09-27 14:22:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-27 14:22:51 +0300 |
| commit | 04ba7b0d58d4a7cb996bef0fbc16496502b3300f (patch) | |
| tree | 64da60a7a619ece7254050484d8ee468a8b69cbf /src | |
| parent | 4788a3b4a9725e71a832996d84bd5604bfbf4492 (diff) | |
| download | invidious-04ba7b0d58d4a7cb996bef0fbc16496502b3300f.tar.gz invidious-04ba7b0d58d4a7cb996bef0fbc16496502b3300f.tar.bz2 invidious-04ba7b0d58d4a7cb996bef0fbc16496502b3300f.zip | |
Fix more issues related to tabs
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/frontend/pagination.cr | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/invidious/frontend/pagination.cr b/src/invidious/frontend/pagination.cr index 40a9a62e..de77bd87 100644 --- a/src/invidious/frontend/pagination.cr +++ b/src/invidious/frontend/pagination.cr @@ -6,19 +6,19 @@ module Invidious::Frontend::Pagination private def first_page(str : String::Builder, locale : String?, url : String) str << %(<a href=") << url << %(" class="pure-button pure-button-secondary">) - if locale_is_rtl?(locale) - # Inverted arrow ("first" points to the right) + if locale_is_rtl?(locale) + # Inverted arrow ("first" points to the right) str << translate(locale, "First page") str << " " str << %(<i class="icon ion-ios-arrow-forward"></i>) else - # Regular arrow ("first" points to the left) - str << %(<i class="icon ion-ios-arrow-back"></i>) + # Regular arrow ("first" points to the left) + str << %(<i class="icon ion-ios-arrow-back"></i>) str << " " str << translate(locale, "First page") - end + end - str << "</a>" + str << "</a>" end private def previous_page(str : String::Builder, locale : String?, url : String) @@ -97,11 +97,11 @@ module Invidious::Frontend::Pagination str << %(<div class="page-prev-container flex-left">) - if !first_page.nil? - self.first_page(str, locale, base_url.to_s) - end + if !first_page.nil? + self.first_page(str, locale, base_url.to_s) + end - str << %(</div>\n) + str << %(</div>\n) str << %(<div class="page-next-container flex-right">) |
