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