Add message for when channel has no posts

This commit is contained in:
ChunkyProgrammer 2024-02-15 19:50:59 -05:00
parent 1b6dbaa3eb
commit 902b2f13ff
2 changed files with 6 additions and 1 deletions

View File

@ -496,5 +496,6 @@
"toggle_theme": "Toggle Theme",
"carousel_slide": "Slide {{current}} of {{total}}",
"carousel_skip": "Skip the Carousel",
"carousel_go_to": "Go to slide `x`"
"carousel_go_to": "Go to slide `x`",
"channel_has_no_posts": "This channel hasn't posted yet"
}

View File

@ -25,6 +25,10 @@
<div class="h-box">
<p><%= error_message %></p>
</div>
<% elsif items.not_nil!["comments"].as_a.empty? %>
<div class="h-box">
<%= translate(locale, "channel_has_no_posts") %>
</div>
<% else %>
<div class="h-box pure-g comments" id="comments">
<%= IV::Frontend::Comments.template_youtube(items.not_nil!, locale, thin_mode) %>