diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-29 20:01:45 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-03-29 20:01:45 +0000 |
commit | fd167f22238fd71a45541b3b7ef450c4e0bb175c (patch) | |
tree | 9c62c76adcd3f300f917a36d79d06e9af791a1ce /app/views/admin | |
parent | 79275ca0a1df485bef73c12c3dc5ab2084185ca2 (diff) | |
download | gitlab-ce-fd167f22238fd71a45541b3b7ef450c4e0bb175c.tar.gz |
Fix admin projects page in admin area
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/projects/_projects.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/admin/projects/_projects.html.haml b/app/views/admin/projects/_projects.html.haml index c1a9f8d6ddd..596f367a00d 100644 --- a/app/views/admin/projects/_projects.html.haml +++ b/app/views/admin/projects/_projects.html.haml @@ -1,15 +1,16 @@ .js-projects-list-holder - if @projects.any? - %ul.projects-list.content-list + %ul.projects-list.content-list.admin-projects - @projects.each_with_index do |project| - %li.project-row + %li.project-row{ class: ('no-description' if project.description.blank?) } .controls - - if project.archived - %span.label.label-warning archived - %span.badge - = storage_counter(project.statistics.storage_size) = link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn" = link_to 'Delete', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-remove" + .stats + %span.badge + = storage_counter(project.statistics.storage_size) + - if project.archived + %span.label.label-warning archived .title = link_to [:admin, project.namespace.becomes(Namespace), project] do .dash-project-avatar @@ -20,7 +21,7 @@ - if project.namespace = project.namespace.human_name \/ - %span.project-name.filter-title + %span.project-name = project.name - if project.description.present? |