Commit Graph

25 Commits

Author SHA1 Message Date
Samantaz Fox
e10f6b6626 Comments: Move 'template_youtube' function to own file + module 2023-05-25 22:53:53 +02:00
Samantaz Fox
b6a4de66a5 frontend: Unify the various channel pages 2022-12-22 16:13:34 +01:00
Samantaz Fox
6c9754e663 frontend: Add support for shorts and livestreams 2022-12-22 16:13:34 +01:00
Samantaz Fox
f5fb4c6c64 Apply 2859.diff 2022-05-01 21:10:43 +02:00
Émilien Devos
595c3fb833 Revert "Youtube verification badge" (#3070) 2022-04-30 23:42:38 +02:00
Jonas Wunderlich
ec3e67e0d2 Wait that was too much replacing 2022-03-26 20:18:24 +01:00
Jonas Wunderlich
611e7e9dd8 Changed icon to checkmark and for verified author to checkmark-circle 2022-03-26 20:13:33 +01:00
Jonas Wunderlich
aa09bbe23d Done some refactoring 2022-03-13 20:16:30 +01:00
jonas-w
f8b29674b2 Gave them marks some space and added nil checks 2022-02-07 02:25:34 +01:00
jonas-w
c584e31657 Inlined the if statement 2022-02-03 22:14:00 +01:00
jonas-w
66340281e6 Added verification badge for channel view 2022-02-03 21:42:28 +01:00
syeopite
437bdedb07 Use env.request.resource for instance switch link 2021-10-26 16:12:25 -07:00
syeopite
66e7285108 Only use /redirect when automatically redirecting 2021-10-26 16:12:16 -07:00
Samantaz Fox
56ebef4352 Multiple front-end fixes (#2247)
Fixes:
* Sanitize user-provided content in HTML (Fixes #2193)
* Fix encoding of search query in prev/next pages (Fixes #2229)
* Fix some issues introduced with #2196:
   - Fix alignment of all <h3> elements (Move the inline style from the parent to the <h3> element)
   - Add missing comma on 'dir' HTML attribute (Typo introduced by PR #2196)

Code cleaning:
* Remove unnecessary 'each_sclice' + 'each' double loop in ECR files
* Clean the player's <source> list generation code (in player.ecr)
2021-07-15 23:01:36 +02:00
Mostafa Ahangarha
1b1932f787 fix feed alignment on community view 2021-06-24 17:40:02 +04:30
Samantaz Fox
9e4fd193c6 Limit descriptions width to ease mixed LTR/RTL text reading
This will prevent, on large pages, the LTR and RTL text to be
far away, on each side of the page. This could happen on channel
and playlists descriptions, when the page is displayed on a large
screen.
2021-06-24 17:35:44 +04:30
syeopite
d793d4ba78 Add switch invidious instance btn to all chan tabs 2021-06-19 04:17:49 -07:00
saltycrys
5f03a583d1 Update code for Crystal 0.36.0
Rename `HTTPClient@socket` to `HTTPClient@io`, see
https://github.com/crystal-lang/crystal/pull/9543.

Rename `URI#full_path` to `URI#request_target`, see
https://github.com/crystal-lang/crystal/pull/10099.
2021-02-02 20:01:02 +01:00
Omar Roth
3b2e142542 Fix JSON serialization 2020-03-29 18:04:44 -04:00
leonklingele
70cbe91776 Migrate to a good Content Security Policy (#1023)
So attacks such as XSS (see [0]) will no longer be of an issue.

[0]: https://github.com/omarroth/invidious/issues/1022
2020-03-15 16:46:08 -05:00
Omar Roth
b1fc80b79a Update sub_count extractor 2019-09-12 21:09:23 -04:00
Omar Roth
4c9975a7d9 Use accurate sub count when available 2019-08-21 18:35:54 -05:00
Omar Roth
4f120e19fd Fix overflow for channel description 2019-08-04 09:46:26 -05:00
Omar Roth
f71d5c429d Add description to channel pages 2019-07-31 19:29:16 -05:00
Omar Roth
bcd239ac2b Add community page 2019-07-09 09:31:04 -05:00