diff options
Diffstat (limited to 'views/listmonth.erb')
-rw-r--r-- | views/listmonth.erb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/views/listmonth.erb b/views/listmonth.erb index b7ef11c..020c340 100644 --- a/views/listmonth.erb +++ b/views/listmonth.erb @@ -6,10 +6,16 @@ <%= partial :views, locals: { list: list, mode: mode } %> -<% if no_threads %> -<div class="alert alert-info"> - There were no threads that started this month, showing you all messages instead. +<% if results['hits']['total'] == 0 %> +<div class="alert alert-warning"> + There are no messages in the archive for the requested month. </div> +<% else %> + <% if no_threads %> + <div class="alert alert-info"> + There were no threads that started this month, showing you all messages instead. + </div> + <% end %> <% end %> <div class="table-responsive"> |