mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-02 11:41:08 +05:30
Fix more issues related to tabs
This commit is contained in:
parent
4788a3b4a9
commit
04ba7b0d58
@ -6,19 +6,19 @@ module Invidious::Frontend::Pagination
|
|||||||
private def first_page(str : String::Builder, locale : String?, url : String)
|
private def first_page(str : String::Builder, locale : String?, url : String)
|
||||||
str << %(<a href=") << url << %(" class="pure-button pure-button-secondary">)
|
str << %(<a href=") << url << %(" class="pure-button pure-button-secondary">)
|
||||||
|
|
||||||
if locale_is_rtl?(locale)
|
if locale_is_rtl?(locale)
|
||||||
# Inverted arrow ("first" points to the right)
|
# Inverted arrow ("first" points to the right)
|
||||||
str << translate(locale, "First page")
|
str << translate(locale, "First page")
|
||||||
str << " "
|
str << " "
|
||||||
str << %(<i class="icon ion-ios-arrow-forward"></i>)
|
str << %(<i class="icon ion-ios-arrow-forward"></i>)
|
||||||
else
|
else
|
||||||
# Regular arrow ("first" points to the left)
|
# Regular arrow ("first" points to the left)
|
||||||
str << %(<i class="icon ion-ios-arrow-back"></i>)
|
str << %(<i class="icon ion-ios-arrow-back"></i>)
|
||||||
str << " "
|
str << " "
|
||||||
str << translate(locale, "First page")
|
str << translate(locale, "First page")
|
||||||
end
|
end
|
||||||
|
|
||||||
str << "</a>"
|
str << "</a>"
|
||||||
end
|
end
|
||||||
|
|
||||||
private def previous_page(str : String::Builder, locale : String?, url : String)
|
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">)
|
str << %(<div class="page-prev-container flex-left">)
|
||||||
|
|
||||||
if !first_page.nil?
|
if !first_page.nil?
|
||||||
self.first_page(str, locale, base_url.to_s)
|
self.first_page(str, locale, base_url.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
str << %(</div>\n)
|
str << %(</div>\n)
|
||||||
|
|
||||||
str << %(<div class="page-next-container flex-right">)
|
str << %(<div class="page-next-container flex-right">)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user