user_godfathers.jinja 1.04 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
10
11
{% extends "core/base.jinja" %}
{% from "core/macros.jinja" import user_link_with_pict %}

{% block title %}
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s godfathers{% endtrans %}
{% endblock %}

{% block content %}
    <h4>{% trans %}Godfathers{% endtrans %}</h4>
    <ul>
        {% for u in profile.godfathers.all() %}
Skia's avatar
Skia committed
12
13
            <li> <a href="{{ url("core:user_godfathers", user_id=u.id) }}" class="mini_profile_link" >
                {{ u.get_mini_item()|safe }} </a> </li>
Skia's avatar
Skia committed
14
15
16
17
18
        {% endfor %}
    </ul>
    <h4>{% trans %}Godchildren{% endtrans %}</h4>
    <ul>
        {% for u in profile.godchildren.all() %}
Skia's avatar
Skia committed
19
20
            <li> <a href="{{ url("core:user_godfathers", user_id=u.id) }}" class="mini_profile_link" >
                {{ u.get_mini_item()|safe }} </a> </li>
Skia's avatar
Skia committed
21
22
23
24
25
26
27
28
29
30
31
        {% endfor %}
    </ul>
    {% if profile == user %}
    <form action="" method="post">
        {% csrf_token %}
        {{ form.as_p() }}
        <p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
    </form>
    {% endif %}
{% endblock %}