Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c1cdff48
Commit
c1cdff48
authored
Jun 22, 2016
by
Ryan Herbert
Committed by
HERBERT Ryan
Jun 27, 2016
Browse files
admin.py added current git revision to admin index
parent
43ff7f41
Changes
2
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/admin.py
View file @
c1cdff48
...
...
@@ -20,10 +20,14 @@ def index():
p
=
subprocess
.
Popen
([
"df"
,
"-h"
],
stdout
=
subprocess
.
PIPE
)
disk_use
,
err
=
p
.
communicate
()
p
=
subprocess
.
Popen
([
"git"
,
"rev-parse"
,
"HEAD"
],
stdout
=
subprocess
.
PIPE
)
revision
,
err
=
p
.
communicate
()
d
=
monitor
()
return
dict
(
d
,
uptime
=
uptime
,
disk_use
=
disk_use
disk_use
=
disk_use
,
revision
=
revision
,
)
...
...
server/web2py/applications/vidjil/views/admin/index.html
View file @
c1cdff48
...
...
@@ -48,6 +48,7 @@
Server status
<div
class=
"console-div"
>
<div
class=
"console-flex"
>
{{=uptime}}
</div>
<div
class=
"console-flex"
>
revision: {{=revision}}
</div>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
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