summaryrefslogtreecommitdiff
path: root/web/views/relation.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-14 21:37:57 +0100
committerJochen Topf <jochen@topf.org>2013-01-14 21:37:57 +0100
commite1030956905cae34c281281347555ad3eebae5ab (patch)
tree27d6ed18fc1be0da9044c9f9b949d5c4b64ea8cb /web/views/relation.erb
parent9f39838e8ad5b6b1dda21013152055f8a008acc9 (diff)
downloadtaginfo-e1030956905cae34c281281347555ad3eebae5ab.tar
taginfo-e1030956905cae34c281281347555ad3eebae5ab.tar.gz
Show "no info" message when we don't have infos about roles.
Diffstat (limited to 'web/views/relation.erb')
-rw-r--r--web/views/relation.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/views/relation.erb b/web/views/relation.erb
index e2e60bc..19dcc9f 100644
--- a/web/views/relation.erb
+++ b/web/views/relation.erb
@@ -12,8 +12,12 @@
</div>
<div id="roles">
<h2><%= t.pages.relation.roles.title %></h2>
+<% if @count_relation_roles > 0 %>
<table id="grid-roles">
</table>
+<% else %>
+ <p class="empty"><%= t.pages.relation.roles.no_roles_info %></p>
+<% end %>
</div>
</div>
<% javascript do