-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates v3 warnings with varying messages based on instance configs #5679
Changes from 3 commits
ad1e140
2f4d8ce
8f1d356
740994f
ed2a20e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,14 @@ | |
|
||
{% if g.user %} | ||
{% if g.show_v2_onion_eol_warning %} | ||
<div id="v2-onion-eol" class="warning-banner"> | ||
{{ gettext('<strong>Update Required:</strong> Your SecureDrop servers are still running v2 onion services, which are being phased out for security reasons. In February 2021, v2 onion services will be disabled, and your SecureDrop servers may become unreachable. <a href="//securedrop.org/v2-onion-eol" rel="noreferrer">Learn More</a>') }} | ||
<div id="v2-onion-eol" class="alert-banner"> | ||
<img src="{{ url_for('static', filename='i/bang-circle.png') }}" width="20" height="20"> {{ gettext('<strong>Update Required:</strong> Your SecureDrop servers must be updated to use v3 onion services by April 30 to remain live. <a href="//securedrop.org/v2-onion-eol" rel="noreferrer">Learn More</a>') }} | ||
</div> | ||
{% endif %} | ||
|
||
{% if g.show_v2_onion_migration_warning %} | ||
<div id="v2-complete-migration" class="alert-banner"> | ||
<img src="{{ url_for('static', filename='i/bang-circle.png') }}" width="20" height="20"> {{ gettext('<strong>Update Required:</strong> Steps remain to complete your onion service update. Please notifyyour admin. <a href="//securedrop.org/v2-onion-eol" rel="noreferrer">Learn More</a>') }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: notifyyour->notify your I'm fine with the wording here but I would suggest a slightly tweaked version
Rationale:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about best of all worlds: (This suggestion is based on both your comments above and feedback in #5672 - it's about as terse as I think it can get while still being accurate. I'm dead set against "Update Completion Required," it has a high cognitive load factor compared to just "Update required" IMO and reads like an awkward phishing attempt.) |
||
</div> | ||
{% endif %} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
=alert-banner | ||
.alert-banner | ||
display: block | ||
background-color: $color_urgent_coral | ||
color: white | ||
padding: 10px 0 | ||
emkll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
width: 100% | ||
text-align: center | ||
font-size: small | ||
box-sizing: border-box | ||
-moz-box-sizing: border-box | ||
|
||
img | ||
vertical-align: text-bottom | ||
|
||
a | ||
color: white | ||
border-bottom: 1px solid white | ||
|
||
.close | ||
cursor: pointer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that v3 has already been configured, it might make sense to make this alert a lower level than alert