aboutsummaryrefslogtreecommitdiff
path: root/newspipe/templates/feed_list_simple.html
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe/templates/feed_list_simple.html')
-rw-r--r--newspipe/templates/feed_list_simple.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/newspipe/templates/feed_list_simple.html b/newspipe/templates/feed_list_simple.html
new file mode 100644
index 00000000..5f692a53
--- /dev/null
+++ b/newspipe/templates/feed_list_simple.html
@@ -0,0 +1,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" />&nbsp;{% endif %} <a href="{{ url_for('feed.feed_pub', feed_id=feed.id) }}">{{ feed.title }}</a></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 %}
bgstack15