mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Handle missing country detail in channel about page
This commit is contained in:
parent
01e04340cd
commit
62f487d3c3
1 changed files with 11 additions and 6 deletions
|
@ -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, "Details") %> </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, "Details") %> </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, "Stats") %> </h3>
|
||||
<p> <%= translate(locale, "Joined") %>
|
||||
|
|
Loading…
Reference in a new issue