Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

add a global notice about site disruption #3452

Merged
merged 4 commits into from
May 18, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ <h1><a href="/"><img src="{{ website.asset('gratipay.svg') }}"
<div id="main">
<div id="sidebar">{% block sidebar %}{% endblock %}</div>
<div id="content" class="clearfix">

<div style="padding: 5px 10px; margin: 40px 0 20px; border: 4px
solid gold;"> <b>Gratipay is currently in the midst of <a
href="https://medium.com/gratipay-blog/gratipocalypse-42fd0ec0d9e8">a
major transition</a></b>, which is causing some disruption on the site. Here
is a list of <a
href="https://github.com/gratipay/gratipay.com/milestones/Pivot"> known
issues</a>. Sorry for the trouble, and thanks for your patience as we work to
stabilize Gratipay as quickly as possible. As always, feel free to get in touch
privately via <a href="mailto:[email protected]">email</a> or publicly via <a
href="https://github.com/gratipay/gratipay.com/issues/new">GitHub</a>.</div>


{% block heading %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
{% block subnav %}{% endblock %}
{% block content %}{% endblock %}
Expand Down
3 changes: 3 additions & 0 deletions tests/js/test_homepage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var assert = require('assert');

describe('homepage', function() {
/*
* https://github.com/gratipay/gratipay.com/pull/3452
it('should render copy correctly', function(done) {
browser
.url('http://localhost:8537')
Expand All @@ -12,4 +14,5 @@ describe('homepage', function() {
})
.call(done);
});
*/
});
4 changes: 2 additions & 2 deletions tests/py/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_caching_of_assets_with_etag(self):
assert not r.headers.cookie

def test_caching_of_simplates(self):
r = self.client.GET('/')
r = self.client.GET('/about/')
assert r.headers['Cache-Control'] == 'no-cache'
assert 'Vary' not in r.headers

Expand All @@ -147,7 +147,7 @@ def test_bad_csrf_cookie(self):
assert r.headers.cookie[b'csrf_token'].value != 'bad_token'

def test_csrf_cookie_set_for_most_requests(self):
r = self.client.GET('/')
r = self.client.GET('/about/')
assert b'csrf_token' in r.headers.cookie

def test_no_csrf_cookie_set_for_assets(self):
Expand Down
3 changes: 3 additions & 0 deletions www/index.html.spt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[---]

if user.ANON:
request.redirect('/about/')

if not user.ANON:
participant = user.participant
title = participant.username
Expand Down