diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-14 21:37:57 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-14 21:37:57 +0100 |
commit | e1030956905cae34c281281347555ad3eebae5ab (patch) | |
tree | 27d6ed18fc1be0da9044c9f9b949d5c4b64ea8cb /web/views | |
parent | 9f39838e8ad5b6b1dda21013152055f8a008acc9 (diff) | |
download | taginfo-e1030956905cae34c281281347555ad3eebae5ab.tar taginfo-e1030956905cae34c281281347555ad3eebae5ab.tar.gz |
Show "no info" message when we don't have infos about roles.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/relation.erb | 4 |
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 |