summaryrefslogtreecommitdiffstats
path: root/askbot/templates/user_profile/user_network.html
blob: ce13d5c4c96fd6f95299f036014ff62c64269d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "user_profile/user.html" %}
{% import "macros.html" as macros %}
<!-- user_network.html -->
{% block profilesection %}
    {% trans %}network{% endtrans %}
{% endblock %}
{% block usercontent %}
    {% if followed_users or followers %}
        {% if followers %}
            <h2>{% trans count=followers|length %}Followed by {{count}} person{% pluralize count %}Followed by {{count}} people{% endtrans %}</h2>
            {{ 
                macros.user_list(
                    followers,
                    karma_mode = settings.KARMA_MODE,
                    badges_mode = settings.BADGES_MODE
                )
            }}
        {% endif %}
        {% if followed_users %}
            <h2>{% trans count=followed_users|length %}Following {{count}} person{% pluralize count %}Following {{count}} people{% endtrans %}</h2>
            {{
                macros.user_list(
                    followed_users,
                    karma_mode = settings.KARMA_MODE,
                    badges_mode = settings.BADGES_MODE
                )
            }}
        {% endif %}
    {% else %}
        {% if request.user == view_user %}
            <p>{% trans %}Your network is empty. Would you like to follow someone? - Just visit their profiles and click "follow"{% endtrans %}</p>
        {% else %}
            <p>{% trans username = view_user.username|escape %}{{username}}'s network is empty{% endtrans %}</p>
        {% endif %}
    {% endif %}
{% endblock %}
<!-- end user_network.html -->