Commit Graph

24 Commits

Author SHA1 Message Date
syeopite
66e7285108 Only use /redirect when automatically redirecting 2021-10-26 16:12:16 -07:00
mastihios
0947c26612 Fix URL-encoding in href strings (#2460)
* hrefs: replace HTML.escape w/ URI.encode_www_form

* Fix search_query_encoded
2021-10-11 05:18:20 -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
Samantaz Fox
eecfc155b8 Right-align the RSS icon in channel playlists 2021-06-25 02:15:49 +02:00
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
Lukas
0f66ff50a4 Fix #1516 Document is empty 2020-12-07 13:10:00 +01:00
Omar Roth
f92027c44b Escape 'sort_by' 2020-03-10 11:25:32 -04: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
e736626953 Fix continuation for last page of playlists 2019-07-20 11:38:20 -05:00
Omar Roth
bcd239ac2b Add community page 2019-07-09 09:31:04 -05:00
Omar Roth
196ee1aa8b Add '/api/v1/channels/comments' 2019-07-02 18:53:19 -05:00
Omar Roth
48ad744ebf Add support for default channel banners 2019-06-30 12:59:38 -05:00
Omar Roth
556d5b0ca5 Resize channel thumbnails 2019-06-30 12:39:51 -05:00
Omar Roth
a58f5a925a Add banner to "/playlists" page 2019-06-28 21:00:28 -05:00
Omar Roth
0d0d3edeae Add thumbnail and banners to channel page 2019-06-28 20:48:24 -05:00
Omar Roth
0099a9822e Refactor subscribe_widget 2019-05-05 08:38:55 -05:00
Omar Roth
1a9360ca75 Minor formatting changes 2019-05-01 20:03:39 -05:00
Omar Roth
d20a4a8bfc Fix grid size for smaller devices 2019-04-14 17:04:52 -05:00
Omar Roth
2c9b148627 Add 'playlists' tab to channel page 2019-03-03 10:56:04 -06:00