From 0f8e01f9190115252ec6db40729c3c31626fcae3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 5 Aug 2018 18:03:38 -0500 Subject: [PATCH] Remove inline CSS from
--- src/invidious/views/error.ecr | 2 ++ src/invidious/views/subscription_manager.ecr | 2 +- src/invidious/views/subscriptions.ecr | 12 ++++++------ src/invidious/views/watch.ecr | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/invidious/views/error.ecr b/src/invidious/views/error.ecr index 65ec9513..d5ec9dca 100644 --- a/src/invidious/views/error.ecr +++ b/src/invidious/views/error.ecr @@ -2,4 +2,6 @@ <%= "Error" %> - Invidious <% end %> +
<%= error_message %> +
\ No newline at end of file diff --git a/src/invidious/views/subscription_manager.ecr b/src/invidious/views/subscription_manager.ecr index b18d62ac..b510c327 100644 --- a/src/invidious/views/subscription_manager.ecr +++ b/src/invidious/views/subscription_manager.ecr @@ -27,6 +27,6 @@ <% if subscriptions[-1].author != channel.author %> -
+
<% end %> <% end %> \ No newline at end of file diff --git a/src/invidious/views/subscriptions.ecr b/src/invidious/views/subscriptions.ecr index cfae54c7..b668b7f5 100644 --- a/src/invidious/views/subscriptions.ecr +++ b/src/invidious/views/subscriptions.ecr @@ -15,18 +15,18 @@ -<% if !notifications.empty? %> +
+<% if notifications.empty? %> +
<%= notifications.size %> unseen notifications
+<% else %> <% notifications.each_slice(4) do |slice| %> -
<% slice.each do |video| %> <%= rendered "components/video" %> <% end %> -
<% end %> -<% else %> -
<%= notifications.size %> unseen notifications
<% end %> -
+
+
<% videos.each_slice(4) do |slice| %>
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 89726ebe..963f1733 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -259,7 +259,7 @@ function get_reddit_comments() {
{content_html}
-
`.supplant({ +
`.supplant({ title: xhr.response.title, permalink: xhr.response.permalink, content_html: xhr.response.content_html @@ -293,7 +293,7 @@ function get_youtube_comments() {
{content_html}
-
`.supplant({ +
`.supplant({ content_html: xhr.response.content_html }); } else { @@ -396,7 +396,7 @@ get_youtube_comments();
<%= video.description %>
-
+