Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
4809ded8
Commit
4809ded8
authored
Aug 29, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor template formatting according to guidelines
parent
499b6406
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
52 deletions
+32
-52
app/assets/javascripts/monitoring/components/monitoring.vue
app/assets/javascripts/monitoring/components/monitoring.vue
+11
-15
app/assets/javascripts/monitoring/components/monitoring_row.vue
...sets/javascripts/monitoring/components/monitoring_row.vue
+3
-3
app/assets/javascripts/monitoring/components/monitoring_state.vue
...ts/javascripts/monitoring/components/monitoring_state.vue
+18
-34
No files found.
app/assets/javascripts/monitoring/components/monitoring.vue
View file @
4809ded8
...
@@ -118,24 +118,20 @@
...
@@ -118,24 +118,20 @@
},
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div
<div
v-if=
"!showEmptyState"
class=
"prometheus-graphs"
>
class=
"prometheus-graphs"
v-if=
"!showEmptyState"
>
<div
<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"
...
...
app/assets/javascripts/monitoring/components/monitoring_row.vue
View file @
4809ded8
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
},
},
};
};
</
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"
...
...
app/assets/javascripts/monitoring/components/monitoring_state.vue
View file @
4809ded8
...
@@ -62,48 +62,32 @@
...
@@ -62,48 +62,32 @@
},
},
};
};
</
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"
>
<div
class=
"description-text text-center state-description"
>
{{
currentState
.
description
}}
{{
currentState
.
description
}}
<a
<a
v-if=
"showButtonDescription"
:href=
"settingsPath"
>
:href=
"settingsPath"
v-if=
"showButtonDescription"
>
Prometheus server
Prometheus server
</a>
</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"
>
<a
class=
"btn btn-success"
:href=
"buttonPath"
>
{{
currentState
.
buttonText
}}
{{
currentState
.
buttonText
}}
</a>
</a>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment