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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f1186e22
Commit
f1186e22
authored
Sep 01, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify frontend for "Advanced" dropdown in Geo Node list
parent
717ec812
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
app/assets/javascripts/geo_nodes.js
app/assets/javascripts/geo_nodes.js
+0
-1
app/assets/stylesheets/pages/geo_nodes.scss
app/assets/stylesheets/pages/geo_nodes.scss
+2
-3
app/views/admin/geo_nodes/index.html.haml
app/views/admin/geo_nodes/index.html.haml
+4
-6
No files found.
app/assets/javascripts/geo_nodes.js
View file @
f1186e22
...
...
@@ -43,7 +43,6 @@ class GeoNodeStatus {
const
currentlyActive
=
!
closestStatus
.
hasClass
(
'
hide-status
'
)
const
togglerContainer
=
currentlyActive
?
$
(
'
.toggler-inactive-container
'
)
:
$
(
'
.toggler-active-container
'
)
element
.
detach
().
appendTo
(
togglerContainer
);
element
.
find
(
'
.fa
'
).
toggleClass
(
'
fa-angle-down
'
).
toggleClass
(
'
fa-angle-up
'
);
closestStatus
.
toggleClass
(
'
hide-status
'
);
}
...
...
app/assets/stylesheets/pages/geo_nodes.scss
View file @
f1186e22
...
...
@@ -29,15 +29,14 @@
}
}
.
js-advanced-geo-node
-status-toggler
{
.
advanced
-status-toggler
{
color
:
$gl-link-color
;
padding
:
10px
0
0
;
cursor
:
pointer
;
position
:
relative
;
z-index
:
2
;
display
:
inline-block
;
&
span
:hover
{
display
:
inline-block
;
color
:
$gl-link-color
;
text-decoration
:
underline
;
}
...
...
app/views/admin/geo_nodes/index.html.haml
View file @
f1186e22
...
...
@@ -63,11 +63,6 @@
%strong
.node-info.js-attachments-synced
%p
.advanced-geo-node-status-container
.toggler-inactive-container
.js-advanced-geo-node-status-toggler
%span
Advanced
%i
.fa.fa-angle-down
%p
.advanced-status.hide-status
%span
.help-block
Database replication lag:
...
...
@@ -78,7 +73,10 @@
%span
.help-block
Last event ID processed by cursor:
%strong
.node-info.js-last-cursor-event
.toggler-active-container
.advanced-status-toggler
.js-advanced-geo-node-status-toggler
%span
Advanced
=
icon
(
'angle-down'
)
%p
.js-health
...
...
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