* Make the index template use the character_block and influence_block templates, to reduce duplicate template code.
{% extends "base/base.html" %}
-{% load i18n %}
{% block content %}
-
-<h1>{{ object.name }}</h1>
-{% ifequal object.status "N" %}
-<em>{% trans "This character was not yet approved by the SLs" %}</em>
-{% else %}
-<em>{% trans "This character is approved by the SLs" %}</em>
-{% endifequal %}
-<h2>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h2>
-<ul>
-{% for influence in object.influence_set.all %}
- <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
-{% endfor %}
-</ul>
-
-<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>
-
+{% include "influences/character_detail_block.html" %}
{% endblock %}
--- /dev/null
+{% load i18n %}
+<h1>{{ object.name }}</h1>
+{% ifequal object.status "N" %}
+<em>{% trans "This character was not yet approved by the SLs" %}</em>
+{% else %}
+<em>{% trans "This character is approved by the SLs" %}</em>
+{% endifequal %}
+<h2>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h2>
+<ul>
+{% for influence in object.influence_set.all %}
+ <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
+{% endfor %}
+</ul>
+
+<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>
{% extends "base/base.html" %}
-{% load i18n %}
{% block content %}
-
-<h1>{% trans "Your characters"%}</h1>
-{% if object_list %}
- <ul>
- {% for character in object_list %}
- <li><a href="{% url influences_character_detail character.id %}">{{ character.name }}</a></li>
- {% endfor %}
- </ul>
-{% else %}
- <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
-{% endif %}
-
-<p><a href="{% url influences_add_character %}">{% trans "Add character" %}</a></p>
-
+{% include "influences/character_list_block.html" %}
{% endblock %}
--- /dev/null
+{% load i18n %}
+
+<h1>{% trans "Your characters"%}</h1>
+{% if object_list %}
+ <ul>
+ {% for character in object_list %}
+ <li><a href="{% url influences_character_detail character.id %}">{{ character.name }}</a></li>
+ {% endfor %}
+ </ul>
+{% else %}
+ <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
+{% endif %}
+
+<p><a href="{% url influences_add_character %}">{% trans "Add character" %}</a></p>
+
{% extends "base/base.html" %}
-{% load i18n %}
{% block content %}
-<h1>{% trans "Your characters"%}</h1>
-{% if characters %}
- <ul>
- {% for character in characters %}
- <li><a href="{% url influences_character_detail character.id %}">{{ character.name }}</a></li>
- {% endfor %}
- </ul>
-{% else %}
- <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
-{% endif %}
-
-<p><a href="{% url influences_add_character %}">{% trans "Add character" %}</a></p>
+{% with characters as object_list %}
+{% include "influences/character_list_block.html" %}
+{% endwith %}
{% if characters %}
-<h1>{% trans "Your influences" %}</h1>
-{% if influences %}
- <ul>
- {% for influence in influences %}
- <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
- {% endfor %}
- </ul>
-{% else %}
- <p>{% trans "No influences yet." %}</p>
+{% with influences as object_list %}
+{% include "influences/influence_list_block.html" %}
+{% endwith %}
{% endif %}
-<p><a href="{% url influences_add_influence %}">{% trans "Submit influence" %}</a></p>
-{% endif %}
{% endblock %}
{% load i18n %}
{% block content %}
-
-<h1>{{ object.summary }}</h1>
-<table>
-<tr><td>{% trans "Contact" %}:</td><td>{{ object.contact }}</td></tr>
-<tr><td>{% trans "Character" %}:</td><td><a href="{% url influences_character_detail object.character.id %}">{{ object.character }}</a></td></tr>
-{% if object.longterm %}
-<tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
-{% endif %}
-</table>
-<p>{{ object.description }}</p>
+{% include "influences/influence_detail_block.html" %}
{% endblock %}
--- /dev/null
+{% load i18n %}
+
+<h1>{{ object.summary }}</h1>
+<table>
+<tr><td>{% trans "Contact" %}:</td><td>{{ object.contact }}</td></tr>
+<tr><td>{% trans "Character" %}:</td><td><a href="{% url influences_character_detail object.character.id %}">{{ object.character }}</a></td></tr>
+{% if object.longterm %}
+<tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
+{% endif %}
+</table>
+<p>{{ object.description }}</p>
--- /dev/null
+{% extends "base/base.html" %}
+
+{% block content %}
+{% include "influences/influence_list_block.html" %}
+{% endblock %}
--- /dev/null
+{% load i18n %}
+
+<h1>{% trans "Your influences" %}</h1>
+{% if object_list %}
+ <ul>
+ {% for influence in object_list %}
+ <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
+ {% endfor %}
+ </ul>
+{% else %}
+ <p>{% trans "No influences yet." %}</p>
+{% endif %}
+
+<p><a href="{% url influences_add_influence %}">{% trans "Submit influence" %}</a></p>