summaryrefslogtreecommitdiff
path: root/templates
AgeCommit message (Collapse)Author
2010-10-10Update link to AirVMDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-10Fix trademarks email typoDan McGee
FS#21157. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-07Factor check completion pct into mirror scorerelease_2010-10-07Dan McGee
Use it as the divisor in our slightly longer equation. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-06Add a merchandise storeDan McGee
And also update the lingo we use here, 'schwag' implies free and can be a bit confusing for people to see, especially non-English speakers. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-06Make it actually possible to upload a new dev imageDan McGee
We need to both submit the form with the correct encoding and then bind the form itself to request.FILES and not just request.POST. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Adding changing of user profile detailsAngel Velasquez
The idea of this patch is allow to the developers who have an account, to change their data without asking some admin to do it for them. Dan: put private email address field back as it is used for a different purpose; add some help text and field names as appropriate. Signed-off-by: Angel Velasquez <angvp@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-05Update AirVM brandingDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-04Make user profile a OneToOneFieldrelease_2010-10-05Dan McGee
We had this set up as a unique ForeignKey before, which adds some indirection due to the RelatedManager object being there. By making it a OneToOneField, we can get the profile object directly, enforce uniqueness, and also use it in select_related() calls to make our profiles page a bit more efficient. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Move most inline JS into script filerelease_2010-09-30Dan McGee
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-30Remove console.log statementsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Mirror status improvementsDan McGee
* 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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24Give more information about mirror check runs and frequencyDan McGee
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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22Switch mirror status delay display to average delayrelease_2010-09-22Dan McGee
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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Add ordering, sorting, and a lot more info to mirror status pageDan McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Update news views to use slug instead of IDDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-20Fix package differences pkgrel comparisonDan McGee
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 McGee
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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-09Hide multilib by defaultDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Add links to arch differences pageDan McGee
Hopefully finishes FS#20416. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Developer dashboard fixesDan McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Re-ID sponsors div so it skirts adblockDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08Paginate the news list viewrelease_2010-09-08Dan McGee
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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03Enable template fragment caching on package details pageDan McGee
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 McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01Dev dashboard: enable sorting by package countDan McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Add package groups to front page and cache resultsrelease_2010-08-27-2Dan McGee
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 McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27Link to the package group view from package detailsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>