-
Notifications
You must be signed in to change notification settings - Fork 2
/
list.html
41 lines (39 loc) · 1.23 KB
/
list.html
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
<html>
<head>
<title>david glasser's portfolio</title>
<style type="text/css">
</style>
</head>
<body>
<p>I take <a href="http://flickr.com/photos/glasser/">photos</a>.
Sometimes other people use them for things. Here are some of
them:</p>
<ul>
{% for link in links %}
{% if admin or not link.hidden %}
<li>
{% if link.url %}<a href="{{ link.url|escape }}"
>{% endif %}{{ link.description|escape }}{% if link.url %}</a>{% endif %}
{% if admin %}
<a href="{% url DeleteHandler link.key.id %}">[x]</a>
{% if link.hidden %}
<a href="{% url ShowHandler link.key.id %}">[show]</a>
{% else %}
<a href="{% url HideHandler link.key.id %}">[hide]</a>
{% endif %}
{% endif %}
</li>
{% endif %}
{% endfor %}
{% if admin %}
<li>
<form action="{% url AddHandler %}" method="post">
url: <input type="text" name="url" />
description: <input type="text" name="description" />
<input type="submit" value="add" />
</form>
</li>
{% endif %}
</ul>
</body>
</html>