summaryrefslogtreecommitdiffstats
path: root/templates/news/view.html
AgeCommit message (Collapse)AuthorFilesLines
2012-10-27Remove usages of 'django.contrib.markup'Dan McGee1-2/+1
Switch to the news model being able to spit out the HTML version of the content, and don't use the markup contrib module. This is deprecated as of Django 1.5 so we can move off it now to save trouble down the road when it is fully removed. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-26Enable safe mode for markdown parsingDan McGee1-1/+1
Although we don't allow unauthenticated users to post content, we should still cover our bases here and ensure people can't inject stuff into the production website via an inadvertent XSS. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-18More structured data markup for news articlesDan McGee1-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-15Add structured data markup from schema.org to news itemsDan McGee1-2/+12
We use the 'Article' type since this isn't print media. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Fix news permission checking in templatesDan McGee1-2/+2
We were still looking at the permissions on the main application; these need to be updated to point at the news application instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Update news views to use slug instead of IDDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-15Ensure consistent date formatting everywhereDan McGee1-1/+1
Set up a default DATE_FORMAT in settings.py and use it everywhere we do the '|date' template filter rather than hardcoding the value in the template. This also fixes a regression with news date/time now that we changed the field to store both date and time. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Get news markdown formatting working everywhereDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Format all news items using markdownDan McGee1-2/+3
Implements FS#13741. A preview function is also added so working with news items is easier to make sure you get the formatting right. This will result in some older news items looking a bit weird if they didn't put linebreaks in all the right places, we can fix a few of these as we notice them. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned News PagesThayer Williams1-10/+19
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-02Fix up HTML titles on a lot of pagesDan McGee1-0/+1
We didn't include them on many pages, or the ones we did weren't always useful. Also try to keep the boilerplate to a minimum so you can see the important bits in the title. 'Arch Linux - ' comes first in all titles, and from there it can be filled in with something useful. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-05-25Mark news as safe so people can enter HTML.Dusty Phillips1-1/+1
2007-11-03Initial import for public release...eliott1-0/+13
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!