summaryrefslogtreecommitdiff
path: root/templates/tree.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-24 11:52:05 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-24 11:52:05 +0100
commit5ba48b3b2536d29c3455dba7ce0126ffc9b2bcc8 (patch)
treea7166215a3d4b8c107d55330bec5c3895e731973 /templates/tree.html
parentcb285b65f5fc8c09b38f7166ee678303e94e2101 (diff)
try to produce restful URLs always
Diffstat (limited to 'templates/tree.html')
-rw-r--r--templates/tree.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/tree.html b/templates/tree.html
index f8d83e6..2a5045b 100644
--- a/templates/tree.html
+++ b/templates/tree.html
@@ -34,7 +34,7 @@ $(function() {
<div id="tree">
{% if name and render.up %}
{% if name.parent %}
- <a href="/name/id/{{name.parent.id}}">.. (up one level)</a>
+ <a href="{{name.parent.url}}">.. (up one level)</a>
{% else %}
<a href="/name">.. (up one level)</a>
{% endif %}
@@ -62,7 +62,7 @@ $(function() {
</div>
<div id="right">
<div id="headline">
-<a style="text-decoration: none" href="{% if name %}/name/id/{{name.id}}{% else %}/{% endif %}">{% if name %}{{name.shortname}}{% else %}{% endif %}</a>
+<a style="text-decoration: none" href="{% if name %}{{name.url}}{% else %}/{% endif %}">{% if name %}{{name.shortname}}{% else %}{% endif %}</a>
</div>
{% block content %}{% endblock %}
</div>