summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-10 19:42:17 +0200
committerArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-19 13:47:03 +0200
commit10d2281d73536d6c38cd5613630433b1ecfc5632 (patch)
tree713fe014b703544f667949287b9f88af15b1e9a6 /app/views
parent3ebbed25f0538f170fdf64a3ca34bc1d34b4836b (diff)
downloadgitlab-ce-10d2281d73536d6c38cd5613630433b1ecfc5632.tar.gz
Show label on archived projects
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/projects/index.html.haml2
-rw-r--r--app/views/groups/projects.html.haml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml
index e8aefbda25b..d9b481404f7 100644
--- a/app/views/admin/projects/index.html.haml
+++ b/app/views/admin/projects/index.html.haml
@@ -77,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..bf44e75e7c1 100644
--- a/app/views/groups/projects.html.haml
+++ b/app/views/groups/projects.html.haml
@@ -14,9 +14,11 @@
.list-item-name
= 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"