{#  This template shows one member and all the details (that are ment for public) including a list of current jobs #}
{% load softhyphen_tags %}

<div class="media-object stack-for-small">
    <div class="media-object-section padding-bottom-2">
        <img src= "{{member.image.portrait.url}}" style="width:150px;">
    </div>
    <div class="media-object-section main-section padding-bottom-1"">
        {% if request.user.is_authenticated %}
            <a href="{% url 'admin:members_member_change' member.id %}">Profil bearbeiten</a>        
            <hr>
        {% endif %}
        <h1>{{ member.firstname }} {{ member.surname }}</h1>
        <p>Spitzname: {{ member.nickname }} </br>
        Mailaccount: {{ member.mailaccount }} </br>
        </p>
        {{ member.description|softhyphen|safe }}
        </p>
        {% if jobs %}
            Ehrenamtliche Tätigkeiten: </br>
            {% for jobm in jobs %}
                {{ jobm.job.name }}: {{ jobm.job_start|date }} - {{ jobm.job_end|date }} </br>
            {% endfor %}
        {% endif %}
    </div>
</div>
