Fix some minor issues

This commit is contained in:
Daniel Greenfeld 2013-08-18 15:24:23 +02:00
parent 1946ba7256
commit e98855723b
3 changed files with 22 additions and 27 deletions

View File

@ -147,7 +147,7 @@ DJANGO_APPS = (
THIRD_PARTY_APPS = (
'south', # Database migration helpers:
'crispy_forms', # Form layouts
# 'avatar', # for user avatars
'avatar', # for user avatars
)
# Apps specific for this project go here.

View File

@ -26,7 +26,7 @@ urlpatterns = patterns('',
url(r'^accounts/', include('allauth.urls')),
# Uncomment the next line to enable avatars
#url(r'^avatar/', include('avatar.urls')),
url(r'^avatar/', include('avatar.urls')),
# Your stuff: custom urls go here

View File

@ -7,34 +7,29 @@
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-3">
<h2>{{ object.username }}
</h2>
<p>{{ object.tagline }}</p>
{% if object == request.user %}
<!-- Action buttons -->
<div class="well">
<div class="row">
<div class="col-6">
<a class="btn btn-primary btn-block" href="{% url 'users:update' %}">My Info</a>
<a class="btn btn-primary btn-block" href="{% url 'account_email' %}">E-Mail</a>
</div>
<div class="col-6">
<a class="btn btn-info btn-block" href="">Avatar</a>
</div>
</div>
</div>
<!-- End Action buttons -->
{% endif %}
<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 %}