cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/users/user_detail.html

35 lines
770 B
HTML
Raw Normal View History

2013-08-16 17:19:50 +04:00
{% raw %}{% extends "base.html" %}
2013-08-16 16:07:28 +04:00
{% load avatar_tags %}
{% load static %}
{% block title %}User: {{ object.username }}{% endblock %}
{% block content %}
<div class="container">
2013-08-18 17:24:23 +04:00
<div class="row">
<div class="col-sm-12">
2013-08-16 16:07:28 +04:00
2013-08-18 17:24:23 +04:00
<h2>{{ object.username }}</h2>
</div>
</div>
2013-08-16 16:07:28 +04:00
2013-08-18 17:24:23 +04:00
{% if object == request.user %}
<!-- Action buttons -->
<div class="row">
2013-08-16 16:07:28 +04:00
2013-08-18 17:24:23 +04:00
<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>
2013-08-16 16:07:28 +04:00
2013-08-18 17:24:23 +04:00
</div>
<!-- End Action buttons -->
{% endif %}
2013-08-16 16:07:28 +04:00
</div>
{% endblock content %}
2013-08-16 17:19:50 +04:00
{% endraw %}