Handle missing country detail in channel about page

This commit is contained in:
syeopite 2021-04-16 03:08:13 -07:00
parent 01e04340cd
commit 62f487d3c3
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -8,14 +8,19 @@
<%= rendered "components/channel-information" %> <%= rendered "components/channel-information" %>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-3-4"> <% stats_style_append = ""%>
<div class="h-box"> <% if !channel.country.empty? %>
<h3> <%= translate(locale, "Details") %> </h3> <div class="pure-u-3-4">
<p>Country: <%=channel.country%></p> <!-- Translate Country Names --> <div class="h-box">
<h3> <%= translate(locale, "Details") %> </h3>
<p>Country: <%=channel.country%></p> <!-- Translate Country Names -->
</div>
</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"> <div class="h-box">
<h3> <%= translate(locale, "Stats") %> </h3> <h3> <%= translate(locale, "Stats") %> </h3>
<p> <%= translate(locale, "Joined") %> <p> <%= translate(locale, "Joined") %>