diff options
| author | Douwe Maan <me@douwe.me> | 2015-08-19 08:53:08 -0700 |
|---|---|---|
| committer | Douwe Maan <me@douwe.me> | 2015-08-19 08:53:08 -0700 |
| commit | 4df4097e32dc17f4330de9246362ee9df9155345 (patch) | |
| tree | a61bf43fa37efadc97bdca8c434909f81f733c2f /app/views | |
| parent | 3659d3b5c6eb645756b3df79a22471f8695f133b (diff) | |
| parent | 07190227395674715522f7a6aef30d4235b5d55c (diff) | |
| download | gitlab-ce-4df4097e32dc17f4330de9246362ee9df9155345.tar.gz | |
Merge pull request #9551 from Telekom-PD/feature/search-for-archived-projects
Feature/search for archived projects
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/admin/projects/index.html.haml | 6 | ||||
| -rw-r--r-- | app/views/groups/projects.html.haml | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml index f43d46356fa..d9b481404f7 100644 --- a/app/views/admin/projects/index.html.haml +++ b/app/views/admin/projects/index.html.haml @@ -23,6 +23,10 @@ = label_tag :abandoned do = check_box_tag :abandoned, 1, params[:abandoned] %span No activity over 6 month + .checkbox + = label_tag :with_archived do + = check_box_tag :with_archived, 1, params[:with_archived] + %span Show archived projects %fieldset %strong Visibility level: @@ -73,6 +77,8 @@ = visibility_level_icon(project.visibility_level) = link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project] .pull-right + - if project.archived + %span.label.label-warning archived %span.label.label-gray = repository_size(project) = link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm" diff --git a/app/views/groups/projects.html.haml b/app/views/groups/projects.html.haml index 6b7efa83dea..d06cfa7ff9f 100644 --- a/app/views/groups/projects.html.haml +++ b/app/views/groups/projects.html.haml @@ -12,11 +12,14 @@ - @projects.each do |project| %li .list-item-name - = visibility_level_icon(project.visibility_level) + %span{ class: visibility_level_color(project.visibility_level) } + = visibility_level_icon(project.visibility_level) %strong= link_to project.name_with_namespace, project + .pull-right + - if project.archived + %span.label.label-warning archived %span.label.label-gray = repository_size(project) - .pull-right = link_to 'Members', namespace_project_project_members_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm" = link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm" = link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-sm btn-remove" |
