~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlmaps/map_detail.html

include django_star_ratings

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
{% load threadedcommentstags %}
10
10
{% load wl_markdown %}
11
11
 
 
12
{% load ratings %}
12
13
{% block title %}{{ map.name }} - {{ block.super }}{% endblock %}
13
14
 
14
15
{% block extra_head %}
29
30
        });
30
31
});
31
32
</script>
 
33
 
32
34
{% endif %}
33
35
{% endblock %}
34
36
 
92
94
                        </tr>
93
95
                        <tr>
94
96
                                <td class="grey">Rating:</td>
95
 
                                <td>
 
97
                                <td>{% ratings map template_name='star_rating/rate.html' %}
 
98
                {% comment %}
96
99
                                        {{ map.rating|average_rating }} ({{ map.rating.votes }} Votes)
97
100
                                        {% if not user.is_anonymous %}
98
101
                                        <span id="vote"></span>
99
102
                                        {% else %}
100
103
                                        - Login to vote
101
104
                                        {% endif %}
 
105
                {% endcomment %}
102
106
                                </td>
103
107
                        </tr>
104
108
                        <tr>