Commit fa8cf85e authored by Simon Knox's avatar Simon Knox 🕴

Visually even-out headings on Integrations Settings pages

parent 095df971
Pipeline #44725210 failed with stages
in 42 minutes and 21 seconds
......@@ -267,15 +267,6 @@
}
.custom-monitored-metrics {
.card-title {
display: flex;
align-items: center;
> .btn-success {
margin-left: auto;
}
}
.custom-metric {
display: flex;
align-items: center;
......
.row.prepend-top-default.append-bottom-default
.col-lg-3
%h4.prepend-top-0
%h3.prepend-top-0
= @service.title
= boolean_to_icon @service.activated?
......
- project = local_assigns.fetch(:project)
.card.js-panel-monitored-metrics{ data: { active_metrics: active_common_project_prometheus_metrics_path(project, :json), metrics_help_path: help_page_path('user/project/integrations/prometheus_library/index') } }
.card-header
%h5.card-header.mt-0
= s_('PrometheusService|Common metrics')
%span.badge.badge-pill.js-monitored-count 0
.card-body
......
- project = local_assigns.fetch(:project)
.card.custom-monitored-metrics.js-panel-custom-monitored-metrics{ data: { active_custom_metrics: project_prometheus_metrics_path(project), environments_data: environments_list_data, service_active: "#{@service.active}" } }
.card-header
%h3.card-title
= s_('PrometheusService|Custom metrics')
%span.badge.badge-pill.js-custom-monitored-count 0
= link_to s_('PrometheusService|New metric'), new_project_prometheus_metric_path(project), class: 'btn btn-success js-new-metric-button hidden'
%h5.card-header.mt-0.d-flex.align-items-center
= s_('PrometheusService|Custom metrics')
%span.badge.badge-pill.js-custom-monitored-count 0
= link_to s_('PrometheusService|New metric'), new_project_prometheus_metric_path(project), class: 'btn btn-success js-new-metric-button ml-auto hidden'
.card-body
.flash-container.hidden
.flash-warning
......
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