Commit Graph

12 Commits

Author SHA1 Message Date
Dan McGee
943ef2e8e4 Convert to and enable staticfiles contrib application
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-12-05 23:06:10 -06:00
Dan McGee
b9c6451f88 Fix news preview with CSRF and AJAX in Django 1.2.5
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-21 13:47:43 -05:00
Dan McGee
3682fb285b Move most inline JS into script file
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-30 13:15:20 -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
Dan McGee
b3059dd3e8 Remove action when submitting to same URL
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-11 17:29:46 -05:00
Dan McGee
bad2825fab Updates for CSRF protection in Django 1.2.X
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05 12:58:31 -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
Dan McGee
548ed9dc75 News: make add/edit page form larger
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>
2010-02-17 22:22:21 -06:00
Dusty Phillips
a00f85e133 port news to django 1.0 using generic views 2008-10-05 21:06:00 -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