summaryrefslogtreecommitdiff
path: root/app/views/projects/pipeline_schedules
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 12:12:19 +0100
committerPhil Hughes <me@iamphill.com>2017-09-06 12:12:19 +0100
commit2aa8a75f69e338a94cca52a43058d156c0e3a1a1 (patch)
tree47b5f489b69e2d2e4e389fdd2586cca3781a8da7 /app/views/projects/pipeline_schedules
parentde82bd8e447ae7b4b7e66f0368f5f43311848186 (diff)
parent1632ffa6ad16738994122f0e84f331d50f220879 (diff)
downloadgitlab-ce-2aa8a75f69e338a94cca52a43058d156c0e3a1a1.tar.gz
Merge branch 'master' into breadcrumbs-improvements
Diffstat (limited to 'app/views/projects/pipeline_schedules')
-rw-r--r--app/views/projects/pipeline_schedules/index.html.haml4
-rw-r--r--app/views/projects/pipeline_schedules/new.html.haml3
2 files changed, 3 insertions, 4 deletions
diff --git a/app/views/projects/pipeline_schedules/index.html.haml b/app/views/projects/pipeline_schedules/index.html.haml
index 69178aea32c..d9957b54a4d 100644
--- a/app/views/projects/pipeline_schedules/index.html.haml
+++ b/app/views/projects/pipeline_schedules/index.html.haml
@@ -7,7 +7,7 @@
- @no_container = true
- page_title _("Pipeline Schedules")
-- if show_new_nav? && can?(current_user, :create_pipeline_schedule, @project)
+- if can?(current_user, :create_pipeline_schedule, @project)
- content_for :breadcrumbs_extra do
= link_to _('New schedule'), new_namespace_project_pipeline_schedule_path(@project.namespace, @project), class: 'btn btn-create'
@@ -20,7 +20,7 @@
= render "tabs", schedule_path_proc: schedule_path_proc, all_schedules: @all_schedules, scope: @scope
- if can?(current_user, :create_pipeline_schedule, @project)
- .nav-controls{ class: ("visible-xs" if show_new_nav?) }
+ .nav-controls.visible-xs
= link_to new_project_pipeline_schedule_path(@project), class: 'btn btn-create' do
%span= _('New schedule')
diff --git a/app/views/projects/pipeline_schedules/new.html.haml b/app/views/projects/pipeline_schedules/new.html.haml
index c7237cb96d8..cfdaf6d43bb 100644
--- a/app/views/projects/pipeline_schedules/new.html.haml
+++ b/app/views/projects/pipeline_schedules/new.html.haml
@@ -2,8 +2,7 @@
- @breadcrumb_link = namespace_project_pipeline_schedules_path(@project.namespace, @project)
- page_title _("New Pipeline Schedule")
-- if show_new_nav?
- - add_to_breadcrumbs("Pipelines", project_pipelines_path(@project))
+- add_to_breadcrumbs("Pipelines", project_pipelines_path(@project))
%h3.page-title
= _("Schedule a new pipeline")