~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/wlmaps/map_detail.html

  • Committer: franku
  • Date: 2016-07-02 12:38:06 UTC
  • mfrom: (404.2.56 widelands)
  • Revision ID: somal@arcor.de-20160702123806-q69u3d48s1prrxds
merged the django1_8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
{% load custom_date %}
7
7
{% load wlmaps_extra %}
8
 
{% load wlprofile %}
 
8
{% load wlprofile_extras %}
9
9
{% load threadedcommentstags %}
10
10
{% load wl_markdown %}
11
11
 
24
24
        maxScore: 10,
25
25
        messages: ["","","","","","","","","",""],
26
26
        fn: function(e, score) {
27
 
            $.post("{% url wlmaps_rate map.slug %}",{ vote: score });
 
27
            $.post("{% url 'wlmaps_rate' map.slug %}",{ vote: score });
28
28
            }
29
29
        });
30
30
});
36
36
<h1>Map: {{ map.name }}</h1>
37
37
<div class="blogEntry" style="padding-bottom: 3em">
38
38
        <div>
39
 
                <a href="{% url wlmaps_index %}">Maps</a> &#187; {{ map.name }}
 
39
                <a href="{% url 'wlmaps_index' %}">Maps</a> &#187; {{ map.name }}
40
40
        </div>
41
41
                <img class="posLeft map" style="float: left" src="{{ MEDIA_URL }}{{ map.minimap.url }}" alt="{{ map.name }}" />
42
42
        <div>
43
43
                <h3>Description:</h3>
44
 
                <p>{{ map.descr|wl_markdown:"escape" }}</p>
 
44
                <p>{{ map.descr|wl_markdown:"bleachit" }}</p>
45
45
        </div>
46
46
        {% if map.hint %}
47
47
        <div style="clear: left;">
48
48
                <h3>Hint:</h3>
49
 
                <p>{{ map.hint|wl_markdown:"escape" }}</p>
 
49
                <p>{{ map.hint|wl_markdown:"bleachit" }}</p>
50
50
        </div>
51
51
        {% endif %}
52
52
 
53
53
        <div style="clear: left;">
54
54
                <h3>Comment by uploader:</h3>
55
 
                <div>{{ map.uploader_comment|wl_markdown:"remove" }}</div>
 
55
                <div>{{ map.uploader_comment|wl_markdown:"bleachit" }}</div>
56
56
                {% if user == map.uploader %}
57
 
                        <a class="button posLeft" href="{% url wlmaps_edit_comment map.slug %}">
 
57
                        <a class="button posLeft" href="{% url 'wlmaps_edit_comment' map.slug %}">
58
58
                                <img alt="Edit" title="Edit your comment" class="middle" src="{{ MEDIA_URL }}forum/img/edit.png">
59
59
                                <span class="middle">Edit</span>
60
60
                        </a>
114
114
        </div>
115
115
        
116
116
        <div style="margin: 1em 0px 1em 0px">
117
 
        <a class="button posLeft" href="{% url wlmaps_download map.slug %}">
 
117
        <a class="button posLeft" href="{% url 'wlmaps_download' map.slug %}">
118
118
                <img src="{{ MEDIA_URL }}img/download.png" alt ="" class="middle" />
119
119
                <span class="middle">Download this map</span>
120
120
        </a>