Skip to content

Commit

Permalink
Consolidate add on data block into one tag (#1065)
Browse files Browse the repository at this point in the history
* Consolidate add on data block into one tag

* nit spacing
  • Loading branch information
codemist authored Aug 31, 2021
1 parent d66a0ec commit a5776b3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions privaterelay/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,16 @@
data-fxa-subscriptions-url="{{ settings.FXA_SUBSCRIPTIONS_URL }}"
data-premium-prod-id="{{ settings.PREMIUM_PROD_ID }}"
data-premium-price-id="{{ settings.PREMIUM_PRICE_ID }}"
data-aliases-used-val="{{ relay_addresses|length }}"
data-emails-forwarded-val="{{ user_profile.emails_forwarded }}"
data-emails-blocked-val="{{ user_profile.emails_blocked }}"
{% with request.user.profile_set.first as user_profile %}
data-premium-subdomain-set="{{ user_profile.subdomain }}"
{% endwith %}
data-premium-enabled="{{ settings.PREMIUM_ENABLED }}"
>
</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 a5776b3

Please sign in to comment.