Commit a346dbf0 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Merge branch 'zj-auto-devops-table' of gitlab.com:zj/gitlab-ce into zj-auto-devops-table

parents a315e602 74cd4d76
...@@ -25,17 +25,21 @@ ...@@ -25,17 +25,21 @@
user() { user() {
return this.pipeline.user; return this.pipeline.user;
}, },
autoDevOpsTitle() { popoverOptions() {
return '<div class="autodevops-title">This pipeline makes use of a predefined CI/CD configuration enabled by <b>Auto DevOps.</b></div>'; return {
}, html: true,
autoDevOpsContent() { delay: { hide: 600 },
return `<a class="autodevops-link" href="${this.autoDevopsHelpPath}" target="_blank" rel="noopener noreferrer nofollow">Learn more about Auto DevOps</a>`; trigger: 'hover',
placement: 'top',
title: '<div class="autodevops-title">This pipeline makes use of a predefined CI/CD configuration enabled by <b>Auto DevOps.</b></div>',
content: `<a class="autodevops-link" href="${this.autoDevopsHelpPath}" target="_blank" rel="noopener noreferrer nofollow">Learn more about Auto DevOps</a>`,
};
}, },
}, },
}; };
</script> </script>
<template> <template>
<div class="table-section section-15 hidden-xs hidden-sm"> <div class="table-section section-15 hidden-xs hidden-sm pipeline-tags">
<a <a
:href="pipeline.path" :href="pipeline.path"
class="js-pipeline-url-link"> class="js-pipeline-url-link">
...@@ -71,14 +75,9 @@ ...@@ -71,14 +75,9 @@
</span> </span>
<a <a
v-if="pipeline.flags.auto_devops" v-if="pipeline.flags.auto_devops"
class="js-pipeline-url-autodevops label label-info" class="js-pipeline-url-autodevops label label-info autodevops-badge"
v-popover:html v-popover="popoverOptions"
tabindex="0" role="button">
role="button"
data-trigger="focus"
data-placement="top"
:title="autoDevOpsTitle"
:data-content="autoDevOpsContent">
Auto DevOps Auto DevOps
</a> </a>
<span <span
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
endpoint: pipelinesData.endpoint, endpoint: pipelinesData.endpoint,
cssClass: pipelinesData.cssClass, cssClass: pipelinesData.cssClass,
helpPagePath: pipelinesData.helpPagePath, helpPagePath: pipelinesData.helpPagePath,
autoDevopsPath: pipelinesData.helpautoDevopsPath, autoDevopsPath: pipelinesData.helpAutoDevopsPath,
newPipelinePath: pipelinesData.newPipelinePath, newPipelinePath: pipelinesData.newPipelinePath,
canCreatePipeline: pipelinesData.canCreatePipeline, canCreatePipeline: pipelinesData.canCreatePipeline,
allPath: pipelinesData.allPath, allPath: pipelinesData.allPath,
......
...@@ -7,15 +7,11 @@ ...@@ -7,15 +7,11 @@
* { * {
* directives: [popover] * directives: [popover]
* } * }
* <a v-popover>popover</a> * <a v-popover="{options}">popover</a>
*/ */
export default { export default {
bind(el, binding) { bind(el, binding) {
const renderHTML = binding.arg === 'html'; $(el).popover(binding.value);
$(el).popover({
html: renderHTML,
});
}, },
unbind(el) { unbind(el) {
......
...@@ -220,12 +220,20 @@ ...@@ -220,12 +220,20 @@
.commit, .commit,
.generic_commit_status { .generic_commit_status {
a:not(.label):not(.autodevops-link), a,
button { button {
color: $gl-text-color; color: $gl-text-color;
vertical-align: baseline; vertical-align: baseline;
} }
a.autodevops-badge {
color: $white-light;
}
a.autodevops-link {
color: $gl-link-color;
}
.commit-row-description { .commit-row-description {
font-size: 14px; font-size: 14px;
padding: 10px 15px; padding: 10px 15px;
......
...@@ -202,6 +202,10 @@ ...@@ -202,6 +202,10 @@
.btn-group.open .dropdown-toggle { .btn-group.open .dropdown-toggle {
box-shadow: none; box-shadow: none;
} }
.pipeline-tags .label-container {
white-space: normal;
}
} }
.stage-cell { .stage-cell {
...@@ -935,7 +939,3 @@ button.mini-pipeline-graph-dropdown-toggle { ...@@ -935,7 +939,3 @@ button.mini-pipeline-graph-dropdown-toggle {
font-weight: $gl-font-weight-normal; font-weight: $gl-font-weight-normal;
line-height: 1.5; line-height: 1.5;
} }
.autodevops-link {
color: $gl-link-color;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment