Commit 3ee9a1e6287652f5c525168d6fa9c197a2d32929

Authored by Ailson da Cruz
1 parent 31836b59

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 3 {% load static i18n %}
4 4 {% load widget_tweaks %}
  5 +{% load django_bootstrap_breadcrumbs %}
5 6  
6 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 12 {% endblock %}
12 13  
13 14 {% block sidebar %}
... ... @@ -24,8 +25,9 @@
24 25 {% block content %}
25 26 <div class="row">
26 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 31 </div>
30 32 </div>
31 33 <div class="row">
... ... @@ -112,10 +114,10 @@
112 114 </div>
113 115 <footer class="card-footer">
114 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 118 </div>
117 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 121 </div>
120 122 </footer>
121 123  
... ... @@ -124,6 +126,4 @@
124 126  
125 127 </div>
126 128 </div>
127   -</div>
128   - </div>
129 129 {% endblock %}
... ...