diff options
author | jelle van der Waa <jelle@vdwaa.nl> | 2018-02-18 10:33:52 +0100 |
---|---|---|
committer | Angel Velásquez <angvp@archlinux.org> | 2018-02-18 04:33:52 -0500 |
commit | f3e26eb15a54e74a375e395200bfca3d1664adaf (patch) | |
tree | ee946542451e505612a6739ec04073922bf59036 /templates | |
parent | 875d50d8f23069515b865b28044fb572a14049ed (diff) | |
download | archweb-f3e26eb15a54e74a375e395200bfca3d1664adaf.tar.gz archweb-f3e26eb15a54e74a375e395200bfca3d1664adaf.zip |
Misc fixes (#84)
* Update coveragerc to exclude newly located tests
There are now tests under main/tests/* etc, which should be omitted for
coverage.
* omit settings from coverage
settings and local_settings aren't interesting for coverage, omit them.
* remove leftover secure context processor
The secure context processor was used to determine if the cdn served
assets should be loaded over https or http. Since assets are no longer
served with a cdn and the whole site is loaded over https these days,
this code is dead and can be removed.
* packages: Add test for flagging packages out of date
Add simple test cases for flagging packages out of date, should later be
improved to query the Package model for packages and use that data
instead of hardcoding.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/public/donate.html | 2 | ||||
-rw-r--r-- | templates/public/index.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/public/donate.html b/templates/public/donate.html index d6d105a8..e68100c7 100644 --- a/templates/public/donate.html +++ b/templates/public/donate.html @@ -5,7 +5,7 @@ {% block title %}Arch Linux - Donate{% endblock %} {% block content %} -{% cache 600 donations secure %} +{% cache 600 donations %} <div id="donations" class="box"> <h2>Donate to Arch Linux</h2> diff --git a/templates/public/index.html b/templates/public/index.html index 9242263e..7ee4453b 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -8,7 +8,7 @@ {% endblock %} {% block content_left %} -{% cache 62 main-page-left secure %} +{% cache 62 main-page-left %} <div id="intro" class="box"> <h2>A simple, lightweight distribution</h2> @@ -105,7 +105,7 @@ </div> {% endcache %} -{% cache 115 main-page-right secure %} +{% cache 115 main-page-right %} <div id="nav-sidebar" class="widget"> <h4>Documentation</h4> <ul> |