Implement showing tokens

This commit is contained in:
Mark Veidemanis 2022-08-13 01:02:45 +01:00
parent 73792d724d
commit 18448dce5a
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@
{% load i18n %} {% load i18n %}
{% load django_tables2_bulma_template %} {% load django_tables2_bulma_template %}
{% load static %} {% load static %}
{% load joinsep %}
{% block table-wrapper %} {% block table-wrapper %}
<div id="drilldown-table" class="container box column-shifter-container" style="position:relative; z-index:1;"> <div id="drilldown-table" class="container box column-shifter-container" style="position:relative; z-index:1;">
{% block table %} {% block table %}
@ -126,6 +127,10 @@
<i class="fa-solid fa-file-slash"></i> <i class="fa-solid fa-file-slash"></i>
</span> </span>
</td> </td>
{% elif column.name == 'tokens' %}
<td class="{{ column.name }}">
{{ cell|joinsep:',' }}
</td>
{% elif column.name == 'src' %} {% elif column.name == 'src' %}
<td class="{{ column.name }}"> <td class="{{ column.name }}">
<a class="has-text-link is-underlined" <a class="has-text-link is-underlined"

View File

@ -65,5 +65,6 @@ class DrilldownTable(Table):
realname = Column() realname = Column()
server = Column() server = Column()
mtype = Column() mtype = Column()
tokens = Column()
template_name = "ui/drilldown/table_results.html" template_name = "ui/drilldown/table_results.html"
paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE