fix
This commit is contained in:
parent
6dc54aaae7
commit
54b427ef91
Binary file not shown.
@ -12,8 +12,8 @@
|
|||||||
<div class="solid_banner_inner">
|
<div class="solid_banner_inner">
|
||||||
<h3>Profil użytkownika</h3>
|
<h3>Profil użytkownika</h3>
|
||||||
<h5>{{ name }}</h5><p><br></p>
|
<h5>{{ name }}</h5><p><br></p>
|
||||||
<p><SPAN STYLE="font-size:16.0pt">Średnia Ocena: <strong>{{ocena}}</SPAN></strong></p>
|
<p><SPAN STYLE="font-size:16.0pt">Średnia Ocena: <strong>{{ocena_2}}</SPAN></strong></p>
|
||||||
<strong> 0
|
<strong> 1
|
||||||
<img src="{% static "color\ff0000.png"%}" height="20" width="30"/>
|
<img src="{% static "color\ff0000.png"%}" height="20" width="30"/>
|
||||||
{% if ocena > 9 %}
|
{% if ocena > 9 %}
|
||||||
<img src="{% static "color\ff3200.png"%}" height="20" width="30"/>
|
<img src="{% static "color\ff3200.png"%}" height="20" width="30"/>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<img src="{% static "color\00ff00.png"%}" height="20" width="30"/>
|
<img src="{% static "color\00ff00.png"%}" height="20" width="30"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{% static "color\C0C0C0.png"%}" height="20" width="30"/>
|
<img src="{% static "color\C0C0C0.png"%}" height="20" width="30"/>
|
||||||
{% endif %} 100 </strong>
|
{% endif %} 10 </strong>
|
||||||
{% if user.email %}
|
{% if user.email %}
|
||||||
<p></p><a href="{{ name }}/add_comment"><button type="button" class="btn btn-primary pull-right">Oceń Użytkownika</button></a>
|
<p></p><a href="{{ name }}/add_comment"><button type="button" class="btn btn-primary pull-right">Oceń Użytkownika</button></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -458,11 +458,13 @@ def user_profile(request, user_name):
|
|||||||
ocena = int (ocena)
|
ocena = int (ocena)
|
||||||
else:
|
else:
|
||||||
ocena = 50
|
ocena = 50
|
||||||
|
ocena_2 = ocena/10
|
||||||
context = {
|
context = {
|
||||||
'all_product': all_product,
|
'all_product': all_product,
|
||||||
'all_oceny': oceny,
|
'all_oceny': oceny,
|
||||||
'ocena': ocena,
|
'ocena': ocena,
|
||||||
'name': user_prof.email,
|
'name': user_prof.email,
|
||||||
|
'ocena_2': ocena_2,
|
||||||
}
|
}
|
||||||
return HttpResponse(template.render(context, request))
|
return HttpResponse(template.render(context, request))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user