summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-03-15sitestatic: update ipxe imagesrelease_2019-03-15Jelle van der Waa6-0/+0
Update the ipxe image for the new CA root Let's Encrypt image. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-03-02donate: remove hardcoded width/height from img elements.Jelle van der Waa1-3/+3
2019-03-02templates: remove excessive whitespace after .Jelle van der Waa1-3/+3
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-03-02packages: use Pythonic syntax instead of len()Jelle van der Waa1-1/+1
not foo is preferred over len(foo) == 0.
2019-02-28releng: reduce SELECT's for archlinux.ipxe requestJelle van der Waa1-2/+1
Only querying the required fields makes the code smaller and 20% faster on Sqlite. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-28templates: get rid of modify_attributesJelle van der Waa2-18/+5
The modify_attributes was used for IE to set attributes on DOM elements, since Archweb no longer supports IE and this can be done easily with plain JavaScript. Also drop non-standard HTML attributes since they aren't worth keeping. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-24public: fix misplaced dot at the end of the </p>Jelle van der Waa1-1/+1
2019-02-24remove kartenzia as commercial sponsorJelle van der Waa2-6/+0
Kartenzia no longer sponsors a dedicated server. Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
2019-02-24pylint: comment out warning without code changesJelle van der Waa1-1/+1
2019-02-24pylint: extend checksJelle van der Waa1-36/+28
2019-02-24mirrors: remove duplicate functionJelle van der Waa1-5/+1
2019-02-24Add base-uri and frame-ancestors to CSPrelease_2019-02-24Jelle van der Waa1-0/+2
The archweb website contains no <base> elements so this can be disallowed. Also set frame-ancestors is set to the same value as X-Frame-Options. Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
2019-02-24Revert "rewrite logic to put some key at the beginning of the OrderedDict"Jelle van der Waa1-3/+7
This reverts commit adaa6d64c4466cff986e695d9d69d51a4d05ca59. old is undefined and therefore the code is broken.
2019-02-23css: disable focus outline on jQuery tablesorterrelease_2019-02-23Jelle van der Waa1-0/+4
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-23templates: Add "Getting involved" linkJelle van der Waa1-0/+2
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-22Decode subprocess outputFledermann1-1/+1
2019-02-22sitestatic: remove unused CSS rule #dash-pkg-notifyJelle van der Waa1-27/+1
The dash-pkg-notify view was removed in 710ec0a9de9a and since then never used. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-22sitestatic: remove unused pretty1 CSS classJelle van der Waa1-19/+0
This class was last used on the very old download page and since then never used. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-22templates: remove deprecated projection propertyJelle van der Waa9-9/+9
The media="projection" property is read by browsers but does not match anything remove it so our site is valid HTML. Closes: #184 Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-22templates: remove JavaScript form login pageJelle van der Waa1-11/+0
Remove setting focus on the username since this already works without Javascript.
2019-02-21mirrors: tests: add exception handling testsJelle van der Waa1-0/+55
Include more tests for exception handling cases, refactor this later using pytest fixture's so there is no need for massive code duplication.
2019-02-21README: add optional dependency on rsyncJelle van der Waa1-0/+1
2019-02-19sitestatic; fix typeahead for EdgeJelle van der Waa1-2/+2
Microsoft Edge has no x/y in the Clientrect structure so use top/left instead which works on all browsers.
2019-02-18urls.py: use Django 2.0 simplified url routing syntaxJelle van der Waa1-1/+1
2019-02-18mirrors: replace self-written floatvalue with floatformatJelle van der Waa5-20/+8
In 2013 floatformat was very slow in the mirror status page, these days floatformat is not that much slower.
2019-02-18main: remove leftover try/ImportError for Python2/3Jelle van der Waa1-5/+2
2019-02-18main: BigIntegerField fix Python styleJelle van der Waa1-1/+1
2019-02-18Merge pull request #162 from jelly/jquery_upgradejelle van der Waa41-1472/+3135
jQuery upgrade
2019-02-18flag: move inline css to a separate fileJelle van der Waa3-6/+9
CSP dissalows inline CSS styles so move the CSS to a separate file.
2019-02-18news: remove archweb.js includeJelle van der Waa1-1/+0
archweb.js supplies no functions required in the news add/edit/delete view.
2019-02-18packages: remove inline style from flag out of dateJelle van der Waa2-1/+5
Remove inline style and add new CSS rule for it.
2019-02-18templates: remove inline stylesJelle van der Waa4-4/+9
Remove inline styles to hide itemprop's and use a global css class for it.
2019-02-18releng: remove inline cssJelle van der Waa2-1/+6
Replace the usage of inline styles with a global css rule.
2019-02-18news: get rid of inline css stylesJelle van der Waa3-19/+20
Remove the usage of an inline style for hiding #news-preview and hide it in our global css. Also move the newspreview function to it's sole user to reduce our global JS size.
2019-02-18Implement CSP for archwebJelle van der Waa23-21/+30
Add django-csp as dependency to be able to set CSP inside django's settings and allow setting a CSP_NONCE for inline <script>'s in templates. Since archweb heavily uses this pattern it's the best compromise.
2019-02-18sitestatic: Update jQuery and tablesorterJelle van der Waa7-1383/+2919
2019-02-18homepage: use self written typeahead implementationJelle van der Waa3-36/+137
Use a self written typeahead inmplemenation which gets rid of the jQuery requirement. This saves upgrading issues and reduces the amount of data to be loaded for the homepage by half.
2019-02-18Merge pull request #186 from archlinux/switch-keyserverjelle van der Waa1-1/+1
Use sks-keyservers instead of mit
2019-02-14Update to django 2.1.7release_2019-02-14Jelle van der Waa1-1/+1
2019-02-11Bump django to latest versionJelle van der Waa1-1/+1
2.1.6 security release. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-02-09Merge pull request #191 from jelly/test_fixesjelle van der Waa3-23/+33
Test fixes
2019-02-09Minor code cleanup, formatting, and simplification.Aleksandar Trifunovic2-22/+20
2019-02-09add testAleksandar Trifunovic1-1/+13
2019-02-09packages: basic test for signoff pagesJelle van der Waa1-0/+36
2019-02-09packages: add tests for unflaggingJelle van der Waa1-0/+54
2019-02-09news: fix xml sitemapJelle van der Waa2-2/+6
Fix Exception Value: 'list' object has no attribute 'filter', probably introduced by running 2to3.
2019-02-09Merge pull request #187 from archlinux/str-signaturejelle van der Waa4-4/+47
Make Package.signature return str key_id
2019-02-09tests: add test for pgp_import keysJelle van der Waa1-1/+35
Add a test to check the pgp_import functionality with one key, by patching call_pgp so there is no need of a local pacman keyring.
2019-02-09Use .decode() instead of str()Felix Yan1-1/+1
2019-02-09Fix also call_gpg's outputFelix Yan1-1/+1