Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
monitoring
Commits
b91afaf7
Commit
b91afaf7
authored
11 months ago
by
Thibault Debatty
Browse files
Options
Downloads
Patches
Plain Diff
update rack view code
parent
8442d965
No related branches found
No related tags found
No related merge requests found
Pipeline
#13945
passed
11 months ago
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/assets/sass/rack.scss
+3
-2
3 additions, 2 deletions
resources/assets/sass/rack.scss
resources/views/organization/rack.blade.php
+27
-30
27 additions, 30 deletions
resources/views/organization/rack.blade.php
with
30 additions
and
32 deletions
resources/assets/sass/rack.scss
+
3
−
2
View file @
b91afaf7
div
.rack-container
{
position
:
relative
;
padding-bottom
:
0rem
;
border-bottom
:
1px
solid
gray
;
box-shadow
:
0
10px
5px
-5px
rgba
(
0
,
0
,
0
,
0
.2
);
}
div
.rack
{
...
...
@@ -10,6 +10,7 @@ div.rack {
display
:
inline-block
;
width
:
300px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
);
box-shadow
:
0
10px
5px
-5px
rgba
(
0
,
0
,
0
,
0
.2
);
}
div
.server
{
...
...
This diff is collapsed.
Click to expand it.
resources/views/organization/rack.blade.php
+
27
−
30
View file @
b91afaf7
...
...
@@ -3,39 +3,36 @@
@
section
(
'content'
)
<
div
class
=
"container-fluid pb-4"
>
<
div
class
=
"rack-container"
>
<
div
class
=
"rack size-42u"
>
@
for
(
$i
=
0
;
$i
<
42
;
$i
++
)
<
div
class
=
"slot"
style
=
"bottom: {{ 2*
$i
}}rem"
>
{{
$i
+
1
}}
</
div
>
@
endfor
@
foreach
(
$organization
->
servers
as
$server
)
@
if
(
$server
->
size
==
0
)
@
continue
@
endif
<
div
class
=
"server size-{{
$server->size
}}u"
style
=
"bottom: {{ 2*(
$server->position
- 1) }}rem;"
>
<
p
>
<
a
href
=
"{{
$server->getUrlAttribute
() }}"
class
=
"text-decoration-none"
>
{{
$server
->
name
}}
</
a
>
{
!!
$server
->
status
()
->
badge
()
!!
}
</
p
>
</
div
>
@
endforeach
<
div
class
=
"rack size-42u"
>
@
for
(
$i
=
0
;
$i
<
42
;
$i
++
)
<
div
class
=
"slot"
style
=
"bottom: {{ 2*
$i
}}rem"
>
{{
$i
+
1
}}
</
div
>
<
div
class
=
"rack size-12u"
>
@
for
(
$i
=
0
;
$i
<
12
;
$i
++
)
<
div
class
=
"slot"
style
=
"bottom: {{ 2*
$i
}}rem"
>
{{
$i
+
1
}}
</
div
>
@
endfor
@
endfor
@
foreach
(
$organization
->
servers
as
$server
)
@
if
(
$server
->
size
==
0
)
@
continue
@
endif
<
div
class
=
"server size-{{
$server->size
}}u"
style
=
"bottom: {{ 2*(
$server->position
- 1) }}rem;"
>
<
p
>
<
a
href
=
"{{
$server->getUrlAttribute
() }}"
class
=
"text-decoration-none"
>
{{
$server
->
name
}}
</
a
>
{
!!
$server
->
status
()
->
badge
()
!!
}
</
p
>
</
div
>
@
endforeach
</
div
>
<
div
class
=
"rack size-12u"
>
@
for
(
$i
=
0
;
$i
<
12
;
$i
++
)
<
div
class
=
"slot"
style
=
"bottom: {{ 2*
$i
}}rem"
>
{{
$i
+
1
}}
</
div
>
@
endfor
</
div
>
</
div
>
@
endsection
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment