summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-11-23 14:44:05 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-11-30 17:06:46 +0000
commit43e5009a301d474225bf39e0efc5766b4b6be0c1 (patch)
tree1162ee20f1e3dc87a7036cd493b6695d5f437770 /app/views/projects
parent77337a82f0e2ee3d600d7ece248a110cbc3ef58d (diff)
downloadgitlab-ce-43e5009a301d474225bf39e0efc5766b4b6be0c1.tar.gz
Pipelines tabs
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/pipelines/_with_tabs.html.haml23
1 files changed, 18 insertions, 5 deletions
diff --git a/app/views/projects/pipelines/_with_tabs.html.haml b/app/views/projects/pipelines/_with_tabs.html.haml
index 718314701f9..49a26b3f374 100644
--- a/app/views/projects/pipelines/_with_tabs.html.haml
+++ b/app/views/projects/pipelines/_with_tabs.html.haml
@@ -1,14 +1,17 @@
.tabs-holder
- %ul.nav-links.no-top.no-bottom
- %li.active
- = link_to "Pipeline", "#js-tab-pipeline", data: { target: '#js-tab-pipeline', action: 'pipeline', toggle: 'tab' }, class: 'pipeline-tab'
+ %ul.pipelines-tabs.nav-links.no-top.no-bottom
%li
- = link_to "#js-tab-builds", data: { target: '#js-tab-builds', action: 'build', toggle: 'tab' }, class: 'builds-tab' do
+ = link_to namespace_project_pipeline_path(@project.namespace, @project, @pipeline), data: { target: 'div#js-tab-pipeline', action: 'pipelines', toggle: 'tab' } do
+ Pipeline
+ %li
+ = link_to builds_namespace_project_pipeline_path(@project.namespace, @project, @pipeline), data: {target: 'div#js-tab-builds', action: 'builds', toggle: 'tab' } do
Builds
%span.badge= pipeline.statuses.count
+
+
.tab-content
- #js-tab-pipeline.tab-pane.active
+ #js-tab-pipeline.tab-pane
.build-content.middle-block.pipeline-graph
.pipeline-visualization
%ul.stage-column-list
@@ -49,3 +52,13 @@
%th
- pipeline.statuses.relevant.stages.each do |stage|
= render 'projects/commit/ci_stage', stage: stage, statuses: pipeline.statuses.relevant.where(stage: stage)
+
+
+:javascript
+ var pipelines_tab;
+
+ pipelines_tab = new window.gl.LinkedTabs({
+ action: "#{controller.action_name}",
+ defaultAction: 'pipelines',
+ parentEl: '.pipelines-tabs'
+ });