mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [showDomain] empty father field
This commit is contained in:
parent
3482a85410
commit
bbee3691b3
1 changed files with 19 additions and 17 deletions
|
@ -106,26 +106,28 @@
|
||||||
<td>Last Origin:</td>
|
<td>Last Origin:</td>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if dict_domain['father']=='manual' or dict_domain['father']=='auto' %}
|
{% if dict_domain %}
|
||||||
|
{% if dict_domain['father']=='manual' or dict_domain['father']=='auto' %}
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td><span class="badge badge-dark">{{ dict_domain['father'] }}</span></td>
|
||||||
|
</tr>
|
||||||
|
{%else%}
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td><i class="far fa-file"></i></td>
|
||||||
<td><span class="badge badge-dark">{{ dict_domain['father'] }}</span></td>
|
<td>
|
||||||
|
<a class="badge" target="_blank" href="{{ url_for('objects_item.showItem', id=dict_domain['father']['item_father']) }}" />{{ dict_domain['father']['item_father'] }}</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{%else%}
|
{% if dict_domain['father']['domain_father'] %}
|
||||||
<tr>
|
<td><i class="fab fa-html5"></i></td>
|
||||||
<td><i class="far fa-file"></i></td>
|
<td>
|
||||||
<td>
|
<a class="badge" target="_blank" href="{{ url_for('crawler_splash.showDomain', domain=dict_domain['father']['domain_father']) }}" />{{ dict_domain['father']['domain_father'] }}</a>
|
||||||
<a class="badge" target="_blank" href="{{ url_for('objects_item.showItem', id=dict_domain['father']['item_father']) }}" />{{ dict_domain['father']['item_father'] }}</a>
|
</td>
|
||||||
</td>
|
{%endif%}
|
||||||
</tr>
|
<p>
|
||||||
{% if dict_domain['father']['domain_father'] %}
|
{%endif%}
|
||||||
<td><i class="fab fa-html5"></i></td>
|
|
||||||
<td>
|
|
||||||
<a class="badge" target="_blank" href="{{ url_for('crawler_splash.showDomain', domain=dict_domain['father']['domain_father']) }}" />{{ dict_domain['father']['domain_father'] }}</a>
|
|
||||||
</td>
|
|
||||||
{%endif%}
|
{%endif%}
|
||||||
<p>
|
|
||||||
{%endif%}
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue