summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--releng/models.py6
-rw-r--r--templates/public/download.html6
2 files changed, 12 insertions, 0 deletions
diff --git a/releng/models.py b/releng/models.py
index c591bc0..b3ab1a3 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -1,8 +1,10 @@
+import markdown
from urllib import urlencode
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models.signals import pre_save
+from django.utils.safestring import mark_safe
from main.utils import set_created_field
@@ -139,6 +141,10 @@ class Release(models.Model):
query['xt'] = "urn:btih:%s" % self.torrent_infohash
return "magnet:?%s" % urlencode(query, doseq=True)
+ def info_html(self):
+ return mark_safe(markdown.markdown(
+ self.info, safe_mode=True, enable_attributes=False))
+
for model in (Iso, Test, Release):
pre_save.connect(set_created_field, sender=model,
diff --git a/templates/public/download.html b/templates/public/download.html
index 5733ee9..5f6f2d0 100644
--- a/templates/public/download.html
+++ b/templates/public/download.html
@@ -32,6 +32,12 @@
</li>
</ul>
+ {% if release.info %}
+ <h3>Release Notes</h3>
+
+ <div class="article-content">{{ release.info_html }}</div>
+ {% endif %}
+
<h3>Existing Arch Users</h3>
<p>If you are an existing Arch user, there is no need to download a new ISO