{% extends "layouts/default" %}
{% block content %}
<form class="pmmsg">
    <div class="newpm">
        <div class="newpm-to">To: <input type="text" name="uname" placeholder="username" value="{{ uname }}"/></div>
        <div class="newpm-body"><textarea name="body" rows="2"></textarea></div>
        <div class="newpm-send"><input type="submit" value="OK"/></div>
        </div>
</form>
{% if not msgs.isEmpty() %}
<ul id="private-messages">
    {% for msg in msgs %}
    <li class="msg">
        <div class="msg-cont">
        	<div class="msg-header">
                @<a href="/{{ msg.user.name }}/">{{ msg.user.name }}</a>:
                <div class="msg-avatar">
                	<a href="/{{ msg.user.name }}/">
                    	<img src="{{ msg.user.avatar }}" alt="{{ msg.user.name }}"/>
                	</a>
            	</div>
            	<div class="msg-ts">{{ msg.created | prettyTime }}</div>
            </div>
            <div class="msg-txt">{{ msg | formatMessage }}</div>
        </div>
    </li>
    {% endfor %}
</ul>
{% endif %}
{% endblock %}
{% block "column" %}
{% include "views/partial/usercolumn" %}
{% endblock %}