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
3ed788dd
Commit
3ed788dd
authored
Sep 25, 2020
by
Vladislav Rykov
Browse files
recent activite app and dev links included
parent
8d340ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/app/views.py
View file @
3ed788dd
...
@@ -360,7 +360,9 @@ def recent_activity():
...
@@ -360,7 +360,9 @@ def recent_activity():
ra
=
''
ra
=
''
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