Skip to content

Commit

Permalink
Remove legacy header, remaining aliases count, move action button to …
Browse files Browse the repository at this point in the history
…the filter bar
  • Loading branch information
maxxcrawford committed Jul 6, 2021
1 parent 45affdb commit ddab70c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 73 deletions.
12 changes: 0 additions & 12 deletions privaterelay/locales/en-US/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ faq-question-7-answer = We now support attachment forwarding. However, there is
# Variables:
# $email (string) - User email address
profile-label-welcome-html = <span>Welcome,</span> { $email }!
profile-headline-manage-relay = Manage your { -brand-name-relay } aliases
profile-headline-manage-domain = Manage your domain aliases
profile-supports-email-forwarding = { -brand-name-firefox-relay } supports email forwarding (including attachments) of email up to { email-size-limit } in size
profile-promo-upgrade-headline = Upgrade for even more features.
Expand Down Expand Up @@ -212,17 +211,6 @@ banner-choose-subdomain-label = Your domain is:
# $subdomain (url) - User-set subdomain
banner-choose-subdomain-label = You can make up any address @{ $subdomain }
remaining-aliases-promo-label = { $number ->
[one] { $number } remaining alias
*[other] { $number } remaining aliases
}
remaining-aliases-promo-label-unlimited = { $number ->
[one] { $number } alias. You can make unlimited!
*[other] { $number } aliases. You can make unlimited!
}
remaining-aliases-cta = Buy unlimited aliases
onboarding-headline = Three ways to create an alias
onboarding-tip-1 = Right here - just select the button in the upper right corner
Expand Down
31 changes: 31 additions & 0 deletions privaterelay/templates/includes/dashboard-filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,36 @@
</div>
<div class="c-filter-action">
<!-- Button -->
<form action="/emails/" class="dash-create" method="POST">
<input type="hidden" name="api_token" value="{{ user_profile.api_token }}">
{% if user_profile.at_max_free_aliases and not user_profile.has_unlimited %}
<a
href="{{ settings.FXA_SUBSCRIPTIONS_URL }}/products/{{ settings.PREMIUM_PROD_ID }}?plan={{ settings.PREMIUM_PRICE_ID }}"
target="_blank"
rel="noopener noreferrer""
class="btn btn-blue--ghost"
data-event-label="Upgrade"
>
<span class="generate-new-alias-text">
{% ftlmsg 'profile-label-upgrade' %}
</span>
</a>

{% else %}
<button
class="blue-btn-states dash-create-new-relay flx al-cntr jst-cntr"
title="Generate new alias"
type="submit"
value="Generate new alias"
data-event-label="Create New Relay Alias"
>
<span class="generate-new-relay-icon"></span>
<span class="generate-new-alias-text">
{% ftlmsg 'profile-label-generate-new-alias' %}</span>
</button>
{% endif %}


</form>
</div>
</div>
17 changes: 0 additions & 17 deletions privaterelay/templates/includes/remaining-aliases.html

This file was deleted.

42 changes: 0 additions & 42 deletions privaterelay/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,48 +67,6 @@
</div>
{% endif %}
{% include "includes/banners.html" %}
<div class="flx flx-row dashboard-header inset">
<h2 class="section-headline dashboard-headline">{% ftlmsg 'profile-headline-manage-relay' %}</h2>
<div class="remaining-aliases-wrapper flx al-cntr jst-cntr hide-750">
{% include "includes/remaining-aliases.html" %}
</div>
</div>
<div class="flx flx-row flx-end inset wrap-col-600">
<div class="show-750 flx al-cntr">
{% include "includes/remaining-aliases.html" %}
</div>
<form action="/emails/" class="dash-create" method="POST">
<input type="hidden" name="api_token" value="{{ user_profile.api_token }}">
{% if user_profile.at_max_free_aliases and not user_profile.has_unlimited %}
<a
href="{{ settings.FXA_SUBSCRIPTIONS_URL }}/products/{{ settings.PREMIUM_PROD_ID }}?plan={{ settings.PREMIUM_PRICE_ID }}"
target="_blank"
rel="noopener noreferrer""
class="btn btn-blue--ghost"
data-event-label="Upgrade"
>
<span class="generate-new-alias-text">
{% ftlmsg 'profile-label-upgrade' %}
</span>
</a>

{% else %}
<button
class="blue-btn-states dash-create-new-relay flx al-cntr jst-cntr"
title="Generate new alias"
type="submit"
value="Generate new alias"
data-event-label="Create New Relay Alias"
>
<span class="generate-new-relay-icon"></span>
<span class="generate-new-alias-text">
{% ftlmsg 'profile-label-generate-new-alias' %}</span>
</button>
{% endif %}


</form>
</div>

{% if relay_addresses|length == 0 %}
{% include "includes/dashboard_onboarding.html" %}
Expand Down
2 changes: 0 additions & 2 deletions static/scss/partials/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,6 @@ input.input-has-error {

.relay-email {
--emailCardPadding: 16px;

margin-top: 48px;
}

.card-top-row {
Expand Down

0 comments on commit ddab70c

Please sign in to comment.