From 62f487d3c3ee1d6e940e3e018a15b9d51c98553e 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 --- 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 8266eff0..72053de1 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, "Details") %>

-

Country: <%=channel.country%>

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

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

+

Country: <%=channel.country%>

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

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

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