Add links for user and database columns

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu 2022-05-30 00:55:14 +02:00
parent fb1afbe444
commit e3f3c70481

View File

@ -45,11 +45,29 @@
</a>
</td>
<td class="font-monospace text-end">{{ row.id }}</td>
<td>{{ row.user }}</td>
<td>
{% if row.user != 'system user' %}
<a href="{{ url('/server/privileges', {
'username': row.user,
'hostname': row.host,
'dbname': row.db,
'tablename': '',
'routinename': '',
}) }}">
{{ row.user }}
</a>
{% else %}
{{ row.user }}
{% endif %}
</td>
<td>{{ row.host }}</td>
<td>
{% if row.db != '' %}
{{ row.db }}
<a href="{{ url('/database/structure', {
'db': row.db,
}) }}">
{{ row.db }}
</a>
{% else %}
<em>{% trans 'None' %}</em>
{% endif %}