cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/users/user_detail.html
2013-12-17 16:27:18 +01:00

35 lines
770 B
HTML

{% raw %}{% extends "base.html" %}
{% load avatar_tags %}
{% load static %}
{% block title %}User: {{ object.username }}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2>{{ object.username }}</h2>
</div>
</div>
{% if object == request.user %}
<!-- Action buttons -->
<div class="row">
<div class="col-sm-12 ">
<a class="btn btn-primary" href="{% url 'users:update' %}">My Info</a>
<a class="btn btn-primary" href="{% url 'account_email' %}">E-Mail</a>
<a class="btn btn-info" href="{% url 'avatar_change' %}">Avatar</a>
<!-- Your Stuff: Custom user template urls -->
</div>
</div>
<!-- End Action buttons -->
{% endif %}
</div>
{% endblock content %}
{% endraw %}