Skip to content

Commit 6fcfd96

Browse files
committed
Move ftlconf call directly after load ftl command, remove unnecessary code from views
1 parent f00d423 commit 6fcfd96

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

privaterelay/templates/faq.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
{% load static %}
33
{% load socialaccount %}
44
{% load ftl %}
5-
6-
5+
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
76

87
{% block content %}
9-
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
108
<main class="flx flx-col container faqs-wrapper">
119
<h1 class="faqs-headline">{% ftlmsg 'faq-headline' %}</h1>
1210
<div class="faqs flx flx-row spc-btwn">

privaterelay/templates/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{% extends "base.html" %}
22

33
{% load ftl %}
4+
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
5+
46
{% load socialaccount %}
57

68
{% block content %}
79

810
{% include "includes/messages.html" %}
911

10-
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
11-
1212
<main data-landing-page="" class="flx row-full-width home-hero">
1313
<div class="flx flx-row hero-content">
1414
<div class="hero-left flx flx-col">

privaterelay/templates/includes/landing_ctas.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% load static %}
22
{% load socialaccount %}
33
{% load ftl %}
4-
54
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
65

76
<div class="hero-sign-up-bg bg-fx-gradient fx-gradient-btn">

privaterelay/templates/includes/login.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{% load socialaccount %}
22
{% load relay_tags %}
33
{% load ftl %}
4-
5-
{% block content %}
64
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
75

6+
{% block content %}
87

98
<div class="user-area flx flx-row al-cntr">
109
<firefox-apps></firefox-apps>

privaterelay/templates/profile.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
{% load static %}
55
{% load relay_tags %}
66
{% load ftl %}
7+
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
78

89
{% block content %}
910

10-
{% ftlconf bundle='privaterelay.ftl_bundles.main' %}
11-
1211
{% get_social_accounts request.user as accounts %}
1312

1413
{% include "includes/messages.html" with messages=messages %}

privaterelay/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@
5656
def home(request):
5757
if (request.user and not request.user.is_anonymous):
5858
return redirect(reverse('profile'))
59-
return render(request, 'home.html', {
60-
'ftl_bundle': main_bundle,
61-
})
59+
return render(request, 'home.html')
6260

6361

6462
def faq(request):

0 commit comments

Comments
 (0)