Skip to content

Commit 04e7764

Browse files
committed
Issue #3071 - Change page title based on form
1 parent 32e47a8 commit 04e7764

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

webcompat/templates/new-issue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% endif %}
77
{% endblock %}
88

9-
{% block title %}New Issue{% endblock %}
9+
{% block title %} {{ pagetitle }} {% endblock %}
1010
{%- block body -%}
1111
{% if ab_active('exp') == 'form-v2' %}
1212
{% include "nav/issue-wizard-stepper.html" %}

webcompat/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,17 @@ def create_issue():
265265
bug_form = get_form(form_data, form=FormWizard)
266266
# TODO: remove this when the experiment has ended
267267
form_data['extra_labels'].append('form-v2-experiment')
268+
pagetitle = "New Issue |"
268269
else:
269270
bug_form = get_form(form_data)
271+
pagetitle = "New Issue"
270272

271273
session['extra_labels'] = form_data['extra_labels']
272274
source = form_data.pop('utm_source', None)
273275
campaign = form_data.pop('utm_campaign', None)
274276
return render_template('new-issue.html', form=bug_form, source=source,
275-
campaign=campaign, nonce=request.nonce)
277+
campaign=campaign, nonce=request.nonce,
278+
pagetitle=pagetitle)
276279
# Issue Creation section
277280
elif request_type == 'create':
278281
# Check if there is a form

0 commit comments

Comments
 (0)