summaryrefslogtreecommitdiff
path: root/templates/packages/details.html
AgeCommit message (Collapse)Author
2014-10-18Convert bulk of package details page to Jinja2Dan McGee
We wrap the whole thing in a Django template so we don't have to convert our base template to Jinja2 (or have one for each templating engine). This also simplifies the static stuff so we can just keep using the Django tags. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Convert details sub-tempates to Jinja2Dan McGee
This is a start at improving performance of rendering the package details page, our most-visited and slowest page on the production website. The Django template system is not very efficient due to our heavy use of broken out templates and pulling of various attributes and such on related packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-20Move all script blocks into {% script_block %} sectionrelease_2013-04-20Dan McGee
I added this a while back, but didn't roll it out to all templates. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-27Don't cache package properties as aggressivelyDan McGee
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-09-30Collapse long lists of related packagesDan McGee
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 McGee
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 McGee
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 McGee
This is a place where calling vercmp could come in really handy. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-05Collapse the dependencies and required by lists when they are longDan McGee
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-05-18Link to provides/conflicts/replacements if we can in details templateDan McGee
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 McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-26Remove the superfluous "Package Details: " header textDan McGee
Just use the bare package name and version here. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-12Use commas rather than line breaks for multivalued details itemsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-12Show conflicts and replacements on package details pageDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-05Show and link key_id if signer was an unknown keyDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Convert STATIC_URL usage to {% static %} template tagDan McGee
This is a lot more flexible and will allow more than just simple prefixing of the static file resources. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Differentiate between Unsigned and unknown signerDan McGee
This can happen when we add a new developer but the key isn't in the system yet. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Show signature data on package details pageDan McGee
Now that we have a way to decode and process the signature data, we can match the key_id to a known developer if possible and show this data on the package page. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Only show package groups if they existDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-25Ensure long flag request text wraps on package details pageDan McGee
Fixes FS#28643; simply add the 'wrap' class to that table cell. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23Remove template caching from package detailsrelease_2012-02-23Dan McGee
Now that we do user-specific stuff, this is more hassle than it is worth to ensure we keep the right bits around. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18Factor out requiredby details into a templateDan McGee
This is similar to the previous commit doing the same for depends. We also add a '(staging)' text for use down the road. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-07Show the latest flag request on package details if out of dateDan McGee
This only shows up for logged in users, but might be helpful for developers browsing around the site, especially if they did not receive the email themselves, or in the case of orphan packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06Clean up details dependency display logicDan McGee
This moves this lengthy conditional block of template into an include so it is a bit more manageable. This makes the fix for FS#28286, where provided optional dependencies were not displayed as expected. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-05Convert to and enable staticfiles contrib applicationDan McGee
This moves our site static files into the sitestatic directory if they are shared resources, and also moves a handful of things (such as the artwork logos) into application-specific static/ directories. This allows the staticfiles contrib app to work after a few settings tweaks, a run of collectstatic, and massaging the hardcoded '/media/' prefix out of our templates. Django 1.4 is going to make this a lot easier to move things to a CDN and provides better template tags; for now this is setting the stage before we can move to that. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-03Convert packager link to search by packagerDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-17Display package URLs unquoted if possibleDan McGee
Example: kbd-ru-keymaps. Before: http://wiki.archlinux.org/index.php/%D0%98%D0%BD%D1%82%D0%B5%D1%80%D0%BD%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F After: http://wiki.archlinux.org/index.php/Интернационализация Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-18Add architecture to package details and files page titlesDan McGee
And remove the not totally necessary "Package Details" text as that seems like a reasonable assumption for the base page. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-08List packages in required by list with depend provided by this packageDan McGee
Implements FS#25862. Most noticable on package like util-linux (util-linux-ng) and openjdk6 (java-runtime, java-environment). Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-08Show provides in package details viewDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-01Compact bug report links in "Package Actions" boxrelease_2011-09-01Evangelos Foutras
Using the same style as the SCM links. Signed-off-by: Evangelos Foutras <evangelos@foutrelis.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-01Use package branches to display commit historyEvangelos Foutras
We now have one link pointing to the tree of /trunk, and another pointing to the log of /trunk. Both links specify a package branch. Signed-off-by: Evangelos Foutras <evangelos@foutrelis.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-25Enable display of package signed statusDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-19Fix template comment guardDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17Add PGP signature package fieldDan McGee
And add eventual display code for it to the details template, but don't show it yet as no packages will have it. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-16add "search wiki" link to package details pageSergej Pupykin
Dan: fix usage of urlencode() function. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-09Link package provisions if availableDan McGee
Rather than just the blank 'virtual' text we used to have in the dependencies listing on the package page. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-09Use new package details link tag in templatesDan McGee
This replaces a lot of boilerplate we had everywhere, and makes sure things like the title are consistent across all links. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05Add a default datetime formatDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05Add rel="nofollow" to download package linksDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18Reimplement links code as template tagsDan McGee
These were starting to get a bit too much inside the model itself, and they don't really belong there as they are view layer concerns anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18Add a "Report a Bug" linkDan McGee
We need Flyspray category data to make this more useful, and we can prefill the Subject and Category fields (along with putting it on the right project). Implements FS#23751. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-28Small package details template cleanupDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23Allow virtual base packages to display in web interfaceDan McGee
Repurpose the old group details page to show a listing of all packages built from a particular pkgbase value, even if this value is not an actual package. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-13Show epoch in package version if != 0Dan McGee
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-03Template fine-grained permissioningDan McGee
Rather than use user.is_authenticated, rely on certain permissions being set for the user. This allows us to open up the developer side and not assume everyone is a package maintainer. Allow all logged-in users to still view todo lists, but don't show the complete/incomplete links (only the text) unless they are allowed to mess with todo lists. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-22Use hyphen to offset optdep descriptionrelease_2011-02-22Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-16Allow for optional info in required by displayDan McGee
We need to make our root object the PackageDepend rather than the Package to get at this, so do a slight refactor on get_requiredby(). Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-16Read in optional deps and show in web interfaceDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-15Move license to a related modelDan McGee
This allows us to store multiple licenses per package in a more elegant fashion, and will later allow us to search and filter on this information. Signed-off-by: Dan McGee <dan@archlinux.org>