diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-07-21 16:47:34 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-07-21 16:47:34 +0200 |
commit | 9dd55f2eb942c7afa03935e9a18d19b028b392bc (patch) | |
tree | bd474e414f10c01c3779ee27a4dd3bc5f81e59be /pyaggr3g470r | |
parent | fixing overlapping title on small screens (diff) | |
download | newspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.tar.gz newspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.tar.bz2 newspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.zip |
improving article listing : default icon and title for article link
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 42a5d498..1577bd32 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -105,11 +105,16 @@ {% if filter_ == 'all' %}</b>{% endif %} {% endif %} </td> - <td><a class="open-article" href="/article/redirect/{{ article.id}}" target="_blank"> - {% if article.source.icon %}<img src="{{ url_for('feed.icon', feed_id=article.feed_id) }}" width="16px" />{% endif %} - <span class="hidden-xs">{{ article.source.title|safe }}</span></a></td> + <td> + <a class="open-article" href="{{ url_for("article.redirect_to_article", article_id=article.id)}}" target="_blank" title="{{article.link}}" alt="{{article.link}}"> + {% if article.source.icon %} + <img src="{{ url_for('feed.icon', feed_id=article.feed_id) }}" width="16px" /> + {% else %} + <span class="glyphicon glyphicon-ban-circle" title='{{_("No icon found for this feed")}}' alt='{{_("No icon found for this feed")}}'></span> + {% endif %} + <span class="hidden-xs">{{ article.source.title|safe }}</span></a></td> <td {%if filter_ == 'all' and article.readed == False %}style='font-weight:bold'{% endif %}> - <a href="/article/{{ article.id }}">{{ article.title|safe }}</a> + <a href="{{ url_for("article.article", article_id=article.id) }}">{{ article.title|safe }}</a> </td> <td class="date">{{ article.date|datetime }}</a></td> </tr> |