~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/wiki/edit.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:
1
1
{% extends 'wiki/base.html' %}
2
2
{% load i18n %}
3
 
{% load wlimages %}
 
3
{% load wlimages_extras %}
4
4
 
5
5
{% block title %}
6
6
{% trans "Editing" %} {{ article.title }} - {{ block.super }}
18
18
                $("#id_preview").click(function(){ 
19
19
                        // Activate preview
20
20
                        $("#preview").html("<h3>Preview</h3>\n<hr>\n<div class=\"wiki_article\" id=\"content_preview\">Loading...</div>\n<hr>");
21
 
                        $("#content_preview").load( "{% url wiki_preview %}", 
 
21
                        $("#content_preview").load( "{% url 'wiki_preview' %}", 
22
22
                                {"body": $("#id_content").val()});
23
23
                })
24
24
 
27
27
                $("#id_diff").click(function(){ 
28
28
                        // Activate preview
29
29
                        $("#diff").html("<h3>Diff</h3>\n<hr>\n<div id=\"content_diff\">Loading...</div>\n<hr>");
30
 
                        $("#content_diff").load( "{% url wiki_preview_diff %}", 
 
30
                        $("#content_diff").load( "{% url 'wiki_preview_diff' %}", 
31
31
                                {"body": $("#id_content").val(), "article": {{ object_id }} });
32
32
                })
33
33
        {%endifequal%}
39
39
{% block content %}
40
40
{% if not new_article %} 
41
41
<div class="posRight small">
42
 
        <a href="{% url wiki_article article.title %}" class="invertedColor">{% trans "Back to article" %}</a>
 
42
        <a href="{% url 'wiki_article' article.title %}" class="invertedColor">{% trans "Back to article" %}</a>
43
43
        |
44
 
        <a href="{% url wiki_article_history article.title %}" class="invertedColor">{% trans "Editing history" %}</a>
 
44
        <a href="{% url 'wiki_article_history' article.title %}" class="invertedColor">{% trans "Editing history" %}</a>
45
45
</div>
46
46
{% endif %}
47
47
<h1>{% trans "Editing" %} {{ article.title }}</h1>