-
Notifications
You must be signed in to change notification settings - Fork 687
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 4 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 v3 onion services by April 30 to remain live. <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. nit: I think onion services need to be capitalized 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. should we include the year? |
||
</div> | ||
{% endif %} | ||
|
||
{% if g.show_v2_onion_migration_warning %} | ||
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. Given that v3 has already been configured, it might make sense to make this alert a lower level than alert |
||
<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 notify 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. I agree with your comment in #5679 (comment) steps remain to complete -> complete , in the spirit of not only less is more, but it may be interpreted by a journalist that they (the journalist) need to update something. 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. I propose we also update the wording From the associated issue:
In my experience, this makes translation more difficult. |
||
</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.
I recommend something along the lines of "please notify your administrator" per @ninavizz comment in #5679 (comment)