~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlprofile/view_profile.html

  • Committer: franku
  • Date: 2018-11-15 20:39:35 UTC
  • mfrom: (504.1.1 widelands)
  • Revision ID: somal@arcor.de-20181115203935-2j4ip880mi4b3mzv
redesign the website to show tabs for some pages and give an additional header section with important links

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        {{ block.super }}
14
14
{% endblock %}
15
15
 
16
 
{% block content %}
17
 
<div class="posRight small">
18
 
        {% ifequal user profile.user %}
19
 
                <a class="invertedColor" href="{% url 'profile_edit' %}">Edit Profile</a>
20
 
        {% endifequal %}
21
 
</div>
22
 
<h1>{% if not profile.deleted %}
 
16
{% block profile %}class="active"{% endblock %}
 
17
 
 
18
{% block content_header %}
 
19
        <h1>{% if not profile.deleted %}
23
20
                {{ profile.user.username }}'s
24
21
        {% else %}
25
22
                Deleted User
26
23
        {% endif %}
27
24
        Profile
28
 
</h1>
 
25
        </h1>
 
26
{% endblock %}
29
27
 
 
28
{% block content_main %}
30
29
<div class="blogEntry">
31
30
        {% if not profile.deleted %}
32
31
                <table>
37
36
                                {% endif %}
38
37
                                </td>
39
38
                                <td>
40
 
                                {% ifnotequal user profile.user %}
41
 
                                        <button onclick="window.location.href='{% url 'messages_compose_to' profile.user %}';">
42
 
                                                <img src="{{ MEDIA_URL }}forum/img/send_pm.png" alt ="" class="middle" />
43
 
                                                <span class="middle">{% trans "Send PM" %}</span>
44
 
                                        </button>
45
 
                                {% endifnotequal %}
 
39
 
46
40
                                </td>
47
41
                        </tr>
48
42
                        <tr>
92
86
</div>
93
87
 
94
88
{% endblock %}
 
89