Commit ed46bdc2 authored by nazarf's avatar nazarf

add red line if miners down

parent 94740c66
...@@ -4,18 +4,24 @@ html ...@@ -4,18 +4,24 @@ html
body.admin-body body.admin-body
padding-top: 70px padding-top: 70px
height: 100% height: 100%
.yield-container .yield-container
overflow-y: auto overflow-y: auto
height: 100% height: 100%
.yield-column .yield-column
padding: 0 10px 20px 90px padding: 0 10px 20px 90px
&.pinned &.pinned
.yield-column .yield-column
padding: 0 10px 20px 300px padding: 0 10px 20px 300px
#links_panel #links_panel
left: 0 left: 0
.handle .handle
display: none display: none
.pin .pin
color: #347bb7 color: #347bb7
...@@ -24,6 +30,7 @@ body.admin-body ...@@ -24,6 +30,7 @@ body.admin-body
bottom: 0 bottom: 0
right: 25px right: 25px
color: #b2b2b8 color: #b2b2b8
p p
margin: 0 margin: 0
...@@ -37,9 +44,11 @@ body.admin-body ...@@ -37,9 +44,11 @@ body.admin-body
left: -250px left: -250px
height: calc(100% - 85px) height: calc(100% - 85px)
z-index: 2 z-index: 2
div div
height: 100% height: 100%
overflow-y: auto overflow-y: auto
ul li ul li
a a
padding: 2px 15px padding: 2px 15px
...@@ -48,14 +57,17 @@ body.admin-body ...@@ -48,14 +57,17 @@ body.admin-body
margin-left: 0 margin-left: 0
margin-right: -5px margin-right: -5px
border-left: #808080 outset 5px border-left: #808080 outset 5px
.handle .handle
position: absolute position: absolute
top: calc(50% - 12px) top: calc(50% - 12px)
left: 265px left: 265px
color: darkgrey color: darkgrey
&:hover &:hover
color: #347bb7 color: #347bb7
cursor: pointer cursor: pointer
.pin .pin
position: absolute position: absolute
top: 5px top: 5px
...@@ -63,12 +75,14 @@ body.admin-body ...@@ -63,12 +75,14 @@ body.admin-body
color: darkgrey color: darkgrey
font-size: 18px font-size: 18px
height: 26px height: 26px
&:hover &:hover
color: #347bb7 color: #347bb7
cursor: pointer cursor: pointer
.page-header .page-header
margin: 0 0 5px margin: 0 0 5px
h1 h1
margin-top: 0 margin-top: 0
margin-bottom: 0 margin-bottom: 0
...@@ -77,3 +91,7 @@ body.admin-body ...@@ -77,3 +91,7 @@ body.admin-body
.form-horizontal .form-group .form-horizontal .form-group
margin-left: 0 margin-left: 0
margin-right: 0 margin-right: 0
.table-error
background-color: #f5c6cb !important
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
%i.fa.fa-close %i.fa.fa-close
%tbody %tbody
- @miners.each do |miner| - @miners.each do |miner|
%tr - failed = miner.status != 'work'
%tr{:class => ("table-error" if failed)}
%td= link_to miner.name, miner_path(miner) %td= link_to miner.name, miner_path(miner)
%td= miner.status %td= miner.status
%td= miner.ip_address %td= miner.ip_address
......
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