Skip to content

Commit 70290d0

Browse files
committed
[Scorecards] 2023 Collaboration & Engagement infographics
1 parent 026e1e4 commit 70290d0

14 files changed

+56
-20
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

scoring/views.py

+56-20
Original file line numberDiff line numberDiff line change
@@ -410,23 +410,23 @@ def get_context_data(self, **kwargs):
410410
)
411411

412412
context["comparisons"] = comparisons
413-
context[
414-
"page_description"
415-
] = "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(
416-
name=council.name
413+
context["page_description"] = (
414+
"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(
415+
name=council.name
416+
)
417417
)
418-
context[
419-
"twitter_tweet_text"
420-
] = "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(
421-
name=(
422-
"@{}".format(council.twitter_name)
423-
if council.twitter_name
424-
else council.name
418+
context["twitter_tweet_text"] = (
419+
"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(
420+
name=(
421+
"@{}".format(council.twitter_name)
422+
if council.twitter_name
423+
else council.name
424+
)
425425
)
426426
)
427-
context[
428-
"og_image_path"
429-
] = f"{settings.MEDIA_URL}scoring/og-images/councils/{council.slug}.png"
427+
context["og_image_path"] = (
428+
f"{settings.MEDIA_URL}scoring/og-images/councils/{council.slug}.png"
429+
)
430430
return context
431431

432432

@@ -709,6 +709,42 @@ class SectionView(PrivateScorecardsAccessMixin, SearchAutocompleteMixin, DetailV
709709
},
710710
],
711711
},
712+
"s6_c_e": {
713+
"pdf": {
714+
"src_pdf": "scoring/img/social-graphics/collaboration-and-engagement/collaboration-and-engagement.pdf",
715+
"src_jpg": "scoring/img/social-graphics/collaboration-and-engagement/collaboration-and-engagement.jpg",
716+
"height": 1158,
717+
"width": 2100,
718+
},
719+
"zip": "scoring/img/social-graphics/collaboration-and-engagement/collaboration-and-engagement.zip",
720+
"images": [
721+
{
722+
"src_facebook": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
723+
"src_instagram": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
724+
"alt": "Collaboration & Engagement; 79% of councils have a Climate Action Plan with SMART targets",
725+
},
726+
{
727+
"src_facebook": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
728+
"src_instagram": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
729+
"alt": "Collaboration & Engagement; 63% of councils published an annual Climate Action Update report; 53% of councils have ongoing ways for residents to influence Climate Action Plan development; 43% of local authorities have lobbied the UK or devolved governments for further climate action",
730+
},
731+
{
732+
"src_facebook": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
733+
"src_instagram": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
734+
"alt": "Collaboration & Engagement; 10 out of 11 Mayoral Authorities have three or more active schemes providing support or tailored advice to businesses in the local area to help them decarbonise",
735+
},
736+
{
737+
"src_facebook": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
738+
"src_instagram": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
739+
"alt": "Collaboration & Engagement; 5 out of 11 Mayoral Authorities have published a study of different decarbonisation pathways and scenarios to reach net zero",
740+
},
741+
{
742+
"src_facebook": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
743+
"src_instagram": "scoring/img/social-graphics/collaboration-and-engagement/[email protected]",
744+
"alt": "Collaboration & Engagement; Average scores by council type: 53% Single Tier; 43% District; 60% County; 23% Northern Ireland; 55% Combined Authority",
745+
},
746+
],
747+
},
712748
}
713749

714750
alt_map = dict((ca, non_ca) for non_ca, ca in combined_alt_map.items())
@@ -1142,12 +1178,12 @@ def get_context_data(self, **kwargs):
11421178

11431179
context["methodology_year"] = methodology_year
11441180
context["toc_template"] = f"scoring/methodology/{methodology_year}/_toc.html"
1145-
context[
1146-
"intro_template"
1147-
] = f"scoring/methodology/{methodology_year}/_intro.html"
1148-
context[
1149-
"details_template"
1150-
] = f"scoring/methodology/{methodology_year}/_details.html"
1181+
context["intro_template"] = (
1182+
f"scoring/methodology/{methodology_year}/_intro.html"
1183+
)
1184+
context["details_template"] = (
1185+
f"scoring/methodology/{methodology_year}/_details.html"
1186+
)
11511187

11521188
questions = (
11531189
PlanQuestion.objects.filter(section__year=methodology_year)

0 commit comments

Comments
 (0)