blob: 3e04ad7ed1f17517da94fe96949c77256916b3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{% if feeds | length != 0 %}
<div class="table-responsive">
<table id="table-feeds" class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>{{ _('Title') }}</th>
<th>{{ _('Site') }}</th>
</tr>
</thead>
<tbody>
{% for feed in feeds %}
<tr>
<td>{{ loop.index }}</td>
<td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" /> {% endif %}{{ feed.title }}</td>
<td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script>
$(document).ready(function() {
$('#table-feeds').DataTable( {
responsive: true,
columnDefs: [
{
bSortable: false,
targets: [0]
}
]
});
});
</script>
{% endif %}
|