ail-framework/var/www/templates/crawler/crawler_splash/table_cookiejar.html
2024-09-06 14:45:11 +02:00

46 lines
1.6 KiB
HTML

<table id="{{table_id}}" class="table table-striped table-bordered">
<thead class="bg-dark text-white">
<tr>
<th class="bg-info text-white">Description</th>
<th class="bg-info text-white">Date</th>
<th class="bg-info text-white">UUID</th>
<th class="bg-info text-white">Level</th>
<th class="bg-info text-white">Org</th>
<th class="bg-info text-white">User</th>
</tr>
</thead>
<tbody style="font-size: 15px;">
{% for dict_cookiejar in all_cookiejar %}
<tr>
<td id="description-text">{{dict_cookiejar['description']}}</td>
<td>
{%if dict_cookiejar['date']%}
{{dict_cookiejar['date'][0:4]}}/{{dict_cookiejar['date'][4:6]}}/{{dict_cookiejar['date'][6:8]}}
{%endif%}
</td>
<td>
<a target="_blank" href="{{ url_for('crawler_splash.crawler_cookiejar_show') }}?uuid={{ dict_cookiejar['uuid'] }}">
{{ dict_cookiejar['uuid']}}
</a>
</td>
<td>
{% if 'level' in dict_cookiejar %}
{% if dict_cookiejar['level'] == 0 %}
User
{% elif dict_cookiejar['level'] == 1 %}
Global
{% elif dict_cookiejar['level'] == 2 %}
Community
{% endif %}
{% endif %}
</td>
<td>
{% if dict_cookiejar['org'] %}
{{dict_cookiejar['org_name']}}<br>{{ dict_cookiejar['org'] }}
{% endif %}
</td>
<td>{{dict_cookiejar['user']}}</td>
</tr>
{% endfor %}
</tbody>
</table>