summaryrefslogtreecommitdiffstats
path: root/templates/packages
AgeCommit message (Collapse)AuthorFilesLines
2014-03-09Use localStorage to save/restore signoffs filtersDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-25Add 'Latest Update' column to stale package relationsDan McGee1-0/+2
This helps when doing the irregular cleanup of these things and making sure a relation has been stale for some time and not just a couple minutes or hours. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-21Flag out-of-date message is no longer optionalDan McGee2-2/+2
Changed way back in commit ef9d1c1e, but I didn't update the actual text at the same time. FS#38126. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-27Allow pkg_details_link to honor package flag stateDan McGee1-6/+2
This allows the tag to be used in a few more places we weren't already able to use it, and hopefully speeds up rendering a tad on the package differences page. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-27Use pkg_details_link tag on differences report pageDan McGee1-4/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-07Django 1.6 upgrade, deprecation cleanupDan McGee6-0/+6
PendingDeprecationWarning: 'The `cycle` template tag is changing to escape its arguments; the non-autoescaping version is deprecated. Load it from the `future` tag library to start using the new behavior. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-22Use required_signoffs value when creating signoff specsDan McGee1-1/+1
And respect it elsewhere when we create a fake default specification because a real one does not exist yet. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-20Unbreak the package differences pageDan McGee1-2/+0
We had a weird conditional around everything on the page that doesn't really need to be there. Remove it. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-20Move all script blocks into {% script_block %} sectionDan McGee6-0/+16
I added this a while back, but didn't roll it out to all templates. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-20Remove {% spaceless %} tag from a few more placesDan McGee2-10/+4
This tag is simply not worth the time it takes to do what it does. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-20Remove spaceless from depends and required by template fragmentsDan McGee2-5/+4
This was a bit of premature optimization, and ends up slowing the page generation a good amount since we have to run this ~400 times on some packages with long depends or required by lists. Webserver compression should handle this just fine and not result in too much page bloat. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-27Merge branch 'django-1.5'Dan McGee1-1/+0
Conflicts: requirements.txt requirements_prod.txt
2013-02-16Make page a query string parameter on package searchDan McGee1-2/+2
This is a bit silly to encode in the URL, or at least makes it much harder to screen out via robots.txt and other such things. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-16Remove configurable pagination for package searchDan McGee1-3/+0
Switch it to a hardcoded value of 100 for all searches instead. It didn't make much sense having a page number be part of the URL and a limit value being part of the query string. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-16Paginator template cleanupDan McGee1-4/+4
2013-02-09Remove {% load url from future %} from templatesDan McGee1-1/+0
This is now the default in Django 1.5. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-09Remove package seach by 'Last Updated After'Dan McGee1-14/+0
It is a lot easier to just sort the list rather than mess with this particular field, which didn't even allow you to specify a range or direction to search in. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-12Collapse really long signoff specifications using JSDan McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-11Use multiple separate document.ready() handlersDan McGee2-4/+7
If one of them breaks, we don't want to prevent the rest of the on-load events from firing. This is currently a problem on some browsers with the versions of jQuery and tablesorter we are using. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-27Don't cache package properties as aggressivelyDan McGee1-3/+3
For package signatures, it turns out it is way cheaper to just parse the signature again rather than going though all the decorator and cache_function_key business. This speeds up the mismatched signatures report significantly once this is removed. For base_package, given that we only call it once from our package details template, it makes little sense to cache the result. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-01Collapse long lists of related packagesDan McGee2-16/+9
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-30Show full date and time for package last updateDan McGee1-1/+1
Now that we do updates on the fly and not just once an hour, we can afford to show a bit more granularity here. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-08Add structured data markup from schema.org to package detailsDan McGee1-7/+14
This might help out search engines show more helpful blurbs for our package details pages. Tested using the Google Rich Snippets Testing Tool at http://www.google.com/webmasters/tools/richsnippets. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-07Add reverse conflicts to package detailsDan McGee1-3/+10
This is a place where calling vercmp could come in really handy. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-05Restore proper whitespace in depends/required by displayDan McGee2-12/+12
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-04Adjust depends & required by templates to spew less whitespaceDan McGee2-25/+20
Use the spaceless tag and structure the {% if %} blocks smartly so spaceless actually works and we aren't outputting one blank line per if statement. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-04Add support to templates for make/check dependsDan McGee2-0/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-04Make adjustments for optional -> deptype conversionDan McGee2-2/+2
Very little dealt directly with this field. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-01Reuse removed template for packages with multiple replacementsDan McGee1-6/+6
For example, bitcoin-git in the Arch repos is currently marked replaced by both bitcoin-qt and bitcoin-daemon. This allows us to show a page with both options listed instead of a blank 404 page. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-31Fix broken hidden input sort field on search formDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Enable filtering of todolist packagesDan McGee1-2/+1
This matches the filtering options we have on the signoffs and package differences pages. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Clean up package file list stylesDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-23Minor template touchupsDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-23Add '410 Gone' support for packages moved out of repositoriesDan McGee1-0/+28
This allows us to do better than a generic 404 handler when we know a package previously existed in a given repository, and should also make things a bit nicer when getting sent in from a search engine to a page that no longer exists. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-09Add a new jquery_tablesorter CDN template tagDan McGee5-10/+5
And use it everywhere we were including the file before. This should make updating the version a heck of a lot easier. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-06Collapse the dependencies and required by lists when they are longDan McGee1-3/+7
For now, this happens when the lists are over 20 items. Using JS, hide the 21st and following packages listed in the list and replace them with a 'Show More...' link that users can click to get the full list. For a package such as glibc with 444 'Required By' entries, this can make quite a visual difference. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-02Update flag out of date verbiage when orphans are involvedDan McGee1-1/+2
From FS#29922, indicate what happens if the package is unmaintained. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-19Add RSS links to /news/ and /packages/ URLsDan McGee1-0/+1
These were available only from the home page, but it makes sense to advertise them on the corresponding index pages too. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-19Switch to usage of new Depend objectDan McGee2-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-19Link to provides/conflicts/replacements if we can in details templateDan McGee2-6/+16
Use the newly implemented get_best_satisfier() method that is in the abstract base class for all of these types. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-12Change to new time access methods in pgpdump codeDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-02Flagging related cleanups and improvementsDan McGee1-11/+9
Touch up the style slightly on the flag help popup to match the main site style more closely. When a logged-in user is flagging a package out of date, we have no need for them to fill in the email field since we already have an email address on file. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-02Opensearch enhancementsDan McGee1-6/+11
* Add a 64x64 icon as indicated in the Opensearch specification. * Add suggestions capability and a new view providing suggestions based on package name starting with the typed value. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-26Remove the superfluous "Package Details: " header textDan McGee1-1/+1
Just use the bare package name and version here. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-26Package files display tweaksDan McGee2-5/+5
Slightly gray out the directories when displaying file lists, drawing more attention to the file names instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-12Use commas rather than line breaks for multivalued details itemsDan McGee1-8/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-12Show conflicts and replacements on package details pageDan McGee1-1/+13
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-05Show and link key_id if signer was an unknown keyDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-03Use https:// links for all internal sitesDan McGee2-2/+2
We already use HTTPS exclusively for wiki, bugs, forums, etc. and we have it available for our other sites, so link only to the https:// protocol locations when pointing users at other sites. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-03Convert flaghelp page to HTML5 doctypeDan McGee1-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>