summaryrefslogtreecommitdiff
path: root/packages/templatetags
AgeCommit message (Collapse)Author
2015-04-16Merge branch 'archweb-generic'Luke Shumaker
2015-04-15Merge branch 'master-nomake'Luke Shumaker
2015-04-14Replace usage of parabolagnulinux.org with parabola.nu, alsoLuke Shumaker
replace repo.parabola.nu/isos/ with /iso/, in settings.py
2015-04-13Merge tag 'release_2014-10-19' into archweb-genericLuke Shumaker
Jinja2 switch for some templates, exact matches in package search # Conflicts: # templates/packages/search.html
2014-11-08Convert some of URL details to Jinja2Dan McGee
Anytime we have a loop with >100 items, the Django template engine begins to be the bottleneck. This one is relatively straightforward to convert, and sets the stage for converting the mirror status page as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Move maintainer/packager link code back into templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Break out Jinja2-specific template helpersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
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>
2014-10-05Use new Parabola URLs.Michał Masłowski
2013-12-22Merge branch 'archweb-generic' into master-nomakeLuke Shumaker
Conflicts: README.md
2013-11-27Allow pkg_details_link to honor package flag stateDan McGee
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-08-26Fix links related to issue #369Omar Vega Ramos
2013-07-16fix package_extras.py:scm_linkLuke Shumaker
2013-07-15reduce differences in the package details pageLuke Shumaker
2013-04-23fix bugsLuke Shumaker
2013-04-22Merge branch 'archweb-generic2'Luke Shumaker
Conflicts: README.BRANDING local_settings.py.example packages/templatetags/package_extras.py public/views.py releng/views.py settings.py sitestatic/archnavbar/archnavbar.css sitestatic/silhouette.png templates/base.html templates/packages/differences.html templates/packages/opensearch.xml templates/packages/search.html templates/public/donate.html templates/public/download.html templates/public/feeds.html templates/public/index.html urls.py
2013-04-21update packages/templatetags/package_extras.py for labsLuke Shumaker
2013-04-20Fix parsing issues when query string keys contain unicodeDan McGee
This is dirty, but it works. There is probably a better and cleaner way to do all of this, but for now just fix it quickly. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-16Various minor code cleanups and fixesrelease_2013-04-16Dan McGee
Most of these were suggested by PyCharm, and include everything from little syntax issues and other bad smells to dead or bad code. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-28Allow pkg_details_link to return link title if package is missingDan McGee
For todolist packages that have had their package removed, this will allow the package name to continue to appear even after the linked package has been deleted. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-16Use Python 2.7 dictionary comprehension syntaxDan McGee
Rather than the old idiom of dict((k, v) for <> in <>). Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-15Merge tag 'release_2012-02-18'Luke Shumaker
Defend against bogus URLs, mirrorlist no FTP by default Conflicts: templates/public/index.html
2012-11-15Merge commit '33fe337' (Encourage bug reports to have a summary)Luke Shumaker
Conflicts: packages/templatetags/package_extras.py
2012-11-14Merge tag 'release_2012-01-11'Luke Shumaker
Pkgbase view in todos, other changes related to caching Conflicts: public/views.py
2012-09-30pkg_details_link template tag enhancementsDan McGee
* Output the blank string when passed None for pkg argument * Allow override of the link text if optional argument passed Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-21Fix scm_link in a way that doesn't make cgit barfDan McGee
This does what commit cd51842ce86 set out to do in a way that doesn't break cgit's not-so-hit query string parsing. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-21Style cleanups in package_extrasDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-21Revert "Fix scm_link for Unicode characters"Dan McGee
This reverts commit cd51842ce86c44eef4e3c3d5334aca13e234151a. It turns out cgit doesn't like it if you escape the '/' in the URL parameter when viewing the log (a clear upstream bug), but we need to be able to work around this. Example: 'extra%2Fkdelibs' and 'extra/kdelibs' are handled differently.
2012-08-20Fix scm_link for Unicode charactersDan McGee
This blew up with non-ASCII due to us trying to stuff 8-bit characters into the URL parameters where they aren't allowed. Tested with a package entered via the admin with pkgname and pkgbase set to 'αναζήτη'. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-03Use https:// links for all internal sitesDan McGee
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-03Include category when linking to bug reportsDan McGee
Also change the default category to something legit. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-28Merge commit '20e9a83' from ArchwebLuke Shumaker
Conflicts: main/fixtures/groups.json packages/templatetags/package_extras.py
2012-02-12Protect urlencode calls against Unicode dataDan McGee
These would cause page errors if passed anything not in the ASCII character set. This change allows for packages to have names composed of any Unicode characters, not just those in the ASCII set. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06Encourage bug reports to have a summaryDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-11PyLint suggested cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-04strip https: from another URLLuke Shumaker
2011-12-04Merge branch 'master' of ssh://gparabola/parabolawebNicolás Reynolds
Conflicts: local_settings.py.example media/archweb.css packages/templatetags/package_extras.py public/views.py templates/packages/details.html templates/packages/flag.html templates/packages/flag_confirmed.html templates/packages/flagged.html templates/packages/search.html templates/public/download.html templates/todolists/view.html
2011-12-03Convert packager link to search by packagerDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-02Merge branch 'master' of https://johkra.net/git/parabolaweb-johkraLuke Shumaker
Conflicts: packages/templatetags/package_extras.py
2011-12-02Fix download link. Solution looks a bit unclean to me.Johannes Krampf
2011-12-02Fix bug tracker URLsJohannes Krampf
2011-12-01Normalize the URI scheme used for inbound links. Don't use one when ↵Luke Shumaker
possible, else use https
2011-12-01add get_wiki_link() to packages/templatetags/package_extras.py (fix the 500 ↵Luke Shumaker
error)
2011-12-01this probably should have happened during the merge (small stuff)Luke Shumaker
2011-11-26Merged with archweb trunkJohannes Krampf
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-09-14Merge branch 'master' of git://projects.archlinux.org/archwebNicolás Reynolds
Conflicts: local_settings.py.example media/archweb.css packages/templatetags/package_extras.py public/views.py templates/packages/details.html templates/packages/flag.html templates/packages/flag_confirmed.html templates/packages/flagged.html templates/packages/packages_list.html templates/packages/search.html templates/packages/signoffs.html templates/public/about.html templates/public/download.html templates/public/index.html templates/public/svn.html templates/releng/results.html templates/todolists/view.html
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-19Ensure ampersands are properly escaped in hrefsDan McGee
This was pointed out by the W3C validator. Signed-off-by: Dan McGee <dan@archlinux.org>