~alcinnz/Hearth

ref: bb4e369e919c008e989e5981397eceda6931b5f2 Hearth/tpl/bookmarks/index.html -rw-r--r-- 1.2 KiB
bb4e369e — Adrian Cochrane Add tagging & bookmark-editting support! 11 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
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8 />
  <title>⭐️{{ _["Favourites"] }}</title>
</head>
<body>
  <h1>⭐️{{ _["Favourites"] }}</h1>
  <aside>{% for tag in tags %}
    {% if tag.selected %}
      <strong>
        <a href="?{% for x in Q.tag %}{% if x != tag.label %}tag={{ x|urlencode }}&{% endif %}{% endfor %}"
            style="font-size: {{ tag.count }}em">{{ tag.label }}</a></strong>
    {% else %}
      <a href="?{{ Q|urlquery }}&tag={{ tag.label|urlencode }}"
        style="font-size: {{ tag.count }}em">{{ tag.label }} ({{ tag.count }})</a>
    {% endif %}
  {% endfor %}</aside>

  <dl>{% for fav in D.favs|sortByVisits %}
    {% if fav.tags|containsAll(Q.tag) %}
      <dt>
        <a href="{{ fav.href }}" title="{{ fav.title }}">{{ fav.label }}</a> |
        <a href="new.html?{{ fav|urlquery }}"
            title="{{ _['Edit page:'] }} {{ fav.label }}">✏️</a> |
        <form action="del" method="POST" style="display: inline">
          <button name="href" value="{{ fav.href }}"
                title="{{ _['Remove page:'] }} {{ fav.label }}">❌️</button>
        </form></dt>
      <dd>{{ fav.title }}</dd>
    {% endif %}
  {% endfor %}</dl>
</body>
</html>