diff options
author | Jose <jvargas@gitlab.com> | 2018-06-28 01:13:21 +0300 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-07-03 20:49:40 +0300 |
commit | bafa86dec1ff32375178473a4e193a9f40dece45 (patch) | |
tree | 94050ca2352c1938ae08d5abdb75cbcc0fa365b1 /app | |
parent | 3fc8aa2c173fce2aa93a0bad6dcfaa945331cb6c (diff) |
Add dropdown, without data
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 24 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/environments.scss | 7 | ||||
-rw-r--r-- | app/views/projects/environments/metrics.html.haml | 8 |
3 files changed, 30 insertions, 9 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue index e1c8b6a6d4a..d8416cdb12e 100644 --- a/app/assets/javascripts/monitoring/components/dashboard.vue +++ b/app/assets/javascripts/monitoring/components/dashboard.vue @@ -155,8 +155,30 @@ export default { <template> <div v-if="!showEmptyState" - class="prometheus-graphs" + class="prometheus-graphs prepend-top-10" > + <div class="environments"> + Environment + <div class="dropdown prepend-left-10"> + <!--Set up the actual data--> + <button + class="dropdown-menu-toggle" + data-toggle="dropdown" + type="button" + > + Production + <i class="fa fa-chevron-down"></i> + </button> + <div class="dropdown-menu dropdown-menu-selectable dropdown-menu-drop-up"> + <a + href="#" + class="dropdown-item" + > + Staging + </a> + </div> + </div> + </div> <graph-group v-for="(groupData, index) in store.groups" :key="index" diff --git a/app/assets/stylesheets/pages/environments.scss b/app/assets/stylesheets/pages/environments.scss index 06f08ae2215..80bf98ff33f 100644 --- a/app/assets/stylesheets/pages/environments.scss +++ b/app/assets/stylesheets/pages/environments.scss @@ -222,6 +222,13 @@ } } +.prometheus-graphs { + .environments { + display: flex; + align-items: center; + } +} + .environments-actions { .external-url, .monitoring-url, diff --git a/app/views/projects/environments/metrics.html.haml b/app/views/projects/environments/metrics.html.haml index cd822164316..9aafad13174 100644 --- a/app/views/projects/environments/metrics.html.haml +++ b/app/views/projects/environments/metrics.html.haml @@ -2,14 +2,6 @@ - page_title "Metrics for environment", @environment.name .prometheus-container{ class: container_class } - .top-area - .row - .col-sm-6 - %h3 - Environment: - = link_to @environment.name, environment_path(@environment) - = @environments.to_a - #prometheus-graphs{ data: { "settings-path": edit_project_service_path(@project, 'prometheus'), "clusters-path": project_clusters_path(@project), "documentation-path": help_page_path('administration/monitoring/prometheus/index.md'), |