From 29fd3d13b62418b7f3fb4dd04acf5e2b57170a52 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 16 Apr 2021 03:08:13 -0700 Subject: [PATCH] Handle missing country detail in channel about page (cherry picked from commit 5b31daae2f3280dfb1fd0efaf422641f2d15f915) --- src/invidious/views/channel_about.ecr | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/invidious/views/channel_about.ecr b/src/invidious/views/channel_about.ecr index 8e34f77c..91824ec7 100644 --- a/src/invidious/views/channel_about.ecr +++ b/src/invidious/views/channel_about.ecr @@ -8,14 +8,19 @@ <%= rendered "components/channel-information" %>
-
-
-

<%= translate(locale, "channel_about_page_details_section_header") %>

-

Country: <%=channel.country%>

+ <% stats_style_append = ""%> + <% if !channel.country.empty? %> +
+
+

<%= translate(locale, "channel_about_page_details_section_header") %>

+

Country: <%=channel.country%>

+
-
+ <% else %> + <% stats_style_append = "style=\"order: 1;\"" %> + <% end %> -
+
>

<%= translate(locale, "channel_about_page_stats_section_header") %>

<%= translate(locale, "channel_about_page_stats_joined_label") %>