summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/_header.html.haml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-05-03 22:23:31 +0000
committerRobert Speicher <robert@gitlab.com>2017-05-03 22:23:31 +0000
commit9604ce524f3ddc8d652f5611fb4c698746ef184d (patch)
treebadb3e95859b577cabb74aaccd1bd7b8b8e3b86a /app/views/projects/builds/_header.html.haml
parent21e4f0534d2d9faa5ef9826b990ed32e90ea0426 (diff)
parentdf36f1f47b7c1dcbe6d34fabd83764ae14919e15 (diff)
downloadgitlab-ce-9604ce524f3ddc8d652f5611fb4c698746ef184d.tar.gz
Merge branch 'dm-artifact-browser-header' into 'master'
Add breadcrumb, build header and pipelines submenu to artifacts browser See merge request !11050
Diffstat (limited to 'app/views/projects/builds/_header.html.haml')
-rw-r--r--app/views/projects/builds/_header.html.haml28
1 files changed, 17 insertions, 11 deletions
diff --git a/app/views/projects/builds/_header.html.haml b/app/views/projects/builds/_header.html.haml
index 104db85809c..a0f8f105d9a 100644
--- a/app/views/projects/builds/_header.html.haml
+++ b/app/views/projects/builds/_header.html.haml
@@ -1,10 +1,13 @@
+- show_controls = local_assigns.fetch(:show_controls, true)
- pipeline = @build.pipeline
.content-block.build-header.top-area
.header-content
= render 'ci/status/badge', status: @build.detailed_status(current_user), link: false, title: @build.status_title
- Job
- %strong.js-build-id ##{@build.id}
+ %strong
+ Job
+ = link_to namespace_project_build_path(@project.namespace, @project, @build), class: 'js-build-id' do
+ \##{@build.id}
in pipeline
= link_to pipeline_path(pipeline) do
%strong ##{pipeline.id}
@@ -15,13 +18,16 @@
= link_to namespace_project_commits_path(@project.namespace, @project, @build.ref) do
%code
= @build.ref
- - if @build.user
- = render "user"
+
+ = render "projects/builds/user" if @build.user
+
= time_ago_with_tooltip(@build.created_at)
- .nav-controls
- - if can?(current_user, :create_issue, @project) && @build.failed?
- = link_to "New issue", new_namespace_project_issue_path(@project.namespace, @project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted'
- - if can?(current_user, :update_build, @build) && @build.retryable?
- = link_to "Retry job", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'btn btn-inverted-secondary', method: :post
- %button.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
- = icon('angle-double-left')
+
+ - if show_controls
+ .nav-controls
+ - if can?(current_user, :create_issue, @project) && @build.failed?
+ = link_to "New issue", new_namespace_project_issue_path(@project.namespace, @project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted'
+ - if can?(current_user, :update_build, @build) && @build.retryable?
+ = link_to "Retry job", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'btn btn-inverted-secondary', method: :post
+ %button.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
+ = icon('angle-double-left')