Creates auto devops callout
This commit is contained in:
parent
df3d476403
commit
354df65295
|
@ -155,6 +155,9 @@ import initChangesDropdown from './init_changes_dropdown';
|
||||||
shortcut_handler = new ShortcutsNavigation();
|
shortcut_handler = new ShortcutsNavigation();
|
||||||
new UsersSelect();
|
new UsersSelect();
|
||||||
break;
|
break;
|
||||||
|
case 'projects:merge_requests:index':
|
||||||
|
new UserCallout();
|
||||||
|
break;
|
||||||
case 'projects:merge_requests:index':
|
case 'projects:merge_requests:index':
|
||||||
case 'projects:issues:index':
|
case 'projects:issues:index':
|
||||||
if (filteredSearchEnabled) {
|
if (filteredSearchEnabled) {
|
||||||
|
@ -344,6 +347,7 @@ import initChangesDropdown from './init_changes_dropdown';
|
||||||
case 'projects:show':
|
case 'projects:show':
|
||||||
shortcut_handler = new ShortcutsNavigation();
|
shortcut_handler = new ShortcutsNavigation();
|
||||||
new NotificationsForm();
|
new NotificationsForm();
|
||||||
|
new UserCallout();
|
||||||
|
|
||||||
if ($('#tree-slider').length) new TreeView();
|
if ($('#tree-slider').length) new TreeView();
|
||||||
if ($('.blob-viewer').length) new BlobViewer();
|
if ($('.blob-viewer').length) new BlobViewer();
|
||||||
|
@ -363,6 +367,9 @@ import initChangesDropdown from './init_changes_dropdown';
|
||||||
case 'projects:pipelines:new':
|
case 'projects:pipelines:new':
|
||||||
new NewBranchForm($('.js-new-pipeline-form'));
|
new NewBranchForm($('.js-new-pipeline-form'));
|
||||||
break;
|
break;
|
||||||
|
case 'projects:pipelines:index':
|
||||||
|
new UserCallout();
|
||||||
|
break;
|
||||||
case 'projects:pipelines:builds':
|
case 'projects:pipelines:builds':
|
||||||
case 'projects:pipelines:failures':
|
case 'projects:pipelines:failures':
|
||||||
case 'projects:pipelines:show':
|
case 'projects:pipelines:show':
|
||||||
|
@ -378,6 +385,8 @@ import initChangesDropdown from './init_changes_dropdown';
|
||||||
parentEl: '.pipelines-tabs',
|
parentEl: '.pipelines-tabs',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
new UserCallout();
|
||||||
break;
|
break;
|
||||||
case 'groups:activity':
|
case 'groups:activity':
|
||||||
new gl.Activities();
|
new gl.Activities();
|
||||||
|
@ -420,6 +429,7 @@ import initChangesDropdown from './init_changes_dropdown';
|
||||||
new TreeView();
|
new TreeView();
|
||||||
new BlobViewer();
|
new BlobViewer();
|
||||||
new NewCommitForm($('.js-create-dir-form'));
|
new NewCommitForm($('.js-create-dir-form'));
|
||||||
|
new UserCallout();
|
||||||
$('#tree-slider').waitForImages(function() {
|
$('#tree-slider').waitForImages(function() {
|
||||||
gl.utils.ajaxGet(document.querySelector('.js-tree-content').dataset.logsPath);
|
gl.utils.ajaxGet(document.querySelector('.js-tree-content').dataset.logsPath);
|
||||||
});
|
});
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
return {
|
return {
|
||||||
endpoint: pipelinesData.endpoint,
|
endpoint: pipelinesData.endpoint,
|
||||||
cssClass: pipelinesData.cssClass,
|
|
||||||
helpPagePath: pipelinesData.helpPagePath,
|
helpPagePath: pipelinesData.helpPagePath,
|
||||||
autoDevopsPath: pipelinesData.helpautoDevopsPath,
|
autoDevopsPath: pipelinesData.helpautoDevopsPath,
|
||||||
newPipelinePath: pipelinesData.newPipelinePath,
|
newPipelinePath: pipelinesData.newPipelinePath,
|
||||||
|
@ -140,9 +139,7 @@
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div class="pipelines-container">
|
||||||
class="pipelines-container"
|
|
||||||
:class="cssClass">
|
|
||||||
<div
|
<div
|
||||||
class="top-area scrolling-tabs-container inner-page-scroll-tabs"
|
class="top-area scrolling-tabs-container inner-page-scroll-tabs"
|
||||||
v-if="!isLoading && !shouldRenderEmptyState">
|
v-if="!isLoading && !shouldRenderEmptyState">
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
- if @project.merge_requests.exists?
|
- if @project.merge_requests.exists?
|
||||||
%div{ class: container_class }
|
%div{ class: container_class }
|
||||||
|
-# TODO add verfication
|
||||||
|
= render 'shared/auto_devops_callout'
|
||||||
.top-area
|
.top-area
|
||||||
= render 'shared/issuable/nav', type: :merge_requests
|
= render 'shared/issuable/nav', type: :merge_requests
|
||||||
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
|
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
|
||||||
|
|
|
@ -2,20 +2,23 @@
|
||||||
- page_title "Pipelines"
|
- page_title "Pipelines"
|
||||||
= render "projects/pipelines/head"
|
= render "projects/pipelines/head"
|
||||||
|
|
||||||
#pipelines-list-vue{ data: { endpoint: project_pipelines_path(@project, format: :json),
|
%div{ 'class' => container_class }
|
||||||
"css-class" => container_class,
|
-# TODO add verfication
|
||||||
"help-page-path" => help_page_path('ci/quick_start/README'),
|
= render 'shared/auto_devops_callout'
|
||||||
"help-auto-devops-path" => help_page_path('topics/autodevops/index.md'),
|
|
||||||
"new-pipeline-path" => new_project_pipeline_path(@project),
|
|
||||||
"can-create-pipeline" => can?(current_user, :create_pipeline, @project).to_s,
|
|
||||||
"all-path" => project_pipelines_path(@project),
|
|
||||||
"pending-path" => project_pipelines_path(@project, scope: :pending),
|
|
||||||
"running-path" => project_pipelines_path(@project, scope: :running),
|
|
||||||
"finished-path" => project_pipelines_path(@project, scope: :finished),
|
|
||||||
"branches-path" => project_pipelines_path(@project, scope: :branches),
|
|
||||||
"tags-path" => project_pipelines_path(@project, scope: :tags),
|
|
||||||
"has-ci" => @repository.gitlab_ci_yml || @project.auto_devops_enabled?,
|
|
||||||
"ci-lint-path" => ci_lint_path } }
|
|
||||||
|
|
||||||
= page_specific_javascript_bundle_tag('common_vue')
|
#pipelines-list-vue{ data: { endpoint: project_pipelines_path(@project, format: :json),
|
||||||
= page_specific_javascript_bundle_tag('pipelines')
|
"help-page-path" => help_page_path('ci/quick_start/README'),
|
||||||
|
"help-auto-devops-path" => help_page_path('topics/autodevops/index.md'),
|
||||||
|
"new-pipeline-path" => new_project_pipeline_path(@project),
|
||||||
|
"can-create-pipeline" => can?(current_user, :create_pipeline, @project).to_s,
|
||||||
|
"all-path" => project_pipelines_path(@project),
|
||||||
|
"pending-path" => project_pipelines_path(@project, scope: :pending),
|
||||||
|
"running-path" => project_pipelines_path(@project, scope: :running),
|
||||||
|
"finished-path" => project_pipelines_path(@project, scope: :finished),
|
||||||
|
"branches-path" => project_pipelines_path(@project, scope: :branches),
|
||||||
|
"tags-path" => project_pipelines_path(@project, scope: :tags),
|
||||||
|
"has-ci" => @repository.gitlab_ci_yml || @project.auto_devops_enabled?,
|
||||||
|
"ci-lint-path" => ci_lint_path } }
|
||||||
|
|
||||||
|
= page_specific_javascript_bundle_tag('common_vue')
|
||||||
|
= page_specific_javascript_bundle_tag('pipelines')
|
||||||
|
|
|
@ -81,5 +81,8 @@
|
||||||
|
|
||||||
- view_path = default_project_view
|
- view_path = default_project_view
|
||||||
|
|
||||||
|
-# TODO add verfication
|
||||||
|
= render 'shared/auto_devops_callout'
|
||||||
|
|
||||||
%div{ class: project_child_container_class(view_path) }
|
%div{ class: project_child_container_class(view_path) }
|
||||||
= render view_path
|
= render view_path
|
||||||
|
|
|
@ -14,5 +14,7 @@
|
||||||
= render "projects/commits/head"
|
= render "projects/commits/head"
|
||||||
|
|
||||||
%div{ class: [container_class, ("limit-container-width" unless fluid_layout)] }
|
%div{ class: [container_class, ("limit-container-width" unless fluid_layout)] }
|
||||||
|
-# TODO add verfication
|
||||||
|
= render 'shared/auto_devops_callout'
|
||||||
= render 'projects/last_push'
|
= render 'projects/last_push'
|
||||||
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_tree_path(@project, @id)
|
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_tree_path(@project, @id)
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
.user-callout{ data: { uid: 'TODO' } }
|
||||||
|
.bordered-box.landing.content-block
|
||||||
|
%button.btn.btn-default.close.js-close-callout{ type: 'button',
|
||||||
|
'aria-label' => 'Dismiss Auto Dev Ops box' }
|
||||||
|
= icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true')
|
||||||
|
.svg-container
|
||||||
|
= custom_icon('icon_autodevops')
|
||||||
|
.user-callout-copy
|
||||||
|
%h4
|
||||||
|
Auto Dev Ops (Beta)
|
||||||
|
%p
|
||||||
|
Automated Dev Ops can be activated for this project. It will automatically run tests on your code based on a predefined set of rules.
|
||||||
|
%p
|
||||||
|
Learn more in the
|
||||||
|
= link_to 'Auto Dev Ops documentation', help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer'
|
||||||
|
|
||||||
|
= link_to 'Enable in settings', project_settings_ci_cd_path(@project), class: 'btn btn-primary js-close-callout'
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 9.2 KiB |
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Created callout for auto devops
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: added
|
Loading…
Reference in New Issue