aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 14:38:46 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 14:38:46 +0100
commitc7cb022db471d75b2daba6c72e51abdc033f6ea7 (patch)
tree672e482534de6483799f04fca927aae03ace0292 /src/web/templates
parentRemoved tag cloud from the public feed page. (diff)
downloadnewspipe-c7cb022db471d75b2daba6c72e51abdc033f6ea7.tar.gz
newspipe-c7cb022db471d75b2daba6c72e51abdc033f6ea7.tar.bz2
newspipe-c7cb022db471d75b2daba6c72e51abdc033f6ea7.zip
Proposition for the new stream page.
Diffstat (limited to 'src/web/templates')
-rw-r--r--src/web/templates/user_stream.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/web/templates/user_stream.html b/src/web/templates/user_stream.html
new file mode 100644
index 00000000..3c20b241
--- /dev/null
+++ b/src/web/templates/user_stream.html
@@ -0,0 +1,51 @@
+{% extends "layout.html" %}
+{% block content %}
+<div class="container">
+ {% if category %}
+ <div class="row">
+ <div class="col-md-8 offset-md-1">
+ <p class="lead">Articles from the category <a href="{{ url_for('user.profile_public', nickname=nickname, category_id=category.id) }}">{{ category.name }}</a></p>
+ </div>
+ </div>
+ {% endif %}
+
+ <div class="row">
+ <div class="col-md-8 offset-md-1">
+ {{ pagination.info }}
+ </div>
+ </div>
+
+ <div class="row">
+ <div class="col-md-8 offset-md-1">
+ {{ pagination.links }}
+ </div>
+ </div>
+
+ <div class="table-responsive">
+ <table id="table-feeds" class="table table-striped">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{ _('Title') }}</th>
+ <th>{{ _('Published at') }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for article in articles %}
+ <tr>
+ <td>{{ loop.index }}</td>
+ <td><a href="{{ url_for('article.article_pub', article_id=article.id) }}">{{ article.title }}</a></td>
+ <td>{{ article.date }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+
+ <div class="row">
+ <div class="col-md-8 offset-md-1">
+ {{ pagination.links }}
+ </div>
+ </div>
+</div><!-- /.container -->
+{% endblock %}
bgstack15