summaryrefslogtreecommitdiffstats
path: root/templates/news
AgeCommit message (Collapse)AuthorFilesLines
2011-03-21Fix news preview with CSRF and AJAX in Django 1.2.5Dan McGee1-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Move most inline JS into script fileDan McGee1-12/+1
We're getting to the point where we are starting to have a good chunk of JS scattered about. Centralize a lot of it for maintenance and performance purposes. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Fix news permission checking in templatesDan McGee2-6/+6
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 McGee2-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-15Ensure consistent date formatting everywhereDan McGee2-2/+2
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-08Paginate the news list viewDan McGee2-0/+26
This view was getting huge with ~500 items on it, and most people are not really interested in seeing every single news item. Use the drop in pagination and add some controls that still allow browsing to any page of the list. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Get news markdown formatting working everywhereDan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Format all news items using markdownDan McGee2-8/+35
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-06-12Remove action when submitting to same URLDan McGee2-2/+2
It looks like the `action="."` business was screwing up some browsers, notably lynx and links. We don't need it as the default is to submit to the same page anyway, so kill this gunk and see if it fixes a login CSRF issue. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05Updates for CSRF protection in Django 1.2.XDan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned News PagesThayer Williams4-63/+103
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-02Fix up HTML titles on a lot of pagesDan McGee3-0/+3
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-02-18News: make add/edit page form largerDan McGee1-1/+1
Make both the title entry and the text area a lot larger so it is easier to add and edit news items from the developer side. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10updated news list templateIsmael Carnales1-3/+5
- added title - added permission checks
2009-05-25Mark news as safe so people can enter HTML.Dusty Phillips1-1/+1
2008-10-06port news to django 1.0 using generic viewsDusty Phillips3-14/+8
2008-07-30fix permission bug on newsDusty Phillips1-1/+1
2007-12-30Added alternating row coloration to make it easier to relate left to righteliott1-1/+1
side items.
2007-11-03Initial import for public release...eliott4-0/+81
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!