Skip to content

Commit

Permalink
Add premium dashboard data to body class
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Aug 19, 2021
1 parent 1043e57 commit 756cfa2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion privaterelay/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@
{% block content %}

{% get_social_accounts request.user as accounts %}
<firefox-private-relay-addon-data data-fxa-subscriptions-url="{{ settings.FXA_SUBSCRIPTIONS_URL }}" data-premium-prod-id="{{ settings.PREMIUM_PROD_ID }}" data-premium-price-id="{{ settings.PREMIUM_PRICE_ID }"></firefox-private-relay-addon-data>
<firefox-private-relay-addon-data
data-fxa-subscriptions-url="{{ settings.FXA_SUBSCRIPTIONS_URL }}"
data-premium-prod-id="{{ settings.PREMIUM_PROD_ID }}"
data-premium-price-id="{{ settings.PREMIUM_PRICE_ID }"
>
</firefox-private-relay-addon-data>

<firefox-private-relay-addon-dashboard-data
data-aliases-used-val="{{ relay_addresses|length }}"
data-emails-forwarded-val="{{ user_profile.emails_forwarded }}"
data-emails-blocked-val="{{ user_profile.emails_blocked }}"
>
</firefox-private-relay-addon-dashboard-data>

<main id="profile-main" class=" bg-light dashboard-container " data-api-token="{{ user_profile.api_token }}">
<div class="messages-profile">
{% include "includes/messages.html" %}
Expand Down

0 comments on commit 756cfa2

Please sign in to comment.