diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-18 15:21:51 -0500 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-13 11:01:19 +0100 |
commit | aea4041ce96f18afea70da15af3cbe1be4fa1f94 (patch) | |
tree | 7d2fe32a2e20ed9cd7f80bf07aefa5bcb37e7bb7 /app/views | |
parent | 7a1b2e4f94e3e651d3264aa566a9056fe0f554e9 (diff) | |
download | gitlab-ce-aea4041ce96f18afea70da15af3cbe1be4fa1f94.tar.gz |
Allow to expire build artifacts
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/builds/_sidebar.html.haml | 9 |
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 |