Commit 4809ded8 authored by Mike Greiling's avatar Mike Greiling

refactor template formatting according to guidelines

parent 499b6406
...@@ -118,26 +118,22 @@ ...@@ -118,26 +118,22 @@
}, },
}; };
</script> </script>
<template> <template>
<div <div v-if="!showEmptyState" class="prometheus-graphs">
class="prometheus-graphs" <div
v-if="!showEmptyState">
<div
class="row" class="row"
v-for="(groupData, index) in store.groups" v-for="(groupData, index) in store.groups"
:key="index"> :key="index"
<div >
class="col-md-12"> <div class="col-md-12">
<div <div class="panel panel-default prometheus-panel">
class="panel panel-default prometheus-panel"> <div class="panel-heading">
<div
class="panel-heading">
<h4>{{groupData.group}}</h4> <h4>{{groupData.group}}</h4>
</div> </div>
<div <div class="panel-body">
class="panel-body">
<monitoring-row <monitoring-row
v-for="(row, index) in groupData.metrics" v-for="(row, index) in groupData.metrics"
:key="index" :key="index"
:row-data="row" :row-data="row"
:update-aspect-ratio="updateAspectRatio" :update-aspect-ratio="updateAspectRatio"
...@@ -148,7 +144,7 @@ ...@@ -148,7 +144,7 @@
</div> </div>
</div> </div>
</div> </div>
<monitoring-state <monitoring-state
:selected-state="state" :selected-state="state"
:documentation-path="documentationPath" :documentation-path="documentationPath"
:settings-path="settingsPath" :settings-path="settingsPath"
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
}, },
}; };
</script> </script>
<template> <template>
<div <div class="prometheus-row row">
class="prometheus-row row">
<monitoring-column <monitoring-column
v-for="(column, index) in rowData" v-for="(column, index) in rowData"
:column-data="column" :column-data="column"
:class-type="bootstrapClass" :class-type="bootstrapClass"
:key="index" :key="index"
......
...@@ -62,49 +62,33 @@ ...@@ -62,49 +62,33 @@
}, },
}; };
</script> </script>
<template> <template>
<div <div class="prometheus-state">
class="prometheus-state"> <div class="row">
<div <div class="col-md-4 col-md-offset-4 state-svg" v-html="currentState.svg"></div>
class="row">
<div
class="col-md-4 col-md-offset-4 state-svg"
v-html="currentState.svg">
</div>
</div> </div>
<div <div class="row">
class="row"> <div class="col-md-6 col-md-offset-3">
<div <h4 class="text-center state-title">
class="col-md-6 col-md-offset-3">
<h4
class="text-center state-title">
{{currentState.title}} {{currentState.title}}
</h4> </h4>
</div> </div>
</div> </div>
<div <div class="row">
class="row"> <div class="col-md-6 col-md-offset-3">
<div <div class="description-text text-center state-description">
class="col-md-6 col-md-offset-3"> {{currentState.description}}
<div <a v-if="showButtonDescription" :href="settingsPath">
class="description-text text-center state-description"> Prometheus server
{{currentState.description}} </a>
<a
:href="settingsPath"
v-if="showButtonDescription">
Prometheus server
</a>
</div> </div>
</div> </div>
</div> </div>
<div <div class="row state-button-section">
class="row state-button-section"> <div class="col-md-4 col-md-offset-4 text-center state-button">
<div <a class="btn btn-success" :href="buttonPath">
class="col-md-4 col-md-offset-4 text-center state-button"> {{currentState.buttonText}}
<a
class="btn btn-success"
:href="buttonPath">
{{currentState.buttonText}}
</a> </a>
</div> </div>
</div> </div>
......
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