]> source.dussan.org Git - redmine.git/commitdiff
Don't show an empty table.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Oct 2016 09:53:05 +0000 (09:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Oct 2016 09:53:05 +0000 (09:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15896 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/admin/projects.html.erb
app/views/users/index.html.erb

index 91d1cc7851ba586d21788903a9553816030c7e4c..d9c32280df86fb82c6ba33a11532875db6224708 100644 (file)
@@ -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 %>
index 165f26d4689f27623d86ba9ded7e577642796b10..60e42c603a1985113e02ad04bd267c1bccce0312 100644 (file)
@@ -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)) -%>