aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-07-21 16:47:34 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-21 16:47:34 +0200
commit9dd55f2eb942c7afa03935e9a18d19b028b392bc (patch)
treebd474e414f10c01c3779ee27a4dd3bc5f81e59be
parentfixing overlapping title on small screens (diff)
downloadnewspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.tar.gz
newspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.tar.bz2
newspipe-9dd55f2eb942c7afa03935e9a18d19b028b392bc.zip
improving article listing : default icon and title for article link
-rw-r--r--pyaggr3g470r/templates/home.html13
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>
bgstack15