Mercurial > personas_backend
changeset 150:59949d9a2281
The 'list' page now only links to the personas edit page for a persona, not the Admin one.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 04 Apr 2008 13:04:17 -0700 |
parents | 98257bc9841e |
children | 1a467807ee5f |
files | personasbackend/personas/templates/personas/list.html |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/personasbackend/personas/templates/personas/list.html Fri Apr 04 12:01:44 2008 -0700 +++ b/personasbackend/personas/templates/personas/list.html Fri Apr 04 13:04:17 2008 -0700 @@ -56,8 +56,9 @@ {% endif %} </div> <div class="persona-desc">{{ persona.description|safe }}</div> + {# TODO: This doesn't obey DRY; we should figure out a way around this. #} {% if perms.personas.can_publish %} - <a href="{% url django.contrib.admin.views.main.change_stage "personas","persona",persona.id %}">Edit</a> + <a href="{% url edit-persona persona.id %}">Edit</a> {% else %} {% ifequal persona.owner user %} <a href="{% url edit-persona persona.id %}">Edit</a>