mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 00:09:07 -04:00
Handle missing country detail in channel about page
(cherry picked from commit 5b31daae2f3280dfb1fd0efaf422641f2d15f915)
This commit is contained in:
parent
48c46f4d61
commit
29fd3d13b6
@ -8,14 +8,19 @@
|
||||
<%= rendered "components/channel-information" %>
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-3-4">
|
||||
<div class="h-box">
|
||||
<h3> <%= translate(locale, "channel_about_page_details_section_header") %> </h3>
|
||||
<p>Country: <%=channel.country%></p> <!-- Translate Country Names -->
|
||||
<% stats_style_append = ""%>
|
||||
<% if !channel.country.empty? %>
|
||||
<div class="pure-u-3-4">
|
||||
<div class="h-box">
|
||||
<h3> <%= translate(locale, "channel_about_page_details_section_header") %> </h3>
|
||||
<p>Country: <%=channel.country%></p> <!-- Translate Country Names -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<% stats_style_append = "style=\"order: 1;\"" %>
|
||||
<% end %>
|
||||
|
||||
<div class="pure-u-1-4">
|
||||
<div class="pure-u-1-4" <%= stats_style_append %>>
|
||||
<div class="h-box">
|
||||
<h3> <%= translate(locale, "channel_about_page_stats_section_header") %> </h3>
|
||||
<p> <%= translate(locale, "channel_about_page_stats_joined_label") %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user