mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-02 22:44:09 +03:00
35 lines
770 B
HTML
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 %} |