aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-20 18:01:35 +0100
committerJochen Topf <jochen@topf.org>2013-01-20 18:01:35 +0100
commitfe22edeccef4ba8b4b0c78448bbfc292a947a35e (patch)
tree4ebd00fd8536fa9e3d7ce26b66bf634682d1dcaf /web/views
parent29bf3235f82be1f33f349fdf2f491120fea4a533 (diff)
downloadtaginfo-fe22edeccef4ba8b4b0c78448bbfc292a947a35e.tar
taginfo-fe22edeccef4ba8b4b0c78448bbfc292a947a35e.tar.gz
If no roles data is available, don't try to create chart.
Diffstat (limited to 'web/views')
-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 0ed3dd9..089100c 100644
--- a/web/views/relation.erb
+++ b/web/views/relation.erb
@@ -39,8 +39,12 @@
</div>
<div id="graph">
<h2><%= t.pages.relation.graph.title %></h2>
+<% if @count_relation_roles > 0 %>
<div class="canvas">
</div>
+<% else %>
+ <p class="empty"><%= t.pages.relation.roles.no_roles_info %></p>
+<% end %>
</div>
<div id="wiki">
<h2><%= t.pages.relation.wiki_pages.title %></h2>