Compare commits

...

14 Commits

Author SHA1 Message Date
discollizard
08458905e0
Merge 3f64e3f439 into 4782a67038 2024-08-30 17:20:23 -05:00
Samantaz Fox
4782a67038
Release v2.20240825.2 2024-08-26 22:52:50 +02:00
Samantaz Fox
5baaedfa39
CI: Fix docker container tags (#4883)
Closes issue 4880
2024-08-26 22:48:14 +02:00
Samantaz Fox
4f066e880c
CI: Fix docker container tags 2024-08-26 21:55:43 +02:00
discollizard
3f64e3f439 badge now supports browser auto theming 2024-07-19 23:30:29 -04:00
discollizard
34a2a92090 video lengths on badge are now translatable 2024-07-19 23:29:56 -04:00
discollizard
e89f739e02
Merge branch 'iv-org:master' into video-length-on-page 2024-07-19 21:24:07 -04:00
discollizard
a8a3d73c84 make format ran + badge works on dark mode 2024-07-04 19:30:17 -03:00
discollizard
94bf5c0852
Merge branch 'iv-org:master' into video-length-on-page 2024-07-04 19:14:15 -03:00
discollizard
2cb63b3233 space added between badge and texts 2023-11-30 19:59:36 -03:00
discollizard
2bdd20906c abbreviated length logic abstracted into a helper function 2023-11-24 08:11:22 -03:00
discollizard
a6df381c16 reordered duration badge to be before audio mode toggle 2023-11-20 16:55:29 -03:00
discollizard
a9bc4fd978
replace time calculations with the stdlib's native functions
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2023-11-20 19:49:35 +00:00
discollizard
a06166a014 minute badge added to watch page 2023-11-19 21:35:21 -03:00
6 changed files with 570 additions and 501 deletions

View File

@ -47,9 +47,11 @@ jobs:
uses: docker/metadata-action@v5
with:
images: quay.io/invidious/invidious
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=latest
labels: |
quay.expires-after=12w
@ -71,10 +73,11 @@ jobs:
with:
images: quay.io/invidious/invidious
flavor: |
latest=false
suffix=-arm64
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=latest
labels: |
quay.expires-after=12w

View File

@ -1,5 +1,18 @@
# CHANGELOG
## v2.20240825.2 (2024-08-26)
This releases fixes the container tags pushed on quay.io.
Previously, the ARM64 build was released under the `latest` tag, instead of `latest-arm64`.
### Full list of pull requests merged since the last release (newest first)
CI: Fix docker container tags ([#4883], by @SamantazFox)
[#4877]: https://github.com/iv-org/invidious/pull/4877
## v2.20240825.1 (2024-08-25)
Add patch component to be [semver] compliant and make github actions happy.
@ -8,8 +21,9 @@ Add patch component to be [semver] compliant and make github actions happy.
### Full list of pull requests merged since the last release (newest first)
Allow manual trigger of release-container build (#4877, thanks @syeopite)
Allow manual trigger of release-container build ([#4877], thanks @syeopite)
[#4877]: https://github.com/iv-org/invidious/pull/4877
## v2.20240825.0 (2024-08-25)

View File

@ -9,6 +9,36 @@ body {
Arial, sans-serif;
}
.length-watch-page{
position: relative;
background-color: rgba(35, 35, 35, 0.75);
color: #fff;
border-radius: 2px;
padding: 4px;
font-size: 20px;
right: 0.25em;
bottom: 0.25em;
margin-left: 10px;
margin-right: 10px;
}
.dark-theme .length-watch-page{
background-color: #fff;
color: rgba(35, 35, 35, 1);
}
@media (prefers-color-scheme: dark) {
.length-watch-page{
background-color: #fff;
color: rgba(35, 35, 35, 1);
}
.light-theme .length-watch-page {
background-color: rgba(35, 35, 35, 0.75);
color: #fff;
}
}
#contents {
display: flex;
flex-direction: column;

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,21 @@ def ci_lower_bound(pos, n)
return (phat + z*z/(2*n) - z * Math.sqrt((phat*(1 - phat) + z*z/(4*n))/n))/(1 + z*z/n)
end
def video_length_abbreviated(locale, length)
length_abbreviated = ""
if length.days > 0
length_abbreviated = "#{translate_count(locale, "generic_count_days_short", length.days)} #{translate_count(locale, "generic_count_hours_short", length.hours)} #{translate_count(locale, "generic_count_minutes_short", length.minutes)}"
elsif length.hours > 0
length_abbreviated = "#{translate_count(locale, "generic_count_hours_short", length.hours)} #{translate_count(locale, "generic_count_minutes_short", length.minutes)}"
elsif length.minutes > 0
length_abbreviated = translate_count(locale, "generic_count_minutes_short", length.minutes)
else
length_abbreviated = translate_count(locale, "generic_count_seconds", length.seconds)
end
return length_abbreviated
end
def elapsed_text(elapsed)
millis = elapsed.total_milliseconds
return "#{millis.round(2)}ms" if millis >= 1

View File

@ -77,6 +77,9 @@ we're going to need to do it here in order to allow for translations.
<div class="h-box">
<h1>
<%= title %>
<span class="length-watch-page">
<%= video_length_abbreviated(locale, video.length_seconds.seconds)%>
</span>
<% if params.listen %>
<a title="<%=translate(locale, "Video mode")%>" href="/watch?<%= env.params.query %>&listen=0">
<i class="icon ion-ios-videocam"></i>
@ -88,6 +91,7 @@ we're going to need to do it here in order to allow for translations.
<% end %>
</h1>
<% if !video.is_listed %>
<h3>
<i class="icon ion-ios-unlock"></i> <%= translate(locale, "Unlisted") %>