#176: Adjusted user slide. Show only relevant information in a nice and clear layout.

This commit is contained in:
Emanuel Schuetze 2012-11-21 21:05:56 +01:00
parent c5a2f896e2
commit f3c865ee3c
2 changed files with 11 additions and 29 deletions

View File

@ -6,38 +6,16 @@
{% block title %}{{ block.super }} - {{ title }}{% endblock %} {% block title %}{{ block.super }} - {{ title }}{% endblock %}
{% block content %} {% block content %}
<div class="item_fullscreen">{{ shown_user }}
<div id='sidebar'> <span>
<div class='box'> {% if shown_user.committee %}
<p><strong>{% trans "Groups" %}</strong><br /> <p>{{ shown_user.committee }}</p>
{% endif %}
<p>
{% if shown_user.groups.all %} {% if shown_user.groups.all %}
{{ shown_user.groups.all|join:", " }} {{ shown_user.groups.all|join:", " }}
{% else %}
{% trans "The participant is not member of any group." %}
{% endif %} {% endif %}
</p> </p>
{% if shown_user.get_gender_display %} </span>
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
{% endif %}
{% if shown_user.get_type_display %}
<p><strong>{% trans "Type" %}</strong><br />{{ shown_user.get_type_display }}</p>
{% endif %}
{% if shown_user.committee %}
<p><strong>{% trans "Committee" %}</strong><br />{{ shown_user.committee }}</p>
{% endif %}
</div> </div>
</div>
<h1>{{ shown_user }}</h1>
<p>{{ shown_user.email }}</p>
{% endblock %}
{% block scrollcontent %}
<p>
<div class="text">{{ shown_user.about_me|linebreaks }}</div>
</p>
{% endblock %} {% endblock %}

View File

@ -155,6 +155,10 @@ body{
font-weight:bold; font-weight:bold;
text-align: center; text-align: center;
} }
.item_fullscreen span
{
font-size: 50%; font-weight:normal;
}
/* items in a list*/ /* items in a list*/
.itemlist li .itemlist li