-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaccount.html
More file actions
33 lines (31 loc) · 962 Bytes
/
account.html
File metadata and controls
33 lines (31 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "web/base.html" %}
{% load gravatar_tags %}
{% load i18n %}
{% block title %}Account{% endblock %}
{% block content %}
<div class="green">
<h1>Account</h1>
<div class="row-fluid well">
<div class="span3">
<h3>
{{ user.username }}
<img src="{% gravatar_url user.email %}" class="img-circle" height="64" width="64">
</h3>
</div>
<div class="span9">
{{ user.first_name }} {{ user.last_name }}
{{ user.email }}
</div>
</div>
<form method="post" action="{% url 'rest_framework:logout' %}">
{% csrf_token %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button type="submit" class="btn btn-link">{% trans 'Log Out' %}</button>
{% if user.is_staff %}
<a href="{% url 'admin:index' %}" class="btn btn-link">Admin</a>
{% endif %}
</form>
</div>
{% endblock %}