Commit Graph

10 Commits

Author SHA1 Message Date
Dan McGee
772a500534 Move simple feeds templates directly into feed classes
No need to call out to the template engine to format... nothing at all.
Just fetch the attribute directly and save the render step.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-07-13 09:50:45 -05:00
Dan McGee
bcccd16606 Fix news feed content display
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-27 13:53:24 -05:00
Dan McGee
62bb3db8ad Remove usages of 'django.contrib.markup'
Switch to the news model being able to spit out the HTML version of the
content, and don't use the markup contrib module. This is deprecated as
of Django 1.5 so we can move off it now to save trouble down the road
when it is fully removed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-26 17:36:12 -05:00
Dan McGee
0b97d52351 Enable safe mode for markdown parsing
Although we don't allow unauthenticated users to post content, we should
still cover our bases here and ensure people can't inject stuff into the
production website via an inadvertent XSS.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-26 16:50:00 -05:00
Dan McGee
9f4902f9c9 Ensure feed GUIDs are unchanging and unique
Implement 'tag:' style URIs for the GUID field on our RSS feeds. This
ensures new package updates show up as new, and we aren't jumping back
and forth between generated GUIDs having 'http://' and 'https://'
prefixes.

Much of the work here is to attempt to keep old news GUIDs constant so
we don't once again make everything show up as new in newsreaders.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:01:16 -05:00
Dan McGee
5abe0727bf Show epoch in package version if != 0
Add a full_version property method to our package object that does the
version formatting, and switch all templates displaying package versions
over to this new method.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-13 11:41:36 -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
Ismael Carnales
19f0a3fb57 added feeds from archweb_pub 2009-11-09 22:24:44 -02:00
eliott
3e31808521 More changes to the multiarch model. 2008-03-08 12:11:02 -08: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