aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-08-08 15:08:33 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 16:16:54 +0100
commitfb26467ee1c49dae6b46e93757d4b19903676bd8 (patch)
tree3dc5cbdf8e75c2243626b2526532c42ebdbe8f8e
parente003fe8bf76f92f1ba084b13448ac5f51ea0f9cd (diff)
[Westminster] Hide ‘change password’ & ‘change email’ links on /my
-rw-r--r--templates/web/base/my/my.html6
-rw-r--r--web/cobrands/westminster/base.scss9
2 files changed, 12 insertions, 3 deletions
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html
index 048d99ef9..ae2683309 100644
--- a/templates/web/base/my/my.html
+++ b/templates/web/base/my/my.html
@@ -34,7 +34,7 @@ li .my-account-buttons a {
<ul>
<li>[% loc('Name:') %] [% c.user.name %]
<li>[% loc('Email:') %] [% c.user.email OR '-' %]
- <p class="my-account-buttons">
+ <p class="my-account-buttons my-account-buttons--email">
[% IF NOT c.user.email %]
<a href="/auth/change_email">[% loc('Add') %]</a>
[% ELSIF c.user.email_verified %]
@@ -61,9 +61,9 @@ li .my-account-buttons a {
<p class="my-account-buttons">
[% IF c.session.oauth.change_password_uri %]
- <a href="[% c.session.oauth.change_password_uri | html %]">[% loc('Change password') %]</a>
+ <a class="change-password" href="[% c.session.oauth.change_password_uri | html %]">[% loc('Change password') %]</a>
[% ELSE %]
- <a href="/auth/change_password">
+ <a class="change-password" href="/auth/change_password">
[%~ IF c.user.password ~%]
[% loc('Change password') %]
[%~ ELSE ~%]
diff --git a/web/cobrands/westminster/base.scss b/web/cobrands/westminster/base.scss
index 3820c8fea..06504be32 100644
--- a/web/cobrands/westminster/base.scss
+++ b/web/cobrands/westminster/base.scss
@@ -230,3 +230,12 @@ ol.big-numbers>li:before {
.item-list__item--expandable__actions a.btn--primary {
display: none; // No updates
}
+
+
+.my-account-buttons--email {
+ display: none; // hide 'change email' link
+}
+
+.my-account-buttons a.change-password {
+ display: none;
+}