summaryrefslogtreecommitdiffstats
path: root/app/views/users/index.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-09 09:53:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-09 09:53:05 +0000
commit6aff505b902cec83038ce95ca41042cb5d2e22e0 (patch)
treef857928cd8fb2873bc6dec0735bfcfd8419463e1 /app/views/users/index.html.erb
parent5e447c7555c81f5383fa79f6e7c0f4cbd6014f32 (diff)
downloadredmine-6aff505b902cec83038ce95ca41042cb5d2e22e0.tar.gz
redmine-6aff505b902cec83038ce95ca41042cb5d2e22e0.zip
Don't show an empty table.
git-svn-id: http://svn.redmine.org/redmine/trunk@15896 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 165f26d46..60e42c603 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -22,6 +22,7 @@
<% end %>
&nbsp;
+<% if @users.any? %>
<div class="autoscroll">
<table class="list users">
<thead><tr>
@@ -54,5 +55,8 @@
</table>
</div>
<span class="pagination"><%= pagination_links_full @user_pages, @user_count %></span>
+<% else %>
+<p class="nodata"><%= l(:label_no_data) %></p>
+<% end %>
<% html_title(l(:label_user_plural)) -%>