diff --git a/app/assets/stylesheets/content/_table.sass b/app/assets/stylesheets/content/_table.sass index 99a6b1353b..e4aca168e2 100644 --- a/app/assets/stylesheets/content/_table.sass +++ b/app/assets/stylesheets/content/_table.sass @@ -155,6 +155,9 @@ table.generic-table text-decoration: none color: $body-font-color + &.buttons + text-align: right + p padding: 0 8px margin: 0 @@ -169,7 +172,7 @@ table.generic-table .generic-table--sort-header-outer position: absolute top: 0 - padding: 0 8px + padding: 0 6px line-height: $generic-table--header-height overflow: hidden z-index: 1 diff --git a/app/views/admin/projects.html.erb b/app/views/admin/projects.html.erb index 84097f995c..0572a126c3 100644 --- a/app/views/admin/projects.html.erb +++ b/app/views/admin/projects.html.erb @@ -81,44 +81,86 @@ See doc/COPYRIGHT.rdoc for more details. <% end %>   -
- - - - - - - - - - - - <% project_tree(@projects) do |project, level| %> - <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> - - - - - +
+
+
<%= Project.model_name.human %><%= Project.human_attribute_name(:is_public) %><%= l(:label_required_disk_storage) %><%= Project.human_attribute_name(:created_on) %>
<%= link_to project, settings_project_path(project), :title => project.short_description %><%= checked_image project.is_public? %><%= render partial: '/storage/required_storage', - locals: { storage: project.required_storage} %><%= format_date(project.created_on) %> - <%= link_to(l(:button_archive), - archive_project_path(project, :status => params[:status]), - :confirm => l(:text_are_you_sure), - :method => :put, - :class => 'icon icon-locked') if project.active? %> - <%= link_to(l(:button_unarchive), - unarchive_project_path(project, :status => params[:status]), - :method => :put, - :class => 'icon icon-unlocked') if !project.active? && (project.parent.nil? || project.parent.active?) %> - <%= link_to(l(:button_copy), - copy_from_project_path(project, :admin), - :class => 'icon icon-copy') %> - <%= link_to(l(:button_delete), - confirm_destroy_project_path(project), - :class => 'icon icon-delete') %> -
+ + + + + + + + + + + + + + - <% end %> - -
+
+
+ + <%= Project.model_name.human %> + +
+
+
+
+
+ + <%= Project.human_attribute_name(:is_public) %> + +
+
+
+
+
+ + <%= l(:label_required_disk_storage) %> + +
+
+
+
+
+ + <%= Project.human_attribute_name(:created_on) %> + +
+
+
+ + + <% project_tree(@projects) do |project, level| %> + "> + <%= link_to project, settings_project_path(project), :title => project.short_description %> + <%= checked_image project.is_public? %> + <%= render partial: '/storage/required_storage', + locals: { storage: project.required_storage} %> + <%= format_date(project.created_on) %> + + <%= link_to(l(:button_archive), + archive_project_path(project, :status => params[:status]), + :confirm => l(:text_are_you_sure), + :method => :put, + :class => 'icon icon-locked') if project.active? %> + <%= link_to(l(:button_unarchive), + unarchive_project_path(project, :status => params[:status]), + :method => :put, + :class => 'icon icon-unlocked') if !project.active? && (project.parent.nil? || project.parent.active?) %> + <%= link_to(l(:button_copy), + copy_from_project_path(project, :admin), + :class => 'icon icon-copy') %> + <%= link_to(l(:button_delete), + confirm_destroy_project_path(project), + :class => 'icon icon-delete') %> + + + <% end %> + + +
+
diff --git a/features/projects/archive.feature b/features/projects/archive.feature index 0d6a8a745c..e492d09da4 100644 --- a/features/projects/archive.feature +++ b/features/projects/archive.feature @@ -41,7 +41,7 @@ Feature: Navigating to reports page When I go to the projects admin page Then I should be on the projects admin page And I should see "Projects" - And I click on "Archive" within "tr.odd" + And I click on "Archive" within "tbody > tr:nth-of-type(1)" And I confirm popups Then I should be on the projects admin page And I should not see "ParentProject" @@ -52,7 +52,7 @@ Feature: Navigating to reports page Then I should see "403" When I go to the projects admin page When I select "all" from "status" - And I click on "Unarchive" within "tr.odd" + And I click on "Unarchive" within "tbody > tr:nth-of-type(1)" Then I should be on the projects admin page And I should see "ParentProject" When I go to the page of the project called "ParentProject"