summaryrefslogtreecommitdiffstats
path: root/news
AgeCommit message (Collapse)AuthorFilesLines
2010-09-21Auto-populate slug on news item creationDan McGee1-2/+16
And make sure it is unique through a few queries and some magic. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Update news views to use slug instead of IDDan McGee2-8/+13
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add migrations to populate the news slug and make it non-nullDan McGee3-1/+145
These should get us all set to have more useful URLs for the news items. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add news slug fieldDan McGee2-0/+67
Initially, this needs to allow null so that we can add in slugs for all of our old news items. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-20Update news permission required stringDan McGee1-4/+4
When moving the news model and updating the content type, I forgot to update these strings to reflect the new permission name. Whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-15Spruce up news admin viewDan McGee2-4/+4
Add last modified date as a column, and fix up some other small display, sorting, and ordering issues. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-15Add last modified date to newsDan McGee2-1/+76
This will come in handy when determining whether resources are out of date, such as our news RSS feed. Also bump the Date fields to DateTime fields for sake of sorting and if we have more than one news item on the same date. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Show news in adminDan McGee1-0/+10
And be able to do filtering/sorting/etc. with it. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Paginate the news list viewDan McGee1-0/+1
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-09-08Move news model to an appropriate placeDan McGee3-1/+86
Never would have guessed it should actually be in news/models.py. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Put news under south controlDan McGee3-0/+21
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03Use direct_to_template in all remaining possible placesDan McGee1-4/+3
Rather than the need to include RequestContext() calls directly, we can just use direct_to_template to do all the work for us. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-07Format all news items using markdownDan McGee1-0/+12
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-03Defer loading news content when listing news itemsDan McGee1-1/+2
No need to pull back some 500 news articles when we just want the basics of title, date, and author. Speaking of author, we might as well load that at the same time too. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-22Add 'never_cache' decorator in a bunch of placesDan McGee1-0/+4
Now that we cache everything, we need to ensure anyone doing edits and such gets the live data and not some cached version that was already updated and is now stale. Add the never_cache decorator to any of the CUD screens as well as a few others that might benefit from always being regenerated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Remove AutoUserMiddlewareDan McGee1-3/+13
This was having some serious effects on caching as we would always have to access the user in the session, marking every page with a "Vary: Cookie" header. This is the start of stamping that out. The way we get the user for news item creation is now more similar to that from the todo lists, but not quite. That should be adjusted to be more like the news item creation. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-18News: make add/edit page form largerDan McGee1-4/+4
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-10Remove archweb prefix from all importsDan McGee1-1/+1
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-1/+1
2008-10-06drop some unused importsDusty Phillips1-3/+0
2008-10-06port news to django 1.0 using generic viewsDusty Phillips1-65/+28
2008-07-30fix permission bug on newsDusty Phillips1-3/+3
2008-06-27use a nicer decoratorDusty Phillips1-4/+4
2008-03-08Moved models aroundeliott2-23/+2
2007-12-30Removed import no longer used.eliott1-1/+0
2007-12-30Massive retab fest.eliott2-12/+18
Also added vim command comment to the end of files.
2007-12-30Modified render_template and renamed it to render_response (consistent witheliott1-58/+58
archweb_pub conventions). Moved pkgmaint_guide to a template.
2007-12-22renamed importseliott2-3/+3
2007-11-03Initial import for public release...eliott3-0/+101
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!