summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-11-11Exclude news.safe_mode on news edit screenDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-11Mirror graph tweaking after usage with real dataDan McGee3-4/+6
* Clamp y-axis minimum to 0. * Don't plot `is_success == false` values. * Ensure URLs are sorted predictably. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-11Re-add nice() calls for mirror status axesDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-11Slight style tweaksDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-11Mirror status graph, now with points AND linesDan McGee3-18/+50
We might have to tweak the interpolation method once we see this with real data, but for now it looks really pretty locally. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-10Enable mirror status graph resizingDan McGee1-15/+28
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-10Add initial version of mirror status chartDan McGee3-0/+115
Still have some hardcoded stuff to rip out and replace to make this a bit more dynamic on things like sizing, but for now, this is a great start. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-10Allow filtering retrieved mirror statuses by mirror_idDan McGee2-8/+19
When we don't need them all, no need to fetch them all. Let the database do the work for us, hopefully. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-10Add mirror extended status JSON viewDan McGee2-3/+35
When asking for status for a single mirror, we can include logs from the past 24 hours in addition to the normal information we provide. This is slated for usage by a frontend graph still to come, similar to those on the NTP pool website. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-06Remove explicit timezone handling from feedsDan McGee1-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-06Make guid feeds helper a @staticfunctionDan McGee1-9/+12
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-01Allow editing news.safe_mode flag via admin screenDan McGee2-2/+3
We need to mark the property as editable, but you still don't have access to it through the normal non-admin views and edit screen. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-01Signal attachment cleanupDan McGee1-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-01Update for November ISO releaseDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-01download.html: Provide a magnet linkThomas Bächler1-2/+3
Some people prefer these over torrent files, as they're easier to pass than the torrent files themselves. On updates, this only needs the new info hash. The tracker bits are optional, but ensure that the torrent client gets peers more quickly to receive the actual torrent file. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-31Store 'safe_mode' attribute on news modelDan McGee3-1/+143
This lets us identify old news items that need to allow HTML through the markdown parser. For all new news items, we will disallow raw HTML. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-31Disable markdown safe modeDan McGee2-2/+2
Unless we want older news items to look like [HTML_REMOVED]this[HTML_REMOVED] all over the place. I'm tempted to mark old items as non-safe but enforce safe mode for all new news postings. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-30Remove information regarding test ISOsThomas Bächler2-15/+0
The test builds are dead and nobody is taking care of them. With our monthly releases, they serve no purpose. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-27Fix news feed content displayDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-27Convert silhouette.png to an 8-bit colormapDan McGee1-0/+0
This cuts the size from 33KB to just 2KB. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-27Remove usages of 'django.contrib.markup'Dan McGee6-9/+13
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-27Cleanup meta model attributesDan McGee3-6/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-27Extract some common architecture grabbing logicDan McGee1-6/+9
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-26Enable safe mode for markdown parsingDan McGee4-5/+5
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-26Add .DS_Store to .gitignoreDan McGee1-0/+1
Thanks for your silly files, OS X. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Remove 'table' tag specifier from '.arch-bio-entry'Dan McGee1-7/+7
Class-based selectors make sense here, we don't need the table tag too. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21More navbar styling cleanupDan McGee1-6/+5
Use ID-only rules, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Remove dead CSSDan McGee1-4/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21css: with ID selectors, no need for tag selectorDan McGee1-31/+31
This simplifies a lot of the CSS and brings it in line with recommendations to use ID-based selectors when possible. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Remove charset declaration <meta/> tagDan McGee1-1/+0
This belongs in HTTP headers, not here. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Fix navbar logo stylingDan McGee1-1/+1
The relative path to the logo PNG image wasn't correct, and too much of the other styles got deleted when removing the IE6 compatibility shim. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Update tablesorter JSDan McGee4-321/+473
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-18Bump requirementsDan McGee2-4/+4
Move to the 1.4.2 Django security release, and update django-countries to 1.4. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-18Clean up create index migrationDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-18Modernize initial main migrationDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-15Remove logo override for IE6Dan McGee3-16/+2
We don't need this anymore. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-15Inline global navbar stylesheetDan McGee1-5/+32
It is silly to have to load an external resource when we can simply cram all of this in the same single stylesheet used for the site. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-15Remove print stylesheetDan McGee2-12/+0
This hasn't been updated in ages, and who is printing out pages from the website anyway? Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-15Convert Click & Pledge logo to PNGDan McGee4-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-14Refactor signoff-grabbing queriesDan McGee1-22/+18
Make them a bit more efficient by adding an explicit condition on both the packages and signoff table for the repo ID, and move the common code into a shared function both can use. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-12reporead: don't print full backtrace if unnecessaryDan McGee1-3/+6
In the architecture agnostic case, this error is much more likely to happen, so printing it like an error message is deceiving. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-12Make wrong permissions query more efficientDan McGee1-5/+6
This removes the subplan and per-row query in favor of a LEFT JOIN where we look for non-matching rows. Tested in sqlite3 and PostgreSQL. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-11Make mirror log time query a bit more efficientDan McGee1-4/+6
We don't need the full mirror log objects; we just need a very small subset of values from them here to do the required math and object building. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-08archweb.js: Fix syntax error in filter_signoffs()Evangelos Foutras1-0/+2
Commit 1decbc079ff8ab9798cef0ca02310357f8f4ba0c "JSLint suggested script cleanups" mistakenly removed the closing brace and parenthesis of a jQuery .each() call, along with a following comment. This commit brings back the two removed lines. Signed-off-by: Evangelos Foutras <evangelos@foutrelis.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-06Update download page for new releaseDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-04Update bugs link for feeds for all projectsDan McGee1-3/+3
Apparantly 'project=99' is not the correct way to do this; 'project=0' is. Flip the links so they all use the new form. FS#31561. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-02JSLint suggested script cleanupsDan McGee1-25/+26
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-02Add a few more redirects for old linksDan McGee1-0/+10
This covers more .php pages noticed in Google webmaster tools, as well as some links to former documentation. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-01Collapse long lists of related packagesDan McGee3-17/+32
Just like we did with the rows of depends and required by, collapse down conflicts, provides, etc. comma-separated lists if they grow too large. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-30Add caching of sitemapsDan McGee1-7/+8
Upstream Django bug #2713 was fixed in https://github.com/django/django/commit/123f567093, so we can now enable caching of sitemaps. Signed-off-by: Dan McGee <dan@archlinux.org>