Skip to content

Commit

Permalink
Remove dontate nav CTA experiment code (Fixes #15446)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed Nov 13, 2024
1 parent b5d981c commit be9a83e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 88 deletions.
38 changes: 0 additions & 38 deletions bedrock/mozorg/templates/mozorg/home/home-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

{% block page_desc %}{{ ftl('home-did-you-know-mozilla-the-maker') }}{% endblock %}

{% set show_fundraising_nav_cta = switch('fundraising-nav-cta-july2024', ["en"]) %}
{% set show_firefox_app_store_banner = switch('firefox-app-store-banner') %}

{% block page_css %}
Expand All @@ -44,49 +43,12 @@
{% endif %}
{% endblock %}

<!-- Custom donate button macro for the MoFo donation nav CTA experiment -->
{% macro donate_button() -%}
<a class='mzp-c-button mzp-t-secondary c-fx-users' href='https://foundation.mozilla.org/?form=cta-donate-nav-fx'>
<span class='mzp-c-button-icon-start'>
<svg width='16' height='16' viewBox='0 0 16 16'>
<path fill='#ff0000' d='M1.2,2.2c-1.5,1.5-1.5,4.2,0,5.7L8,15c2.3-2.4,4.5-4.7,6.9-7c1.5-1.5,1.5-4.2,0-5.7c-1.5-1.5-4-1.5-5.6,0L8,3.5 L6.7,2.3C5.1,0.6,2.7,0.6,1.2,2.2'/>
</svg>
</span>
Donate
</a>

<a class='mzp-c-button mzp-t-secondary c-non-fx-users' href='https://foundation.mozilla.org/?form=cta-donate-nav'>
<span class='mzp-c-button-icon-start'>
<svg width='16' height='16' viewBox='0 0 16 16'>
<path fill='#ff0000' d='M1.2,2.2c-1.5,1.5-1.5,4.2,0,5.7L8,15c2.3-2.4,4.5-4.7,6.9-7c1.5-1.5,1.5-4.2,0-5.7c-1.5-1.5-4-1.5-5.6,0L8,3.5 L6.7,2.3C5.1,0.6,2.7,0.6,1.2,2.2'/>
</svg>
</span>
Donate
</a>
{%- endmacro %}

{% block site_header %}
{% if show_fundraising_nav_cta and variation == '1' %}
{% with custom_nav_cta=donate_button() %}
{% include 'includes/protocol/navigation/navigation.html' %}
{% endwith %}
{% else %}
{% include 'includes/protocol/navigation/navigation.html' %}
{% endif %}
{% endblock %}

{% block page_banner %}
{% if show_firefox_app_store_banner %}
{% include 'includes/banners/mobile/firefox-app-store.html' %}
{% endif %}
{% endblock %}

{% block experiments %}
{% if show_fundraising_nav_cta %}
{{ js_bundle('fundraising-nav-cta')}}
{% endif %}
{% endblock %}

{% set utm_params = '?utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=homepage' %}

{% block content %}
Expand Down
1 change: 0 additions & 1 deletion bedrock/mozorg/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class HomeView(L10nTemplateView):
m24_template_name = "mozorg/home/home-m24.html"
template_name = "mozorg/home/home-new.html"
old_template_name = "mozorg/home/home-old.html"
template_context_variations = ["1", "2", "3"]
activation_files = ["mozorg/home-new", "mozorg/home"]

ftl_files_map = {old_template_name: ["mozorg/home"], template_name: ["mozorg/home-new"]}
Expand Down
43 changes: 0 additions & 43 deletions media/js/mozorg/home/fundraising-nav-cta.es6.js

This file was deleted.

6 changes: 0 additions & 6 deletions media/static-bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,12 +1312,6 @@
],
"name": "firefox_features_article"
},
{
"files": [
"js/mozorg/home/fundraising-nav-cta.es6.js"
],
"name": "fundraising-nav-cta"
},
{
"files": [
"js/firefox/browsers/compare-article.es6.js"
Expand Down

0 comments on commit be9a83e

Please sign in to comment.