From fe22edeccef4ba8b4b0c78448bbfc292a947a35e Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 20 Jan 2013 18:01:35 +0100 Subject: If no roles data is available, don't try to create chart. --- web/views/relation.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/views') 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 @@

<%= t.pages.relation.graph.title %>

+<% if @count_relation_roles > 0 %>
+<% else %> +

<%= t.pages.relation.roles.no_roles_info %>

+<% end %>

<%= t.pages.relation.wiki_pages.title %>

-- cgit v1.2.3