Add Bootstrap layouts to profile view page

This commit is contained in:
Michael Hall 2018-03-01 17:16:04 -05:00
parent 742680620d
commit 8a63da154c

View file

@ -3,25 +3,32 @@
{% block content %} {% block content %}
{% if user %} {% if user %}
<div class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-6">
<div class="h2"><img class="align-bottom" border="1" src="{{request.user.profile.avatar}}" height="64px"/> {{user.user}}</div>
<h2>Profile: {{user.user}}</h2> <p>Full name: <strong>{{user.realname}}</strong></p>
Realname: {{user.realname}} <br> {% if user.weburl %}
<p>Homepage: {{user.weburl}}</p>
{% if user.weburl %} {% endif %}
Homepage: {{user.weburl}} <br> </div>
{% endif %} <div class="col-md-3">
{% if teams %}
{% if teams %} <h3>Teams</h3>
<h3>Teams</h3> <ul>
<ul> {% for t in teams %}
{% for t in teams %} <li>
<li> <a href="{% url 'show-team' t.id %}" title="Team page for {{t.name}}">{{t.name}}</a>
<a href="{% url 'show-team' t.id %}" title="Team page for {{t.name}}">{{t.name}}</a> </li>
</li> {% endfor %}
{% endfor %} </ul>
</ul> {% endif %}
{% endif %} </div>
</div>
</div>
{% else %} {% else %}