Commit 3ee9a1e6287652f5c525168d6fa9c197a2d32929
1 parent
31836b59
Exists in
master
and in
5 other branches
Adding breadcrumbs to user profile template #25
Showing
1 changed file
with
11 additions
and
11 deletions
Show diff stats
users/templates/users/profile.html
1 | -{% extends 'app/base.html' %} | 1 | +{% extends 'home_student.html' %} |
2 | 2 | ||
3 | {% load static i18n %} | 3 | {% load static i18n %} |
4 | {% load widget_tweaks %} | 4 | {% load widget_tweaks %} |
5 | +{% load django_bootstrap_breadcrumbs %} | ||
5 | 6 | ||
6 | {% block breadcrumbs %} | 7 | {% block breadcrumbs %} |
7 | - <ol class="breadcrumb"> | ||
8 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | ||
9 | - <li class="active">{% trans 'Profile' %}</li> | ||
10 | - </ol> | 8 | + |
9 | + {{ block.super }} | ||
10 | + {% breadcrumb 'Profile' 'users:profile' %} | ||
11 | + | ||
11 | {% endblock %} | 12 | {% endblock %} |
12 | 13 | ||
13 | {% block sidebar %} | 14 | {% block sidebar %} |
@@ -24,8 +25,9 @@ | @@ -24,8 +25,9 @@ | ||
24 | {% block content %} | 25 | {% block content %} |
25 | <div class="row"> | 26 | <div class="row"> |
26 | <div class="row"> | 27 | <div class="row"> |
27 | - <div class="col-lg-offset-4 col-lg-2"> | ||
28 | - <img src="" class="img-responsive center-block " alt="logo amadeus"> | 28 | + <div class="col-lg-offset-4 col-lg-2"> |
29 | + <img src="" class="img-responsive center-block " alt="logo amadeus"> | ||
30 | + </div> | ||
29 | </div> | 31 | </div> |
30 | </div> | 32 | </div> |
31 | <div class="row"> | 33 | <div class="row"> |
@@ -112,10 +114,10 @@ | @@ -112,10 +114,10 @@ | ||
112 | </div> | 114 | </div> |
113 | <footer class="card-footer"> | 115 | <footer class="card-footer"> |
114 | <div class="col-md-6"> | 116 | <div class="col-md-6"> |
115 | - <button class="btn btn-flat">Edit Profile</button> | 117 | + <a href="{% url 'users:update_profile' %}" class="btn btn-flat">{% trans 'Edit Profile' %}</a> |
116 | </div> | 118 | </div> |
117 | <div class="col-md-6"> | 119 | <div class="col-md-6"> |
118 | - <button class="btn btn-flat btn-danger pull-right">Delete Account</button> | 120 | + <button class="btn btn-flat btn-danger pull-right">{% trans 'Delete Account' %}</button> |
119 | </div> | 121 | </div> |
120 | </footer> | 122 | </footer> |
121 | 123 | ||
@@ -124,6 +126,4 @@ | @@ -124,6 +126,4 @@ | ||
124 | 126 | ||
125 | </div> | 127 | </div> |
126 | </div> | 128 | </div> |
127 | -</div> | ||
128 | - </div> | ||
129 | {% endblock %} | 129 | {% endblock %} |