projects
/
matthijs
/
projects
/
xerxes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Add wrappers around the generic views, so we can add the @login_required decorator.
[matthijs/projects/xerxes.git]
/
templates
/
influences
/
character_detail.html
diff --git
a/templates/influences/character_detail.html
b/templates/influences/character_detail.html
index f5071c23b6532bf0d0a0b8ab03df094e280a528e..164310c31524e3d88d6e71569cc249ff61af3367 100644
(file)
--- a/
templates/influences/character_detail.html
+++ b/
templates/influences/character_detail.html
@@
-1,16
+1,16
@@
-{% load i18n %}
{% extends "base/base.html" %}
{% extends "base/base.html" %}
+{% load i18n %}
{% block content %}
<h2>{{ object.name }}</h2>
<h3>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h3>
<ul>
{% block content %}
<h2>{{ object.name }}</h2>
<h3>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h3>
<ul>
-{% for influence in object.influence_set.
objects.
all %}
- <li>
{{ influence }}
</li>
+{% for influence in object.influence_set.all %}
+ <li>
<a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</ul>
-<a href="
../../add/{{ object.id }
}">{% trans "Submit influence" %}</a>
+<a href="
{% url influences_add_influence_for_character object.id %
}">{% trans "Submit influence" %}</a>
{% endblock %}
{% endblock %}