|
|
@ -1,7 +1,6 @@
|
|
|
|
{% load django_tables2 %}
|
|
|
|
{% load django_tables2 %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load django_tables2_bulma_template %}
|
|
|
|
{% load django_tables2_bulma_template %}
|
|
|
|
{% load joinsep %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block table-wrapper %}
|
|
|
|
{% block table-wrapper %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
@ -13,34 +12,38 @@
|
|
|
|
{% block table.thead.row %}
|
|
|
|
{% block table.thead.row %}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
{% for column in table.columns %}
|
|
|
|
{% for column in table.columns %}
|
|
|
|
{% block table.thead.th %}
|
|
|
|
|
|
|
|
<th {% render_attrs column.attrs.th class="" %}>
|
|
|
|
{% if column.name not in hide %}
|
|
|
|
{% if column.orderable %}
|
|
|
|
{% block table.thead.th %}
|
|
|
|
{% if column.is_ordered %}
|
|
|
|
<th {% render_attrs column.attrs.th class="" %}>
|
|
|
|
{% is_descending column.order_by as descending %}
|
|
|
|
{% if column.orderable %}
|
|
|
|
{% if descending %}
|
|
|
|
{% if column.is_ordered %}
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.desc_icon %}<i class="fa-solid fa-sort-down"></i>{% endblock table.desc_icon %}</span>
|
|
|
|
{% is_descending column.order_by as descending %}
|
|
|
|
|
|
|
|
{% if descending %}
|
|
|
|
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.desc_icon %}<i class="fa-solid fa-sort-down"></i>{% endblock table.desc_icon %}</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.asc_icon %}<i class="fa-solid fa-sort-up"></i>{% endblock table.asc_icon %}</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.asc_icon %}<i class="fa-solid fa-sort-up"></i>{% endblock table.asc_icon %}</span>
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
|
|
|
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"
|
|
|
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
|
|
|
hx-trigger="click"
|
|
|
|
|
|
|
|
hx-target="#results"
|
|
|
|
|
|
|
|
hx-swap="innerHTML"
|
|
|
|
|
|
|
|
hx-indicator=".progress"
|
|
|
|
|
|
|
|
style="cursor: pointer;">
|
|
|
|
|
|
|
|
{{ column.header }}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
|
|
|
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"
|
|
|
|
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
|
|
|
hx-trigger="click"
|
|
|
|
|
|
|
|
hx-target="#results"
|
|
|
|
|
|
|
|
hx-swap="innerHTML"
|
|
|
|
|
|
|
|
hx-indicator=".progress"
|
|
|
|
|
|
|
|
style="cursor: pointer;">
|
|
|
|
|
|
|
|
{{ column.header }}
|
|
|
|
{{ column.header }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
</th>
|
|
|
|
{{ column.header }}
|
|
|
|
{% endblock table.thead.th %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</th>
|
|
|
|
|
|
|
|
{% endblock table.thead.th %}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{% endblock table.thead.row %}
|
|
|
|
{% endblock table.thead.row %}
|
|
|
@ -65,144 +68,151 @@
|
|
|
|
has-background-info-light
|
|
|
|
has-background-info-light
|
|
|
|
{% endif %}">
|
|
|
|
{% endif %}">
|
|
|
|
{% for column, cell in row.items %}
|
|
|
|
{% for column, cell in row.items %}
|
|
|
|
{% block table.tbody.td %}
|
|
|
|
{% if column.name not in hide %}
|
|
|
|
{% if column.name == 'src' %}
|
|
|
|
{% block table.tbody.td %}
|
|
|
|
<td>
|
|
|
|
{% if column.name == 'src' %}
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
<td>
|
|
|
|
onclick="populateSearch('src', '{{ cell|escapejs }}')">
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
{% if row.cells.src == 'irc' %}
|
|
|
|
onclick="populateSearch('src', '{{ cell|escapejs }}')">
|
|
|
|
<span class="icon" data-tooltip="IRC">
|
|
|
|
{% if row.cells.src == 'irc' %}
|
|
|
|
<i class="fa-solid fa-hashtag" aria-hidden="true"></i>
|
|
|
|
<span class="icon" data-tooltip="IRC">
|
|
|
|
</span>
|
|
|
|
<i class="fa-solid fa-hashtag" aria-hidden="true"></i>
|
|
|
|
{% elif row.cells.src == 'dis' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Discord">
|
|
|
|
|
|
|
|
<i class="fa-brands fa-discord" aria-hidden="true"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'type' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('type', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{% if row.cells.type == 'msg' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Message">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-message"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'join' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Join">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-person-to-portal"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'part' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Part">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-person-from-portal"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'quit' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Quit">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-circle-xmark"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'kick' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Kick">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-user-slash"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'nick' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Nick">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-signature"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'mode' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Mode">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-gear"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'action' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Action">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-exclamation"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{{ row.cells.type }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'msg' %}
|
|
|
|
|
|
|
|
<td style="max-width: 10em" class="wrap">{{ row.cells.msg }}</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'host' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('host', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{{ cell }}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'nick' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<div class="nowrap-parent">
|
|
|
|
|
|
|
|
<div class="nowrap-child">
|
|
|
|
|
|
|
|
{% if row.cells.online is True %}
|
|
|
|
|
|
|
|
<span class="icon has-text-success has-tooltip-success" data-tooltip="Online">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% elif row.cells.online is False %}
|
|
|
|
{% elif row.cells.src == 'dis' %}
|
|
|
|
<span class="icon has-text-danger has-tooltip-danger" data-tooltip="Offline">
|
|
|
|
<span class="icon" data-tooltip="Discord">
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
<i class="fa-brands fa-discord" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
<span class="icon has-text-warning has-tooltip-warning" data-tooltip="Unknown">
|
|
|
|
</a>
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'ts' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<p>{{ row.cells.date }}</p>
|
|
|
|
|
|
|
|
<p>{{ row.cells.time }}</p>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'type' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('type', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{% if row.cells.type == 'msg' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Message">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-message"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'join' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Join">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-person-to-portal"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'part' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Part">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-person-from-portal"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'quit' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Quit">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-circle-xmark"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'kick' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Kick">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-user-slash"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'nick' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Nick">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-signature"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'mode' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Mode">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-gear"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.type == 'action' %}
|
|
|
|
|
|
|
|
<span class="icon" data-tooltip="Action">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-exclamation"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{{ row.cells.type }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<a class="nowrap-child has-text-link is-underlined" onclick="populateSearch('nick', '{{ cell|escapejs }}')">
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'msg' %}
|
|
|
|
|
|
|
|
<td style="max-width: 10em" class="wrap">{{ row.cells.msg }}</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'host' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('host', '{{ cell|escapejs }}')">
|
|
|
|
{{ cell }}
|
|
|
|
{{ cell }}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<div class="nowrap-child">
|
|
|
|
</td>
|
|
|
|
{% if row.cells.src == 'irc' %}
|
|
|
|
{% elif column.name == 'nick' %}
|
|
|
|
<button
|
|
|
|
<td>
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
<div class="nowrap-parent">
|
|
|
|
hx-post="{% url 'modal_drilldown' %}"
|
|
|
|
|
|
|
|
hx-vals='{"net": "{{ row.cells.net }}", "nick": "{{ row.cells.nick }}", "channel": "{{ row.cells.channel }}"}'
|
|
|
|
|
|
|
|
hx-target="#modals-here"
|
|
|
|
|
|
|
|
hx-trigger="click"
|
|
|
|
|
|
|
|
class="button is-small">
|
|
|
|
|
|
|
|
Information
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if row.cells.num_chans is not None %}
|
|
|
|
|
|
|
|
<div class="nowrap-child">
|
|
|
|
<div class="nowrap-child">
|
|
|
|
<span class="tag">
|
|
|
|
{% if row.cells.online is True %}
|
|
|
|
{{ row.cells.num_chans }}
|
|
|
|
<span class="icon has-text-success has-tooltip-success" data-tooltip="Online">
|
|
|
|
</span>
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% elif row.cells.online is False %}
|
|
|
|
|
|
|
|
<span class="icon has-text-danger has-tooltip-danger" data-tooltip="Offline">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<span class="icon has-text-warning has-tooltip-warning" data-tooltip="Unknown">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-circle"></i>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<a class="nowrap-child has-text-link is-underlined" onclick="populateSearch('nick', '{{ cell|escapejs }}')">
|
|
|
|
</div>
|
|
|
|
{{ cell }}
|
|
|
|
</td>
|
|
|
|
</a>
|
|
|
|
{% elif column.name == 'channel' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<div class="nowrap-parent">
|
|
|
|
|
|
|
|
<a class="nowrap-child has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('channel', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{{ cell }}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% if row.cells.num_users is not None %}
|
|
|
|
|
|
|
|
<div class="nowrap-child">
|
|
|
|
<div class="nowrap-child">
|
|
|
|
<span class="tag">
|
|
|
|
{% if row.cells.src == 'irc' %}
|
|
|
|
{{ row.cells.num_users }}
|
|
|
|
<button
|
|
|
|
</span>
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
|
|
|
|
hx-post="{% url 'modal_drilldown' %}"
|
|
|
|
|
|
|
|
hx-vals='{"net": "{{ row.cells.net }}", "nick": "{{ row.cells.nick }}", "channel": "{{ row.cells.channel }}"}'
|
|
|
|
|
|
|
|
hx-target="#modals-here"
|
|
|
|
|
|
|
|
hx-trigger="click"
|
|
|
|
|
|
|
|
class="button is-small">
|
|
|
|
|
|
|
|
Information
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if row.cells.num_chans is not None %}
|
|
|
|
</div>
|
|
|
|
<div class="nowrap-child">
|
|
|
|
</td>
|
|
|
|
<span class="tag">
|
|
|
|
{% elif column.name == 'net' %}
|
|
|
|
{{ row.cells.num_chans }}
|
|
|
|
<td>
|
|
|
|
</span>
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
</div>
|
|
|
|
onclick="populateSearch('net', '{{ cell|escapejs }}')">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'channel' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<div class="nowrap-parent">
|
|
|
|
|
|
|
|
<a class="nowrap-child has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('channel', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{{ cell }}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% if row.cells.num_users is not None %}
|
|
|
|
|
|
|
|
<div class="nowrap-child">
|
|
|
|
|
|
|
|
<span class="tag">
|
|
|
|
|
|
|
|
{{ row.cells.num_users }}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% elif column.name == 'net' %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a class="has-text-link is-underlined"
|
|
|
|
|
|
|
|
onclick="populateSearch('net', '{{ cell|escapejs }}')">
|
|
|
|
|
|
|
|
{{ cell }}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{{ cell }}
|
|
|
|
{{ cell }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% endblock table.tbody.td %}
|
|
|
|
<td>
|
|
|
|
{% endif %}
|
|
|
|
{{ cell }}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock table.tbody.td %}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{% endblock table.tbody.row %}
|
|
|
|
{% endblock table.tbody.row %}
|
|
|
@ -309,24 +319,4 @@
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock pagination %}
|
|
|
|
{% endblock pagination %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{# Update the tags in case the user changed the query #}
|
|
|
|
|
|
|
|
{# Check for focus and refocus #}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
var inputTags = document.getElementsByClassName('tags-input');
|
|
|
|
|
|
|
|
var inputBox = document.querySelector("[placeholder='Add query']");
|
|
|
|
|
|
|
|
var isFocused = (document.activeElement === inputBox);
|
|
|
|
|
|
|
|
for (index = 0; index < inputTags.length; index++) {
|
|
|
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
|
|
|
inputTags[0].outerHTML = '<input id="tags" class="input" type="tags" placeholder="Add query" value="{{ tags|joinsep:',' }}">';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
inputTags[index].remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// inputTags[0].outerHTML = '<input id="tags" class="input" type="tags" placeholder="Add query" value="{{ tags|joinsep:',' }}">';
|
|
|
|
|
|
|
|
setupTags();
|
|
|
|
|
|
|
|
var inputBox = document.querySelector("[placeholder='Add query']");
|
|
|
|
|
|
|
|
if (isFocused) {
|
|
|
|
|
|
|
|
inputBox.focus();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock table-wrapper %}
|
|
|
|
{% endblock table-wrapper %}
|