summaryrefslogtreecommitdiff
path: root/templates
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
parentcb285b65f5fc8c09b38f7166ee678303e94e2101 (diff)
try to produce restful URLs always
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/tree.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html
index a212afb..742e5ab 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -63,7 +63,7 @@
{% if name %}
<div style="float: left;" class="navlist toolbar">
<ul>
- <li class="button"><a class="tip" title="This is the full name of the group. This is the name that will be exposed to applications." href="/name/id/{{name.id}}">{{ name }}</a></li>
+ <li class="button"><a class="tip" title="This is the full name of the group. This is the name that will be exposed to applications." href="{{name.url}}">{{ name }}</a></li>
</ul>
</div>
{% endif %}
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>