You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
] ="Want to know how effective {name}’s climate plans are? Check out {name}’s Council Climate Scorecard to understand how their climate plans compare to local authorities across the UK.".format(
310
-
name=council.name
309
+
context["page_description"] = (
310
+
"Want to know how effective {name}’s climate plans are? Check out {name}’s Council Climate Scorecard to understand how their climate plans compare to local authorities across the UK.".format(
311
+
name=council.name
312
+
)
311
313
)
312
-
context[
313
-
"twitter_tweet_text"
314
-
] ="Up to 30% of the UK’s transition to zero carbon is within the influence of local councils - that’s why I’m checking {name}’s Climate Action Plan on 📋 #CouncilClimateScorecards".format(
315
-
name=(
316
-
"@{}".format(council.twitter_name)
317
-
ifcouncil.twitter_name
318
-
elsecouncil.name
314
+
context["twitter_tweet_text"] = (
315
+
"Up to 30% of the UK’s transition to zero carbon is within the influence of local councils - that’s why I’m checking {name}’s Climate Action Plan on 📋 #CouncilClimateScorecards".format(
316
+
name=(
317
+
"@{}".format(council.twitter_name)
318
+
ifcouncil.twitter_name
319
+
elsecouncil.name
320
+
)
319
321
)
320
322
)
321
323
returncontext
@@ -339,9 +341,9 @@ def get_authority_type(self):
339
341
340
342
defget_context_data(self, **kwargs):
341
343
context=super().get_context_data(**kwargs)
342
-
context[
343
-
"all_councils"
344
-
] =Council.objects.all() # for location search autocomplete
344
+
context["all_councils"] = (
345
+
Council.objects.all()
346
+
) # for location search autocomplete
345
347
346
348
filter_args= {
347
349
"data": self.request.GETorNone,
@@ -496,9 +498,9 @@ class LocationResultsView(PrivateScorecardsAccessMixin, BaseLocationResultsView)
496
498
497
499
defget_context_data(self, **kwargs):
498
500
context=super().get_context_data(**kwargs)
499
-
context[
500
-
"all_councils"
501
-
] =Council.objects.all() # for location search autocomplete
501
+
context["all_councils"] = (
502
+
Council.objects.all()
503
+
) # for location search autocomplete
502
504
context["page_title"] ="Choose a council"
503
505
returncontext
504
506
@@ -509,9 +511,9 @@ class MethodologyView(PrivateScorecardsAccessMixin, TemplateView):
509
511
510
512
defget_context_data(self, **kwargs):
511
513
context=super().get_context_data(**kwargs)
512
-
context[
513
-
"all_councils"
514
-
] =Council.objects.all() # for location search autocomplete
514
+
context["all_councils"] = (
515
+
Council.objects.all()
516
+
) # for location search autocomplete
515
517
516
518
# questions = PlanQuestion.objects.all()
517
519
# sections = PlanSection.objects.all()
@@ -562,9 +564,9 @@ class AboutView(PrivateScorecardsAccessMixin, TemplateView):
562
564
563
565
defget_context_data(self, **kwargs):
564
566
context=super().get_context_data(**kwargs)
565
-
context[
566
-
"all_councils"
567
-
] =Council.objects.all() # for location search autocomplete
567
+
context["all_councils"] = (
568
+
Council.objects.all()
569
+
) # for location search autocomplete
568
570
context["page_title"] ="About"
569
571
context["current_page"] ="about-page"
570
572
returncontext
@@ -576,9 +578,9 @@ class ContactView(PrivateScorecardsAccessMixin, TemplateView):
576
578
577
579
defget_context_data(self, **kwargs):
578
580
context=super().get_context_data(**kwargs)
579
-
context[
580
-
"all_councils"
581
-
] =Council.objects.all() # for location search autocomplete
581
+
context["all_councils"] = (
582
+
Council.objects.all()
583
+
) # for location search autocomplete
582
584
context["page_title"] ="Contact"
583
585
context["current_page"] ="contact-page"
584
586
returncontext
@@ -590,9 +592,9 @@ class HowToUseView(TemplateView):
590
592
591
593
defget_context_data(self, **kwargs):
592
594
context=super().get_context_data(**kwargs)
593
-
context[
594
-
"all_councils"
595
-
] =Council.objects.all() # for location search autocomplete
595
+
context["all_councils"] = (
596
+
Council.objects.all()
597
+
) # for location search autocomplete
596
598
context["page_title"] ="How to use the Scorecards"
0 commit comments