User profile template fix

This commit is contained in:
Skia 2016-08-20 13:57:27 +02:00
parent 84efcd87e7
commit 62745e89fa
3 changed files with 62 additions and 46 deletions

View File

@ -182,11 +182,18 @@ tbody>tr:hover {
overflow: auto;
}
#user_profile h4 { border-bottom: 1px solid grey; max-width: 60%; }
#user_profile #left_column {
max-width: 59%;
}
#user_profile #right_column {
max-width: 40%;
float: right;
font-style: italic;
}
#user_profile #pictures {
max-width: 250px;
max-height: 300px;
float: right;
font-style: italic;
margin: 0px auto;
}
#user_profile #nickname {
font-style: italic;

View File

@ -10,11 +10,15 @@
{% macro user_mini_profile(user) %}
<div id="user_profile">
<div id="right_column">
<div id="pictures">
{% if user.profile_pict %}
<img src="{{ user.profile_pict.get_download_url() }}" alt="{% trans %}Profile{% endtrans %}" />
{% endif %}
</div>
</div>
<div id="left_column">
<p>{{ user.get_full_name() }}</p>
{% if user.nick_name %}
<p id="nickname">&laquo; {{ user.nick_name }} &raquo;</p>
@ -27,4 +31,5 @@
{% trans %}Promo: {% endtrans %}{{ user.promo }}</p>
{% endif %}
</div>
</div>
{%- endmacro %}

View File

@ -8,12 +8,15 @@
<div id="user_profile_container">
<div id="user_profile">
<div id="right_column">
<div id="pictures">
{% if profile.profile_pict %}
<img src="{{ profile.profile_pict.get_download_url() }}" alt="{% trans %}Profile{% endtrans %}" />
{% endif %}
<p><em>{{ profile.quote }}</em></p>
</div>
<p id="quote"><em>{{ profile.quote }}</em></p>
</div>
<div id="left_column">
<h4>{{ profile.get_full_name() }}</h4>
{% if profile.nick_name %}
<p id="nickname">&laquo; {{ profile.nick_name }} &raquo;</p>
@ -34,6 +37,7 @@
{% endif %}
</div>
</div>
</div>
{% if user.membership.filter(end_date=None).exists() or user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) %}
{# if the user is member of a club, he can view the subscription state #}