summaryrefslogtreecommitdiffstats
path: root/templates
AgeCommit message (Collapse)AuthorFilesLines
2010-09-30Mirror status improvementsDan McGee2-11/+50
* Fix sorting issues. '', 'unknown', and '∞' should now always sort after anything else in the list. * Add a completion percentage column; this will tell you at a glance if a mirror is sometimes unresponsive. This should probably be incorporated into the mirror score. * Make a few more things dynamic in the template, like the time back the page reflects. * Add some additional template tags for formatting things. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Add a basic mirror details pageDan McGee2-1/+60
Still some work to do here, but this covers the basics of the public view we can show for mirrors and their associated data. The upstream and downstream links should be working OK to aid navigation, but right now we have some potential dead links for non-authenticated users if they click a link to a "private" mirror. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Make general mirror list view publicDan McGee1-18/+20
Hide some columns when not logged in because they aren't relevant for the general public, but this will work nicely as a base page for all of our known mirrors. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Add note about mean syncing delayrelease_2010-09-24Dan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Give more information about mirror check runs and frequencyDan McGee1-4/+7
Show how many times the check has ran in the last 24 hours, as well as the average interval between checks. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Fix news permission checking in templatesDan McGee2-6/+6
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-22Update BBS and bugs links to use HTTPSDan McGee6-27/+27
Since we only do HTTPS now on these services, no point in sending someone through a useless redirect. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22Update newsletter/magazine linkDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22Switch mirror status delay display to average delayrelease_2010-09-22Dan McGee2-5/+8
This takes a bit more work to compute, but since we cache all of this anyway it isn't too big of deal. Using average delay instead of last delay will be a bit more fair on mirrors that have odd syncing schedules, as well as exposing those that only sync once a day. Also fix an issue that will arise with cutoff_time being calculated once, and adjust mirror score to treat hours delay as a float rather than an integer. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Allow generated mirrorlist to take status info into accountDan McGee3-6/+21
By using the mirror score we calculate, we can sort the mirrors in the generated mirrorlist for people. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Fix self-closing anchor links for ChromeDan McGee1-3/+3
Apparently it can't parse a very normal looking <a/> because they forgot one of their original purposes doesn't require a body. Awesome. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add link to mirror status toolDan McGee1-3/+10
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add ordering, sorting, and a lot more info to mirror status pageDan McGee2-5/+53
This should get this to the point where it is releasable to the general public for their use and pleasure. Still not sure on how often the check should be run, and we probably want to incorporate this mined data into some other things like the mirror list generator. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add mirror status viewDan McGee2-0/+82
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Update news views to use slug instead of IDDan McGee2-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-20Fix package differences pkgrel comparisonDan McGee1-3/+4
Using the right index in the array might help; we were comparing pkgver again and not pkgrel at all. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-14Ensure consistent date formatting everywhererelease_2010-09-14Dan McGee7-7/+7
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-10Restore flagged package count by maintainer in dashboardDan McGee1-10/+4
We need to do a little dropping into SQL to accomplish this, but it isn't all that bad to actually do and we can do the whole thing in one query. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-09Improve todo list view pageDan McGee1-3/+10
Add total package count and incomplete package count columns. Also reduce the number of total queries by killing the query per row that was happening before. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-09Remove redundant text from groups package count columnDan McGee1-12/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-09Hide multilib by defaultDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Add links to arch differences pageDan McGee2-1/+4
Hopefully finishes FS#20416. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Developer dashboard fixesDan McGee1-32/+41
As reported by Thomas, the dashboard JS dies when we try to apply table sorting to a table with no entries (those in the top section). Use some selector magic to only apply tablesorting if the table actually has rows worth sorting. Also move the package todo lists table down in the dashboard as the other two tables are more relevant for the individual developer. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Remove leftover console.logDan McGee1-1/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Re-ID sponsors div so it skirts adblockDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Paginate the news list viewrelease_2010-09-08Dan McGee2-0/+26
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-08Add 'for' attributes to search form labelsDan McGee1-8/+8
And also add the new style class we will need so the search form retains the prior look, now that we are using this style elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Implement package difference filteringDan McGee1-14/+81
This is done as client-side JS which makes the page nice and fast. Minor versions can be excluded, as can packages in [multilib]. In addition, architecture filtering is in place so you can limit the subset of shown packages to those in any, both, one or the other. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-07Use flagged style on versions in package differencesDan McGee1-2/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03Enable template fragment caching on package details pageDan McGee1-0/+5
We can't cache most of the package actions links stuff because we look at the user there, but we can cache everything on the left and the content of the bottom boxes. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03Add links to 'Versions Elsewhere' on package details pageDan McGee1-32/+50
This will allow clicking through to a few more associated packages from a given package, including those for the other architecture and potentially in other repositories. The box floats to the right with the package actions, which have also been restyled slightly so the whole area is a bit more styled and set off from the rest of the page. This should allow us to close the current oldest bug open in the Arch bug tracker, FS#7787. I remember the days when every bug was a four-digit number... Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-02Add pkgcount sort helper to count column on groups pageDan McGee1-1/+11
Forgot it here when adding it to all of the tables on the devel dashboard. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01Ensure long package descriptions wraprelease_2010-09-02Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01Dev dashboard: enable sorting by package countDan McGee1-3/+12
Add another custom parser to the mix here so we can sort by package count, which just involves extracting the digits from the table cell contents and ignoring the text. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01Make sort work on developer todo list statusDan McGee1-1/+13
Because it was a link, the sort didn't properly sort on the complete/incomplete status when viewing a todo list. Add a custom parser to fix it. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28Mark todo desc as safe on dev dashboardDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add package groups to front page and cache resultsrelease_2010-08-27-2Dan McGee1-0/+2
Make it more visible to the public, and cache the results of the group information function since it was designed and made separate for that purpose and the results can safely be reused without needing to worry too much about it being stale. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add last updated column to package groups viewDan McGee1-0/+2
Just another annotation to the queryset to get this data, and a little more manipulation in the group data function. This will help when adding a sitemap in a subsequent commit. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add a package group overview pageDan McGee1-0/+35
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Link to the package group view from package detailsDan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add a group details viewDan McGee1-0/+45
This makes the support asked for in FS#19801 a lot more useful since we actually have an overview page for the entire group. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Make public todolist view more usefulrelease_2010-08-27Dan McGee3-16/+42
Show all the details the developer page does, make the lists always visible, and add JS table sorting to each table on the page. This commit also adds table sorting to the developer list view as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Mark todolist description as being safe to contain HTMLDan McGee5-6/+7
Hopefully we can trust our developers on this one. :) Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Restore odd/even markup after JS sortDan McGee5-10/+10
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add table sorting to a handful of pagesDan McGee5-6/+39
Anything that it makes sense to add it to gets the treatment here. Anything with pagination can wait as that will be tougher. We also need to deal with odd/even formatting. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25Package Differences by Architecture viewDan McGee1-0/+37
Implements FS#20416. Port over the architecture differences view from archlinux.de and reimplement in Django with our DB schema. Also use a far simpler SQL query to do the dirty work rather than the triple UNION operation. This is accomplished by doing a bit more of the fetching work in code once we know what packages are actually involved. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-13Clarify what the date field means on package searchDan McGee1-1/+1
It sounded like the date had to match exactly which wasn't true, so clarify the label on the form field. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-13Move update mirrorlist linkrelease_2010-08-13Dan McGee1-3/+2
It is no longer new, so get rid of that graphic and move it down to somewhere relatively relevant. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04Add more information to "package in testing" textDan McGee1-2/+5
Make it a link to the testing package itself, and add a title so we have these attributes on every link. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04Add missing or update title attribute on linksDan McGee2-4/+7
Signed-off-by: Dan McGee <dan@archlinux.org>