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
Vladislav Rykov
THSO.server
Commits
dfa16f85
Commit
dfa16f85
authored
Oct 01, 2020
by
Vladislav Rykov
Browse files
recent activity links for admins
parent
c292ec01
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/app/views_admin.py
View file @
dfa16f85
...
@@ -527,7 +527,9 @@ def administration_user_recent_activity(name):
...
@@ -527,7 +527,9 @@ def administration_user_recent_activity(name):
for
r
in
recent_activity
:
for
r
in
recent_activity
:
dev
=
dd
.
get
(
r
[
5
],
r
[
6
])[
1
]
dev
=
dd
.
get
(
r
[
5
],
r
[
6
])[
1
]
ra
+=
'<tr><th scope="row">'
+
r
[
1
]
+
'</th><th>'
+
r
[
2
]
+
'</th><th>'
+
r
[
0
]
+
'</th><th>'
+
str
(
ddm
.
read_data
(
r
[
3
].
tobytes
(),
dev
[
3
]))
+
'</th></tr>'
hrefapp
=
'<th scope="row"><a href="application/{}">{}</a></th>'
.
format
(
r
[
5
],
r
[
1
])
hrefdev
=
'<th><a href="application/{}/device/{}">{}</a></th>'
.
format
(
r
[
5
],
r
[
6
],
r
[
2
])
ra
+=
'<tr>'
+
hrefapp
+
hrefdev
+
'<th>'
+
r
[
0
]
+
'</th><th>'
+
str
(
ddm
.
read_data
(
r
[
3
].
tobytes
(),
dev
[
3
]))
+
'</th></tr>'
return
ra
,
200
return
ra
,
200
...
...
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