~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlmaps/index.html

  • Committer: franku
  • Date: 2018-11-19 17:19:29 UTC
  • mfrom: (502.1.6 django_ratings)
  • Revision ID: somal@arcor.de-20181119171929-zclpax3wz59lnu5l
replaced djangoratings with django-star-rating

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
{% load wlmaps_extra %}
9
9
{% load threadedcommentstags %}
10
10
{% load pagination_tags %}
 
11
{% load ratings %}
 
12
{% load ratings_old %}
11
13
 
12
14
{% block content_header %}
13
15
        <h1>Maps</h1>
55
57
                                        </tr>
56
58
                                        <tr>
57
59
                                                <td class="grey">Rating:</td>
58
 
                                                <td>{{ map.rating|average_rating }} ({{ map.rating.votes }} Votes)</td>
 
60
                                                <td>
 
61
                                                        {% ratings map read_only template_name='star_rating/average.html' %}
 
62
                                                        {{ map.rating|average_rating }} ({{ map.rating.votes }} Votes)</td>
59
63
                                                <td class="spacer"></td>
60
64
                                                {% get_comment_count for map as ccount %}
61
65
                                                <td class="grey">Comments:</td><td>{{ ccount }}</td>