Utilise markdown on ticket body descriptions. Note: Needs django.contrib.markup in the parent projects' settings.py file.

This commit is contained in:
Ross Poulton 2007-12-28 03:35:28 +00:00
parent aa343ecaa2
commit 20ede72e59

View File

@ -1,7 +1,6 @@
{% extends "helpdesk/base.html" %}
{% block helpdesk_title %}Helpdesk{% endblock %}
{% block helpdesk_head %}
{% block helpdesk_head %}{% load markup %}
<script src="http://media.jutda.com.au/helpdesk/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
@ -44,7 +43,7 @@
{% for followup in ticket.followup_set.all %}
<div class='followup'>
<div class='title'>{{ followup.title }} <span class='byline'>by {{ followup.user }} <span title='at {{ followup.date|date:"r" }}'>{{ followup.date|timesince }} ago</span>{% if not followup.public %} <span class='private'>(Private)</span>{% endif %}</span></div>
<p>{{ followup.comment|num_to_link }}</p>
{{ followup.comment|markdown|num_to_link }}
{% if followup.ticketchange_set.all %}<div class='changes'>
{% for change in followup.ticketchange_set.all %}
Changed {{ change.field }} from {{ change.old_value }} to {{ change.new_value }}.<br />