49 lines
1.9 KiB
HTML
49 lines
1.9 KiB
HTML
|
{% extends "layout.html" %}
|
||
|
{% block title %} | Bookmark List{% endblock %}
|
||
|
{% block body %}
|
||
|
<div class="list">
|
||
|
<ul class="bookmarks">
|
||
|
{% for b in blist %}
|
||
|
<li class="bookmark" id="{{b.short}}" name="{{b.short}}"><p>
|
||
|
<p class="title"><a href="{{b.url}}">{{b.title}}</a></p>
|
||
|
<p class="date">{{b.created_at.strftime('%Y-%m-%d')}}</p>
|
||
|
<p class="menu">
|
||
|
<a href="/{{b.short}}/edit">Edit</a>
|
||
|
{% if b.deleted == False %}
|
||
|
<a href="/{{b.short}}/u/delete?redirect={{loc}}">Delete</a>
|
||
|
{% else %}
|
||
|
<a href="/{{b.short}}/u/restore?redirect={{loc}}">Restore</a>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if b.private == False %}
|
||
|
<a href="/{{b.short}}/u/private?redirect={{loc}}&anchor={{b.short}}">Make Private</a>
|
||
|
{% else %}
|
||
|
<a href="/{{b.short}}/u/public?redirect={{loc}}&anchor={{b.short}}">Make Public</a>
|
||
|
{% endif %}
|
||
|
{% if not b.archived_image %}
|
||
|
<a href="/{{b.short}}/u/image?redirect={{loc}}&anchor={{b.short}}">Get Image</a>
|
||
|
{% else %}
|
||
|
<a href="/{{b.short}}/image">View Image</a>
|
||
|
{% endif %}
|
||
|
{% if b.archived_text %}
|
||
|
<a href="/{{b.short}}/text">View Text</a>
|
||
|
{% else %}
|
||
|
<a href="/{{b.short}}/u/text?redirect={{loc}}&anchor={{b.short}}">Get Text</a>
|
||
|
{% endif %}
|
||
|
</p>
|
||
|
<p class="note">{{b.note}}</p>
|
||
|
{% if b.tags %}
|
||
|
<p class="tags">Tags:
|
||
|
{% for t in b.tags %}
|
||
|
<a href="/tag/{{t}}">{{t}}</a>
|
||
|
{% endfor %}</p>
|
||
|
{% endif %}
|
||
|
<p class="menu">[ <a href="http://amd.im/{{b.short}}">{{b.short}}</a>,
|
||
|
Short Factor: {{b.factor|round(4)}}, Views: {{b.hits}},
|
||
|
|
||
|
]</p>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{% endblock %}
|