Commit 738ceb6ee00a1f03e4f99e2efb3861b451214bfa

Authored by ailsoncgt
1 parent e874a320

Fixing error in image #184

Showing 1 changed file with 18 additions and 15 deletions   Show diff stats
users/templates/list_users.html
1 1 {% extends 'home.html' %}
2 2  
3   -{% load i18n pagination django_bootstrap_breadcrumbs static %}
  3 +{% load i18n pagination django_bootstrap_breadcrumbs permission_tags static %}
4 4  
5 5 {% block breadcrumbs %}
6 6  
... ... @@ -9,20 +9,23 @@
9 9  
10 10 {% endblock %}
11 11  
12   -{% block sidebar %}
13   - <div class="panel panel-primary navigation">
14   - <div class="panel-heading">
15   - <h5>{% trans 'Menu' %}</h5>
16   - </div>
17   - <div class="panel-body">
18   - <ul class="nav nav-pills nav-stacked">
19   - <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li>
20   - <li><a href="{% url 'users:create' %}">{% trans 'Add user' %}</a></li>
21   - <li><a href="javascript:void(0)">{% trans 'Send email' %}</a></li>
22   - </ul>
  12 +{% if user|has_role:'system_admin' %}
  13 + {% block sidebar %}
  14 + <div class="panel panel-primary navigation">
  15 + <div class="panel-heading">
  16 + <h5>{% trans 'Menu' %}</h5>
  17 + </div>
  18 + <div class="panel-body">
  19 + <ul class="nav nav-pills nav-stacked">
  20 + <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li>
  21 + <li><a href="{% url 'users:create' %}">{% trans 'Add user' %}</a></li>
  22 + <li><a href="javascript:void(0)">{% trans 'Send email' %}</a></li>
  23 + </ul>
  24 + </div>
23 25 </div>
24   - </div>
25   -{% endblock %}
  26 + {% endblock %}
  27 +{% endif %}
  28 +
26 29  
27 30 {% block content %}
28 31 {% if messages %}
... ... @@ -54,7 +57,7 @@
54 57 <div class="panel-body">
55 58 <div class="col-md-4">
56 59 {% if acc.image %}
57   - <div style="background-image: url('{{ acc.image.url }}'); background-size: 100%" alt="photoUser" class="img-circle img-responsive img-list-user"></div>
  60 + <div style="background-image: url('{{ acc.image.url }}'); background-size: 100% 100%; background-repeat: no-repeat;" alt="photoUser" class="img-circle img-responsive img-list-user"></div>
58 61 {% else %}
59 62 {% if acc.gender == 'M' %}
60 63 <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user">
... ...