Skip to content

Commit

Permalink
chg: [templates] Truncate the title of the feeds in the table of arti…
Browse files Browse the repository at this point in the history
…cles.
  • Loading branch information
cedricbonhomme committed Jan 4, 2024
1 parent 9279f1a commit 6fbe02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newspipe/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ <h1><a href="{{ url_for('feed.form') }}">{{ _('Add some') }}</a>, {{ _('or') }}
{% if not feed_id %}
<td>
<img src="{{ url_for('icon.icon', url=feeds[article.source.id].icon_url) }}" width="16px">
<a href="{{ prefix() }}/article/redirect/{{ article.id}}" rel="noopener noreferrer" target="_blank">{{ article.source.title | safe }}</a>
<a href="{{ prefix() }}/article/redirect/{{ article.id}}" rel="noopener noreferrer" target="_blank" title="{{ article.source.title }}">{{ article.source.title | truncate(20, False, '…') }}</a>
</td>
{% endif %}
<td {%if filter_ == 'all' and article.readed == False %}style='font-weight:bold'{% endif %}>
<a data-bs-toggle="collapse" href="#collapse-{{ article.id}}" title="{{ article.title }}">{{ article.title | truncate(100, False, '…') }}</a>
<a data-bs-toggle="collapse" href="#collapse-{{ article.id}}" title="{{ article.title }}">{{ article.title | truncate(90, False, '…') }}</a>
<div class="collapse" id="collapse-{{ article.id}}">
<div class="card card-body col-md-10 overflow-auto">
{{ article.content | safe }}
Expand Down

0 comments on commit 6fbe02d

Please sign in to comment.