summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-23 01:11:38 +0100
committerAlex Legler <alex@a3li.li>2015-02-23 01:11:38 +0100
commit43d37380314a9066b1e20255bf152b8d0ca6fc5b (patch)
tree4350027d7f0384256bc82e07cc5b16a8999df496 /views
parentMove full archives list to a separate page (diff)
downloadfrontend-43d37380314a9066b1e20255bf152b8d0ca6fc5b.tar.gz
frontend-43d37380314a9066b1e20255bf152b8d0ca6fc5b.tar.bz2
frontend-43d37380314a9066b1e20255bf152b8d0ca6fc5b.zip
Redirect back to the main list page if there are no messages at all in a given month
Diffstat (limited to 'views')
-rw-r--r--views/listindex.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/listindex.erb b/views/listindex.erb
index ecf6ab7..30a0a17 100644
--- a/views/listindex.erb
+++ b/views/listindex.erb
@@ -1,5 +1,11 @@
<h1 class="first-header">Gentoo Archives: <%= list %></h1>
+<% if params[:no_messages] %>
+<div class="alert alert-warning">
+ There are no messages in the archive for the requested month.
+</div>
+<% end %>
+
<table class="table">
<tr>
<th>Month</th>