~cedric/newspipe

ref: 3ab30e029adedbd7e652552c6da1eafbeadb40cd newspipe/newspipe/templates/bookmarks.html -rw-r--r-- 3.2 KiB
3ab30e02Cédric Bonhomme chg: [ui] improved article_pub template. 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="row">
        <div class="col-6">
            {{ pagination.info }}
        </div>
        <div class="col-6 text-right">
            {% if current_user.is_authenticated %}
                <a class="text-muted" href="{{ url_for('bookmarks.list_') }}">all</a>&nbsp;&nbsp;
                <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'private' }}">private</a>&nbsp;&nbsp;
                <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'public' }}">public</a>&nbsp;&nbsp;
                <a class="text-muted" href="{{ url_for('bookmarks.list_') + 'unread' }}">unread</a>
            {% endif %}
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-6">
            {% if tag %}
                <i class="fa fa-tag" aria-hidden="true"></i>&nbsp;&nbsp;{{ tag }}
            {% endif %}
            {% if query %}
                {% if tag %}<br />{% endif %}
                <i class="fa fa-search" aria-hidden="true"></i>&nbsp;&nbsp;{{ query }}
            {% endif %}
        </div>
        <div class="col-6 text-right pull-right">
            <form method="GET">
                <div class="form-row align-items-center pull-right">
                    <div class="col-auto">
                        <div class="input-group">
                            <input type="text" name="query" class="form-control" />
                            <div class="input-group-append">
                                <button type="submit" class="btn btn-primary">Search</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-8">
            {{ pagination.links }}
        </div>
    </div>

    <div class="row">
        <div class="col">
            <ul class="list-group">
            {% for bookmark in bookmarks %}
                <li class="list-group-item">
                    <a href="#">
                        <h4 class="list-group-item-heading">
                            <a href="{{ bookmark.href }}">{{ bookmark.title }}</a>
                        </h4>
                        <p class="list-group-item-text">
                            <div class="text-muted">{{ bookmark.description }}</div>
                            <div>{% for tag in bookmark.tags %}<a href="{{ url_for('bookmarks.list_', tag=tag.text) }}">{{ tag.text }}</a>&nbsp;{% endfor %}</div>
                            {{ bookmark.time | datetime }}
                            {% if current_user.is_authenticated %}
                                <a class="text-muted" href="{{ url_for('bookmark.form', bookmark_id=bookmark.id) }}">edit</a>
                                <a class="text-muted" href="{{ url_for('bookmark.delete', bookmark_id=bookmark.id) }}">delete</a>
                            {% endif %}
                        </p>
                    </a>
                </li>
            {% endfor %}
            </ul>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-md-8">
            {{ pagination.links }}
        </div>
    </div>
</div><!-- /.container -->
{% endblock %}