quick add of row/container-fluid for margins - prob. should remove table too one day
This commit is contained in:
@@ -1,32 +1,36 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
<h3>Show All People</h3>
|
|
||||||
|
|
||||||
<table id="person_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
<div class="row container-fluid">
|
||||||
<thead>
|
<h3>Show All People</h3>
|
||||||
<tr class="table-primary"><th>Tag</th><th>Faces Matched</th><th>Firstname(s)</th><th>Surname</th><th></th></tr>
|
|
||||||
</thead>
|
<table id="person_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
||||||
<tbody>
|
<thead>
|
||||||
{% for person in persons %}
|
<tr class="table-primary"><th>Tag</th><th>Faces Matched</th><th>Firstname(s)</th><th>Surname</th><th></th></tr>
|
||||||
<tr><td><a href="{{url_for('person', id=person.id )}}">{{person.tag}}</td>
|
</thead>
|
||||||
<td>
|
<tbody>
|
||||||
{% if person.num_matches %}
|
{% for person in persons %}
|
||||||
<a href="javascript:st=$('#search_term').val(); document.location.href='/search/AI:{{person.tag}}'">
|
<tr><td><a href="{{url_for('person', id=person.id )}}">{{person.tag}}</td>
|
||||||
{{person.num_matches}} matches</a>
|
<td>
|
||||||
{% else %}
|
{% if person.num_matches %}
|
||||||
No matches
|
<a href="javascript:st=$('#search_term').val(); document.location.href='/search/AI:{{person.tag}}'">
|
||||||
{% endif %}
|
{{person.num_matches}} matches</a>
|
||||||
</td>
|
{% else %}
|
||||||
<td>{{person.firstname}}</td>
|
No matches
|
||||||
<td>{{person.surname}}</td>
|
{% endif %}
|
||||||
<td>
|
</td>
|
||||||
{% for refimg in person.refimg %}
|
<td>{{person.firstname}}</td>
|
||||||
<img height=24 src="data:image/jpeg;base64,{{refimg.thumbnail}}";</img>
|
<td>{{person.surname}}</td>
|
||||||
{% endfor %}
|
<td>
|
||||||
</td>
|
{% for refimg in person.refimg %}
|
||||||
</tr>
|
<img height=24 src="data:image/jpeg;base64,{{refimg.thumbnail}}";</img>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock main_content %}
|
{% endblock main_content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user