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
d58241a2
Commit
d58241a2
authored
Sep 27, 2019
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add i18n support to admin/system_info page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
6c044f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/views/admin/system_info/show.html.haml
app/views/admin/system_info/show.html.haml
+8
-8
No files found.
app/views/admin/system_info/show.html.haml
View file @
d58241a2
-
page_title
"System Info"
-
page_title
_
(
'System Info'
)
.prepend-top-default
.prepend-top-default
.row
.row
.col-sm
.col-sm
.bg-light.light-well
.bg-light.light-well
%h4
CPU
%h4
=
_
(
'CPU'
)
.data
.data
-
if
@cpus
-
if
@cpus
%h2
#{
@cpus
.
length
}
cores
%h2
=
_
(
'%{cores} cores'
)
%
{
cores:
@cpus
.
length
}
-
else
-
else
=
icon
(
'warning'
,
class:
'text-warning'
)
=
icon
(
'warning'
,
class:
'text-warning'
)
Unable to collect CPU info
=
_
(
'Unable to collect CPU info'
)
.bg-light.light-well.prepend-top-default
.bg-light.light-well.prepend-top-default
%h4
Memory Usage
%h4
=
_
(
'Memory Usage'
)
.data
.data
-
if
@memory
-
if
@memory
%h2
#{
number_to_human_size
(
@memory
.
active_bytes
)
}
/
#{
number_to_human_size
(
@memory
.
total_bytes
)
}
%h2
#{
number_to_human_size
(
@memory
.
active_bytes
)
}
/
#{
number_to_human_size
(
@memory
.
total_bytes
)
}
-
else
-
else
=
icon
(
'warning'
,
class:
'text-warning'
)
=
icon
(
'warning'
,
class:
'text-warning'
)
Unable to collect memory info
=
_
(
'Unable to collect memory info'
)
.bg-light.light-well.prepend-top-default
.bg-light.light-well.prepend-top-default
%h4
Uptime
%h4
=
_
(
'Uptime'
)
.data
.data
%h2
=
distance_of_time_in_words_to_now
(
Rails
.
application
.
config
.
booted_at
)
%h2
=
distance_of_time_in_words_to_now
(
Rails
.
application
.
config
.
booted_at
)
.col-sm
.col-sm
.bg-light.light-well
.bg-light.light-well
%h4
Disk Usage
%h4
=
_
(
'Disk Usage'
)
.data
.data
%ul
%ul
-
@disks
.
each
do
|
disk
|
-
@disks
.
each
do
|
disk
|
...
...
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