From: Jean-Philippe Lang Date: Sun, 9 Oct 2016 09:53:05 +0000 (+0000) Subject: Don't show an empty table. X-Git-Tag: 3.4.0~653 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6aff505b902cec83038ce95ca41042cb5d2e22e0;p=redmine.git Don't show an empty table. git-svn-id: http://svn.redmine.org/redmine/trunk@15896 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 %>   +<% if @projects.any? %>
@@ -41,4 +42,7 @@
-<%= pagination_links_full @project_pages, @project_count %> \ No newline at end of file +<%= pagination_links_full @project_pages, @project_count %> +<% else %> +

<%= l(:label_no_data) %>

+<% 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 %>   +<% if @users.any? %>
@@ -54,5 +55,8 @@
<%= pagination_links_full @user_pages, @user_count %> +<% else %> +

<%= l(:label_no_data) %>

+<% end %> <% html_title(l(:label_user_plural)) -%>