summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 15:21:51 -0500
committerPhil Hughes <me@iamphill.com>2016-06-13 11:01:19 +0100
commitaea4041ce96f18afea70da15af3cbe1be4fa1f94 (patch)
tree7d2fe32a2e20ed9cd7f80bf07aefa5bcb37e7bb7 /app/views
parent7a1b2e4f94e3e651d3264aa566a9056fe0f554e9 (diff)
downloadgitlab-ce-aea4041ce96f18afea70da15af3cbe1be4fa1f94.tar.gz
Allow to expire build artifacts
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/builds/_sidebar.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml
index 5d931389dfb..d1a0da29ef7 100644
--- a/app/views/projects/builds/_sidebar.html.haml
+++ b/app/views/projects/builds/_sidebar.html.haml
@@ -44,6 +44,15 @@
%p.build-detail-row
%span.build-light-text Erased:
#{time_ago_with_tooltip(@build.erased_at)}
+ - elsif @build.artifacts_expired?
+ %p.build-detail-row.artifacts-expired.alert.alert-warning
+ The artifacts were removed #{time_ago_with_tooltip(@build.artifacts_expire_at)}
+ - elsif @build.artifacts_expire_at
+ %p.build-detail-row.artifacts-expired.alert.alert-info
+ The artifacts will be removed at #{time_ago_with_tooltip(@build.artifacts_expire_at)}
+ .pull-right
+ = link_to keep_artifacts_namespace_project_build_artifacts_path(@project.namespace, @project, @build), class: 'btn btn-sm btn-primary' do
+ Keep
%p.build-detail-row
%span.build-light-text Runner:
- if @build.runner && current_user && current_user.admin