Commit Graph

9 Commits

Author SHA1 Message Date
Dan McGee
00e9dce4db Fix news permission checking in templates
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-24 11:12:31 -05:00
Dan McGee
41dc37c812 Update news views to use slug instead of ID
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:02 -05:00
Dan McGee
b084936ad9 Ensure consistent date formatting everywhere
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-09-14 18:47:12 -05:00
Dan McGee
7b73c0ff8c Get news markdown formatting working everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:33:03 -05:00
Dan McGee
ad162d74db Format all news items using markdown
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-07-06 20:16:10 -05:00
Thayer Williams
3945c52682 Redesigned News Pages
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Dan McGee
8777ccf001 Fix up HTML titles on a lot of pages
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>
2010-03-01 21:43:52 -06:00
Dusty Phillips
95f999b264 Mark news as safe so people can enter HTML. 2009-05-24 20:30:05 -04:00
eliott
39a548fd26 Initial import for public release...
Special Note
  Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!
2007-11-03 03:45:10 -04:00