Skip to content

Commit

Permalink
Link to German research (#7138)
Browse files Browse the repository at this point in the history
Co-authored-by: Pomax <pomax@nihongoresources.com>
  • Loading branch information
TheoChevalier and Pomax authored Jul 27, 2021
1 parent 51a42fd commit cb7b15c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="row">
<div class="col-12 col-lg-4">
<h2 class="text-white h2-heading">{% trans "Download the full report" %}</h2>
<a class="btn btn-primary btn-download mt-2 mx-2" href="https://assets.mofoprod.net/network/documents/Mozilla_YouTube_Regrets_Report.pdf" download>{% trans "Download PDF" %}</a>
<a class="btn btn-primary btn-download mt-2 mx-2" href="{{ report }}" download>{% trans "Download PDF" %}</a>
</div>

<div class="col-12 col-lg-6 offset-lg-2 mt-5 mt-lg-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="mb-3 hero-heading">{% trans "YouTube Regrets" %}</h1>
Mozilla and 37,380 YouTube users conducted a study to better understand harmful YouTube recommendations. <span class="fst-italic">This is what we learned</span>.
{% endblocktrans %}
</p>
<a href="https://assets.mofoprod.net/network/documents/Mozilla_YouTube_Regrets_Report.pdf" class="btn btn-download" download>{% trans "Download Full Report" %}</a>
<a href="{{ report }}" class="btn btn-download" download>{% trans "Download Full Report" %}</a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="col-lg-8">
<h2 class="text-white recommendations__title">{% trans "Our recommendation: Urgent action must be taken to rein in YouTube’s algorithm." %}</h2>
<p class="text-white">
{% blocktrans with report_link=' href="https://assets.mofoprod.net/network/documents/Mozilla_YouTube_Regrets_Report.pdf" target="_blank"' trimmed %}
{% blocktrans with report_link=' href="'|add:report|add:'" target="_blank"' trimmed %}
YouTube’s algorithm drives 700 million hours of watch time on the platform every day. The consequences of this are simply too great to trust them to fix this on their own. Below, find a summary of Mozilla’s recommendations to YouTube, policymakers, and people who use YouTube. Details on these recommendations can be found in the <a{{report_link}}>full report</a>.
{% endblocktrans %}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@


{% block content_wrapped %}
{% with en_report="https://assets.mofoprod.net/network/documents/Mozilla_YouTube_Regrets_Report.pdf" de_report="https://assets.mofoprod.net/network/documents/Mozilla_YouTube_Regrets_Report_German.pdf" %}
<main role="main">
{% block main %}
<div class="transition-bg">
{# Hero #}
{% include "./fragments/hero.html" %}
{% if request.LANGUAGE_CODE == "de" %}
{% include "./fragments/hero.html" with report=de_report %}
{% else %}
{% include "./fragments/hero.html" with report=en_report %}
{% endif %}

{# Intro #}
{% include "./fragments/intro.html" %}
Expand All @@ -44,12 +49,21 @@
{% include 'wagtailpages/pages/youtube-regrets-2021/youtube_regrets_accordion.html' %}

{# Recommendations section #}
{% include './fragments/recommendations.html' %}
{% if request.LANGUAGE_CODE == "de" %}
{% include './fragments/recommendations.html' with report=de_report %}
{% else %}
{% include './fragments/recommendations.html' with report=en_report %}
{% endif %}

{# Download pdf #}
{% include './fragments/downloads.html' %}
{% if request.LANGUAGE_CODE == "de" %}
{% include './fragments/downloads.html' with report=de_report %}
{% else %}
{% include './fragments/downloads.html' with report=en_report %}
{% endif %}
{% endblock %}
</main>
{% endwith %}
{% endblock %}


Expand Down

0 comments on commit cb7b15c

Please sign in to comment.