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 96e2c209f3903ce8300e5a2c29f944007726eb67..164310c31524e3d88d6e71569cc249ff61af3367 100644
(file)
--- a/
templates/influences/character_detail.html
+++ b/
templates/influences/character_detail.html
@@
-1,10
+1,16
@@
+{% extends "base/base.html" %}
{% load i18n %}
{% load i18n %}
+
+{% block content %}
+
<h2>{{ object.name }}</h2>
<h3>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h3>
<ul>
<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="/influences/character/{{ object.id }}/addinfluence">{% trans "Submit influence" %}</a>
+<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>
+
+{% endblock %}