37 lines
811 B
HTML
37 lines
811 B
HTML
{% extends "base.html" %}
|
|
{% load avatar_tags %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}User: {{ object.username }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
|
|
<img src="{% avatar_url user %}">
|
|
|
|
{% if object.first_name and object.last_name %}
|
|
<h2>{{ object.first_name }} {{ object.last_name }} <i>({{ object.username }})</i></h2>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% if object == request.user %}
|
|
<!-- Action buttons -->
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
<a class="btn btn-primary" href="{% url 'profile:update' %}">{% trans 'Change Name' %}</a>
|
|
<a class="btn btn-primary mx-1" href="{% url 'avatar_change' %}">Change Avatar</a>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
{% endblock content %} |