Commit 7e9b8872 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Add label if on current node

parent 89f37e80
......@@ -35,13 +35,20 @@
margin-top: 5px;
}
.primary-node-badge {
.node-badge {
color: $white-light;
background-color: $blue-300;
display: inline-block;
margin-left: 5px;
padding: 0 5px;
border-radius: 3px;
&.primary-node {
background-color: $blue-300;
}
&.current-node {
background-color: $green-400;
}
}
.node-actions {
......
......@@ -21,7 +21,9 @@
= node_status_icon(node)
%strong= node.url
- if node.primary?
.primary-node-badge Primary
.node-badge.primary-node Primary
- if Gitlab::Geo.current_node == node
.node-badge.current-node Current node
%span.help-block Primary node
- else
.js-geo-node-status{ style: 'display: none' }
......
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