Commit dfa16f85 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

recent activity links for admins

parent c292ec01
......@@ -527,7 +527,9 @@ def administration_user_recent_activity(name):
for r in recent_activity:
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment