aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/home.html13
-rw-r--r--pyaggr3g470r/templates/layout.html7
2 files changed, 12 insertions, 8 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>
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index c2c0c07e..93d36096 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -27,10 +27,9 @@
</button>
<a class="navbar-brand" href="{{ url_for("home") }}">pyAggr3g470r</a>
{% if head_titles %}
- {% for head_title in head_titles %}
- <span class="navbar-brand"> - </span>
- <span class="navbar-brand">{{ head_title }}</span>
- {% endfor %}
+ <p class="navbar-text" style="max-height: 20px; overflow: hidden">
+ {{ " - ".join(head_titles) }}
+ </p>
{% endif %}
</div>
bgstack15