Skip to content

Commit

Permalink
chg: [templates] Improved feed_list_per_categories template
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jan 17, 2025
1 parent eac7d9b commit 4893c65
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion newspipe/templates/feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2>
<tbody>
{% for article in articles %}
<tr>
<td><a href="{{ url_for("article.article_pub", article_id=article.id) }}">{{ article.title }}</a></td>
<td><a href="{{ url_for('article.article_pub', article_id=article.id) }}">{{ article.title }}</a></td>
<td>{{ article.date | datetime }}</td>
</tr>
{% endfor %}
Expand Down
38 changes: 20 additions & 18 deletions newspipe/templates/feed_list_per_categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@
<br />

<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>
<table id="table-feeds" class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>{{ _('Title') }}</th>
<th>{{ _('Site') }}</th>
<th>{{ _('Feed') }}</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 }}" rel="noopener noreferrer" target="_blank">{{ feed.site_link }}</a></td>
<td><a href="{{ feed.link }}" rel="noopener noreferrer" target="_blank">{{ feed.link }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>

0 comments on commit 4893c65

Please sign in to comment.