Skip to content

Commit 18fb645

Browse files
authored
Merge pull request #28 from f5devcentral/prettify
Prettify
2 parents bb2d934 + f491b57 commit 18fb645

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

labapp/app/app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def cache_control(response):
130130
def ensure_cookie():
131131
"""Ensure that the cookie is present, otherwise redirect to the cookie page."""
132132
if not request.path.startswith('/static'):
133-
if (request.path not in ['/', '/cookie']) and (data_cookie not in request.cookies):
133+
if (request.path not in ['/', '/cookie', '/_ce_status']) and (data_cookie not in request.cookies):
134134
return redirect('/cookie')
135135

136136
@app.route('/')
@@ -204,9 +204,11 @@ def path():
204204
def header():
205205
"""manipulation page"""
206206
ns = get_eph_ns()
207+
site = get_site()
207208
return render_template('manipulation.html',
208209
title="MCN Practical: Manipulation",
209-
ns=ns
210+
ns=ns,
211+
site=site
210212
)
211213

212214
@app.route('/portability')

labapp/app/templates/manipulation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h3><strong>Test Criteria</strong></h3>
128128
...
129129
"request_headers": {
130130
"x-mcn-namespace": "wiggly-yellowtail",
131-
"x-mcn-src-site": "cluster-xxxxxxxx",
131+
"x-mcn-src-site": "{{ site or 'cluster-xxxxxxxxx' }}",
132132
},
133133
...
134134
}

labapp/app/templates/portability.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2><strong>Exercise 2: Find a Friend</strong></h2>
8383
<p>
8484
Do you have a friend working on the lab?
8585
Have they updated their advertise policy to use the virtual site?
86-
Find thier <strong>ephemeral namespace</strong> (or use the one provided in the form).
86+
Find their <strong>ephemeral namespace</strong> (or use the one provided in the form).
8787
</p>
8888

8989
<div>
@@ -100,7 +100,7 @@ <h2><strong>Exercise 2: Find a Friend</strong></h2>
100100
<h3><strong>Test Criteria</strong></h3>
101101

102102
<div class="alert alert-secondary" role="alert">
103-
<strong>Use this ephemeral NS if a friend is unavailable.</strong>
103+
<strong>Use the example ephemeral NS if a friend is unavailable.</strong>
104104
</div>
105105

106106
<pre class="hljs language-http rounded"><code>

0 commit comments

Comments
 (0)