-
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
UI refresh #382
UI refresh #382
Conversation
…de javascript warning less obnoxious, and use less js dependencies.
Still not totally done yet, but much further. What's left:
|
Conflicts: securedrop/journalist_templates/base.html securedrop/source_templates/index.html securedrop/static/css/securedrop.css
This is all done. I didn't do much to make the journalist interface better because I don't want to step on @Hainish's work. I can make it look better later. |
{% block header %} | ||
<div id="header"> | ||
<a href="/"><img src="/static/i/{{ header_image }}" alt="SecureDrop"></a> | ||
<a href="/"><img src="/static/i/{{ header_image }}" class="logo small" alt="SecureDrop"></a> |
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.
Nit: should the alt message be "SecureDrop", or the name of org? That can be a follow-up (or we can just not bother).
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.
We don't know the name of org. :( Perhaps we will someday, when #344 is done.
<h2>Remember this code and keep it secret</h2> | ||
<p class="center">To protect your identity, we're assigning you a unique code name.</p> | ||
|
||
<hr class="no-line" /> |
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.
It's quirky, but... I like it. This can stay, although I wonder if there is a better way.
import datetime | ||
|
||
def format_time(d): | ||
return d.strftime('%b %d, %Y %I:%M %p') |
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.
PEP8 demands 4-space indentation (which is also consistent with the rest of the codebase).
|
Conflicts: securedrop/journalist.py securedrop/static/css/securedrop.css
Icon IMGs now carry their own TITLE tooltips, eliminating the SPAN elements originating in #382. Each li.submission carries an ARIA label composed from those of its filename link, file-type icon, and read-state icon.
Icon IMGs now carry their own TITLE tooltips, eliminating the SPAN elements originating in #382. Each li.submission carries an ARIA label composed from those of its filename link, file-type icon, and read-state icon.
Icon IMGs now carry their own TITLE tooltips, eliminating the SPAN elements originating in #382. Each LI.submission carries an ARIA label composed from those of its filename link, file-type icon, and read-state icon.
Icon IMGs now carry their own TITLE tooltips, eliminating the SPAN elements originating in #382. Each LI.submission carries an ARIA label composed from those of its filename link, file-type icon, and read-state icon.
This is a partial pull request for the new UI (#329) so that others can get to work with what I've done. Most notably:
Here are things to note:
source_templates/index.html
, which doesn't usebase.html
because the index page has a different layout now.Here are things that aren't yet done in the source interface:
securedrop/config/custom_theme_image.py
) don't work anymore, right now I've just hard-coded the SecureDrop logo there. There's commented out code at the bottom ofsource_templates/base.html
for using the custom header images, but I haven't made it work yet.I think that's it. All the tests pass too. (Maybe we should write a custom header test?)