{% extends 'base.html' %} {% block title %}MarkWiki - {{ title }}{% endblock %} {% block content %} {{ wiki|safe }}
{% endblock %} {% block actions %} {# When freezing, do not display the edit and delete links. #} {% if not config['FREEZING'] %}

Actions

Edit {# Home is special so don't allow it to be deleted. #} {% if page_path != 'Home' %} {# Allow users to get an error from the server if JavaScript is disabled. #} Delete {% endif %} {% if git != None %} History {% endif %}
{% endif %} {% endblock %} {% block onready %} $('#delete').click(function(event) { // Prevent the default so that the GET delete doesn't happen. event.preventDefault(); $('#delete_modal').modal('show'); }); $('#really_delete').click(function(event) { $('#delete_form').submit(); }); {% endblock %}