aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-06-23 10:49:27 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-06-23 10:49:27 +0200
commit8cffb9fc14a4711f9eea42a5140c2aeba8921c82 (patch)
treee7e9eb99ca1ff7a0349bd0a02becd390bd93dbb4
parentfixed badges (diff)
downloadnewspipe-8cffb9fc14a4711f9eea42a5140c2aeba8921c82.tar.gz
newspipe-8cffb9fc14a4711f9eea42a5140c2aeba8921c82.tar.bz2
newspipe-8cffb9fc14a4711f9eea42a5140c2aeba8921c82.zip
chg: [layout] minor improvements to the home page.
-rw-r--r--newspipe/templates/home.html12
-rw-r--r--newspipe/templates/layout.html2
2 files changed, 6 insertions, 8 deletions
diff --git a/newspipe/templates/home.html b/newspipe/templates/home.html
index e0a4d3ca..c02256de 100644
--- a/newspipe/templates/home.html
+++ b/newspipe/templates/home.html
@@ -125,10 +125,10 @@
</div>
{% if articles | count != 0%}
<div class="table-responsive">
- <table class="table table-striped strict-table">
+ <table class="table table-striped table-sm">
<thead>
<tr>
- <th>
+ <th scope="col">
{% if feed_id %}
<a href="{{ url_for('article.mark_as', new_value='read', feed_id=feed_id) }}"><i class="fa fa-check-square-o" aria-hidden="true" title="{{ _('Mark this feed as read') }}"></i></a>
{% endif%}
@@ -143,7 +143,7 @@
<tbody>
{% for article in articles %}
<tr data-article="{{ article.id }}" data-feed="{{ article.feed_id }}">
- <td>
+ <th scope="row">
{% if article.like %}
<a href="#"><i class="fa fa-heart like" aria-hidden="true" title="{{ _('One of your favorites') }}"></i></a>
{% else %}
@@ -153,9 +153,8 @@
<a href="#"><i class="fa fa-square-o readed" aria-hidden="true" title="{{ _('Mark this article as unread') }}"></i></a>
{% else %}
<a href="#"><i class="fa fa-check-square-o readed" aria-hidden="true" title="{{ _('Mark this article as read') }}"></i></a>
- {% if filter_ == 'all' %}</b>{% endif %}
{% endif %}
- </td>
+ </th>
{% if not feed_id %}
<td class="d-none d-md-block">
<img src="{{ url_for('icon.icon', url=feeds[article.source.id].icon_url) }}" width="16px">
@@ -163,8 +162,7 @@
</td>
{% endif %}
<td {%if filter_ == 'all' and article.readed == False %}style='font-weight:bold'{% endif %}>
- <img src="{{ url_for('icon.icon', url=feeds[article.source.id].icon_url) }}" width="16px">
- <a href="/article/{{ article.id }}">{{ article.title | safe }}</a>
+ <a href="/article/{{ article.id }}" title="{{ article.title }}">{{ article.title | truncate(100, False, '...') }}</a>
</td>
<td class="date d-none d-lg-block">{{ article.date | datetime(format='short') }}</td>
</tr>
diff --git a/newspipe/templates/layout.html b/newspipe/templates/layout.html
index 4783e9d6..7d2b8c70 100644
--- a/newspipe/templates/layout.html
+++ b/newspipe/templates/layout.html
@@ -21,7 +21,7 @@
{% block menu %}
<nav class="navbar navbar-expand-lg navbar-dark bg-newspipe-blue">
<div class="container-fluid">
- <a class="navbar-brand" href="/">🗞&nbsp;Newspipe</a>
+ <a class="navbar-brand" href="/">Newspipe</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
bgstack15