summaryrefslogtreecommitdiff
path: root/templates/news
AgeCommit message (Collapse)Author
2011-12-05Convert to and enable staticfiles contrib applicationDan McGee
This moves our site static files into the sitestatic directory if they are shared resources, and also moves a handful of things (such as the artwork logos) into application-specific static/ directories. This allows the staticfiles contrib app to work after a few settings tweaks, a run of collectstatic, and massaging the hardcoded '/media/' prefix out of our templates. Django 1.4 is going to make this a lot easier to move things to a CDN and provides better template tags; for now this is setting the stage before we can move to that. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-21Fix news preview with CSRF and AJAX in Django 1.2.5release_2011-03-21Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Move most inline JS into script filerelease_2010-09-30Dan McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-14Ensure consistent date formatting everywhererelease_2010-09-14Dan McGee
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 viewrelease_2010-09-08Dan McGee
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-06Get news markdown formatting working everywhereDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06Format all news items using markdownDan McGee
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-11Remove action when submitting to same URLDan McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned News PagesThayer Williams
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Fix up HTML titles on a lot of pagesDan McGee
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-17News: make add/edit page form largerDan McGee
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-09updated news list templateIsmael Carnales
- added title - added permission checks
2009-05-24Mark news as safe so people can enter HTML.Dusty Phillips
2008-10-05port news to django 1.0 using generic viewsDusty Phillips
2008-07-30fix permission bug on newsDusty Phillips
2007-12-30Added alternating row coloration to make it easier to relate left to righteliott
side items.
2007-11-03Initial import for public release...eliott
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!