-
Notifications
You must be signed in to change notification settings - Fork 688
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
Changes from all commits
917a4ca
cf83481
eaec284
7029a45
270f66d
0ff78b7
3715e81
cbd7d3d
5311926
afeddb9
338579c
9da00f8
7d58503
3ab1061
057871d
a71ff1b
d45ec2d
0ba94c7
ea58f9f
2662268
3dfdf31
e07d5e2
0510bdc
7fde4c5
662a326
b7025f3
fed9a41
005bff0
ef474c1
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{% extends "base.html" %} | ||
{% block body %} | ||
<div id="content" class="journalist-view-all"> | ||
<h2><span class="headline">Latest submissions</span></h2> | ||
<h2><span class="headline">Sources</span></h2> | ||
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. Yay, this has always irked me! |
||
{% if sources %} | ||
<p>Here are the various collections of documents that have been submitted, with the most recently updated first:</p> | ||
<form id="delete_collections" action="/col/delete" method="post"> | ||
<input id='filter' type='text' placeholder='filter by codename' autofocus="autofocus"> | ||
<ul id="cols" class="plain"> | ||
|
@@ -27,11 +26,8 @@ <h2><span class="headline">Latest submissions</span></h2> | |
</ul> | ||
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}"/> | ||
<p> | ||
<button type="submit" name="action" value="delete">Delete selected</button> | ||
(<span id="select_all">select all</span>, <span id="select_none">select none</span>) | ||
</p> | ||
<p>Click the button above to delete selected collections. | ||
<em>Warning: If you do this, the selected collections of submisisons will be unrecoverable and each corresponding source will no longer be able to login with their previous codename.</em> | ||
<button type="submit" name="action" value="delete" class="small"><i class="fa fa-minus-circle"></i> Delete selected</button> | ||
<span id="select_all" class="select"><i class="fa fa-check-square-o"></i> select all</span> <span id="select_none" class="select"><i class="fa fa-square-o"></i> select none</span> | ||
</p> | ||
</form> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% block body %} | ||
<p class="notification">Thanks! Your reply has been stored.</p> | ||
<p class="flash notification"> | ||
<i class="fa fa-info-circle pull-left"></i> | ||
Thanks! Your reply has been stored. | ||
</p> | ||
|
||
<p>You will now see it in the list of documents in that collection. Once the source has read it, they will be asked to delete it. If it disappears from the list, then you know it has been read.</p> | ||
|
||
<p><a href="/col/{{ sid }}">Continue to the list of documents for {{ codename }}...</a></p> | ||
<p><a href="/col/{{ sid }}">Continue to the list of documents for <strong>{{ codename }}</strong>...</a></p> | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{# these are flash messages that appear at the top and are really scary, like if you're using tor2web #} | ||
{% with messages = get_flashed_messages(with_categories=True, category_filter=["banner-warning"]) %} | ||
{% for category, message in messages %} | ||
<p class="flash {{ category }}"><i class="fa fa-exclamation-triangle pull-left"></i> {{ message|safe }}</p> | ||
{% endfor %} | ||
{% endwith %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="/static/css/securedrop.css" type="text/css" media="all" /> | ||
<link rel="icon" type="image/png" href="/static/i/favicon.png"> | ||
<title>SecureDrop</title> | ||
<title>SecureDrop | Protecting Journalists and Sources</title> | ||
<link rel="stylesheet" href="/static/css/normalize.css" type="text/css" media="all" /> | ||
<link rel="stylesheet" href="/static/css/styles.css" type="text/css" media="all" /> | ||
<link rel="stylesheet" href="/static/css/font-awesome.css" type="text/css" media="all" /> | ||
<link rel="icon" type="image/png" href="/static/i/favicon.png" > | ||
{% block extrahead %}{% endblock %} | ||
</head> | ||
<body> | ||
{% with messages = get_flashed_messages(with_categories=True, category_filter=["header-warning"]) %} | ||
{% for category, message in messages %} | ||
<p class="{{ category }}">{{ message|safe }}</p> | ||
{% endfor %} | ||
{% endwith %} | ||
{% include 'banner_warning_flashed.html' %} | ||
|
||
<div id="wrapper"> | ||
<div class="content"> | ||
{% 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> | ||
{% if use_custom_header_image %} | ||
<div class="powered">Powered by <img src="/static/i/securedrop_small.png" alt="SecureDrop"></div> | ||
<div class="powered"> | ||
Powered by<br/> | ||
<img src="/static/i/securedrop_small.png" alt="SecureDrop"> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block body %}{% endblock %} | ||
<div class="panel selected"> | ||
<hr class="no-line" /> | ||
|
||
{% block body %}{% endblock %} | ||
|
||
{% block footer %} | ||
<div id="footer"> | ||
Like all software, SecureDrop may contain security bugs. Use at your own risk.<br/> | ||
Powered by <em>SecureDrop {{ version }}</em>. | ||
</div> | ||
|
||
{% block footer %} | ||
<footer> | ||
Like all software, SecureDrop may contain security bugs. Use at your own risk. Powered by SecureDrop {{ version }}. | ||
</footer> | ||
{% endblock %} | ||
</div> | ||
</body> | ||
</html> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
{% with messages = get_flashed_messages(with_categories=true) %} | ||
{% if messages %} | ||
{% for category, message in messages %} | ||
<p class="{{ category }}">{{ message }}</p> | ||
{% if category != 'banner-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. A comment would be nice, either here or in banner_warning_flashed.html, to explain why they're separated like this (because escaping and also layout). |
||
<p class="flash {{ category }}"> | ||
{% if category == 'notification' %} | ||
<i class="fa fa-info-circle pull-left"></i> | ||
{% elif category == 'error' %} | ||
<i class="fa fa-exclamation-triangle pull-left"></i> | ||
{% endif %} | ||
{{ message }} | ||
</p> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endwith %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,42 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block body %} | ||
<div id="content" class="submit-2"> | ||
<h2>Submitting for the first time</h2> | ||
<p>To protect your identity, we're assigning you a unique code name.</p> | ||
<p><b>Your code name is:</b></p> | ||
<p id="code-name" class="code-name">{{ codename }}</p> | ||
<div id='regenerate-box'> | ||
Click Generate if you would like to create a different code name. | ||
<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 commentThe 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. |
||
|
||
<div class="code"> | ||
<i class="fa fa-lock pull-left"></i> <strong id="codename">{{ codename }}</strong> | ||
<div class="pull-right"> | ||
<form id="regenerate-form" method="post"> | ||
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}"> | ||
Desired code name length: | ||
<select name="number-words" id="number-words"> | ||
<option value="7">7</option> | ||
<option value="8" selected>8</option> | ||
<option value="7">7 words</option> | ||
<option value="8" selected>8 words</option> | ||
<option value="9">9</option> | ||
<option value="10">10</option> | ||
</select> | ||
words. | ||
<input type="submit" id="regenerate-submit" value="Generate"> | ||
<button type="submit" id="regenerate-submit" class="small"> | ||
<i class="fa fa-refresh"></i> | ||
</button> | ||
</form> | ||
</div> | ||
<p> | ||
It is extremely important that you both remember this code and keep it secret. Memorize the code or write it down, but do not save it on your computer. After submitting documents, you will need to provide this code to log back in and check for responses. Also, this code is the only authentication needed to log in with your account: if you write it down, be sure to keep it hidden. | ||
</p> | ||
<form id="create-form" method="post" action="/create" autocomplete="off"> | ||
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}"> | ||
<p> | ||
Once you've taken care of that: <button id="continue-button" class="button-custom" type="submit">Continue...</button> | ||
</p> | ||
</form> | ||
</div> | ||
|
||
<div class="clearfix"></div> | ||
<hr class="no-line"> | ||
|
||
<p class="serious">Store this code somewhere safe, or memorize it. It can be used to compromise your anonymity.</p> | ||
|
||
<hr class="no-line" /> | ||
|
||
<p><strong>Next steps:</strong> You will need to provide this code to log back in and check for responses.</p> | ||
|
||
<hr class="no-line" /> | ||
|
||
<form id="create-form" method="post" action="/create" autocomplete="off"> | ||
<input name="csrf_token" type="hidden" value="{{ csrf_token() }}"> | ||
<button type="submit" class="btn block pull-right" id="continue-button"><i class="fa fa-arrow-circle-o-right"></i> Continue</button> | ||
</form> | ||
{% endblock %} |
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.