summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)) -%>