summaryrefslogtreecommitdiffstats
path: root/app/views
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
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')
-rw-r--r--app/views/admin/projects.html.erb6
-rw-r--r--app/views/users/index.html.erb4
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/admin/projects.html.erb b/app/views/admin/projects.html.erb
index 91d1cc785..d9c32280d 100644
--- a/app/views/admin/projects.html.erb
+++ b/app/views/admin/projects.html.erb
@@ -16,6 +16,7 @@
<% end %>
&nbsp;
+<% if @projects.any? %>
<div class="autoscroll">
<table class="list">
<thead><tr>
@@ -41,4 +42,7 @@
</tbody>
</table>
</div>
-<span class="pagination"><%= pagination_links_full @project_pages, @project_count %></span> \ No newline at end of file
+<span class="pagination"><%= pagination_links_full @project_pages, @project_count %></span>
+<% else %>
+<p class="nodata"><%= l(:label_no_data) %></p>
+<% end %>
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)) -%>