summaryrefslogtreecommitdiff
path: root/qutebrowser/html/bookmarks.html
blob: 5107ad3b06d18d42ce454794e2e717f92863081a (plain)
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
{% extends "styled.html" %}

{% block style %}
{{super()}}
h1 {
    margin-bottom: 10px;
}

.url a {
    color: #444;
}

th {
    text-align: left;
}

.qmarks .name {
    padding-left: 5px;
}

.empty-msg {
    background-color: #f8f8f8;
    color: #444;
    display: inline-block;
    text-align: center;
    width: 100%;
}
{% endblock %}

{% block content %}

<h1>Quickmarks</h1>

{% if quickmarks|length %}
<table class="qmarks">
    <tbody>
    {% for name, url in quickmarks %}
    <tr>
        <td class="name"><a href="{{url}}">{{name}}</a></td>
        <td class="url"><a href="{{url}}">{{url}}</a></td>
    </tr>
    {% endfor %}
    </tbody>
</table>
{% else %}
<span class="empty-msg">You have no quickmarks</span>
{% endif %}

<h1 id="bookmarks">Bookmarks</h1>

{% if bookmarks|length %}
<table class="bmarks">
    <tbody>
    {% for url, title in bookmarks %}
    <tr>
        <td class="name"><a href="{{url}}">{{title | default(url, true)}}</a></td>
        <td class="url"><a href="{{url}}">{{url}}</a></td>
    </tr>
    {% endfor %}
    </tbody>
</table>
{% else %}
<span class="empty-msg">You have no bookmarks</span>
{% endif %}

{% endblock %}