summaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-18 07:24:04 +0200
committerJochen Topf <jochen@topf.org>2014-05-18 07:24:04 +0200
commitce772fe43ba7c67703368ab120d7fe5b64481ee7 (patch)
tree1c90321c2bd085d8515115f131b528a7b760f94e /web/views
parentf766377bc9ff5548536515dfad73045db8378a4a (diff)
downloadtaginfo-ce772fe43ba7c67703368ab120d7fe5b64481ee7.tar
taginfo-ce772fe43ba7c67703368ab120d7fe5b64481ee7.tar.gz
Add message to compare page when there are not keys/tags to compare.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/compare.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/views/compare.erb b/web/views/compare.erb
index aa81986..e972b3d 100644
--- a/web/views/compare.erb
+++ b/web/views/compare.erb
@@ -1,6 +1,9 @@
<div class="pre">
<h1 class="section"><%= h(t.taginfo.comparison) %></h1>
</div>
+<% if @data.size == 0 %>
+<p class="empty"><%= h(t.pages.compare.nothing_to_compare) %></p>
+<% else %>
<table class="comparison">
<tr>
<% @data.each_with_index do |data, num| %>
@@ -78,6 +81,7 @@
<% end %>
</tr>
</table>
+<% end %>
<% javascript do
JS.raw(<<"JAVASCRIPT")
function page_init2() {