diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-09 23:16:05 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-09 23:16:05 +0100 |
commit | 3ab6290d4994b33cdbf831523938cdb18a13bf49 (patch) | |
tree | 685980f53aaa3eda4e27ddfc7032554f55528e57 /newspipe/templates/popular.html | |
parent | Improved method to detect current version of the Newspipe instance. (diff) | |
download | newspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.tar.gz newspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.tar.bz2 newspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.zip |
Refactoring the backend.
Diffstat (limited to 'newspipe/templates/popular.html')
-rw-r--r-- | newspipe/templates/popular.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/newspipe/templates/popular.html b/newspipe/templates/popular.html new file mode 100644 index 00000000..a80cee57 --- /dev/null +++ b/newspipe/templates/popular.html @@ -0,0 +1,27 @@ +{% extends "layout.html" %} +{% block content %} +<div class="container"> + <div class="row"> + <div class="col-md-12"> + <h1>{{ _('Popular feeds') }}</h1> + <a href="{{ url_for('popular', nb_days='all') }}">all</a> ‧ <a href="{{ url_for('popular', nb_days=365) }}">last year</a> ‧ <a href="{{ url_for('popular', nb_days=31) }}">last month</a> + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <ul class="list-group"> + {% for feed in popular %} + <li class="list-group-item d-flex justify-content-between align-items-center"> + <a href="{{ feed[0] }}">{{ feed[0] }}</a> + <a href="{{ url_for('feed.bookmarklet', url=feed[0]) }}" > + <span class="fa fa-plus text-muted" aria-hidden="true" title="follow this feed"></span> + <span class="text-muted">{{ _('add this feed') }}</span> + </a> + <span class="badge badge-primary badge-pill">{{ feed[1] }}</span> + </li> + {% endfor %} + </ul> + </div> + </div> +</div><!-- /.container --> +{% endblock %} |