summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2019-03-11 17:27:17 +1100
committerMiguel Jacq <mig@mig5.net>2019-03-11 17:27:17 +1100
commitf2314f24c7b6ca9b9ae3b852a1822174a23ddbd1 (patch)
tree7279690805253c487a0c98331e3b84d773fd7539
parenta928b369b0cdf7ba6cc851a3b1fa071de7b7d47e (diff)
downloadonionshare-f2314f24c7b6ca9b9ae3b852a1822174a23ddbd1.tar.gz
onionshare-f2314f24c7b6ca9b9ae3b852a1822174a23ddbd1.zip
Use png rather than svg for warning image. Concatenate flash messages with commas to reduce page height. Allow warning message to be wider
-rw-r--r--onionshare/web/receive_mode.py12
-rw-r--r--share/static/css/style.css5
-rw-r--r--share/static/img/warning.pngbin0 -> 804 bytes
-rw-r--r--share/templates/receive.html3
4 files changed, 8 insertions, 12 deletions
diff --git a/onionshare/web/receive_mode.py b/onionshare/web/receive_mode.py
index d6ef86ad..25d7aa1b 100644
--- a/onionshare/web/receive_mode.py
+++ b/onionshare/web/receive_mode.py
@@ -112,12 +112,14 @@ class ReceiveModeWeb(object):
else:
flash(msg, 'info')
else:
+ msg = 'Sent '
for filename in filenames:
- msg = 'Sent {}'.format(filename)
- if ajax:
- info_flashes.append(msg)
- else:
- flash(msg, 'info')
+ msg += '{}, '.format(filename)
+ msg = msg.rstrip(', ')
+ if ajax:
+ info_flashes.append(msg)
+ else:
+ flash(msg, 'info')
if self.can_upload:
if ajax:
diff --git a/share/static/css/style.css b/share/static/css/style.css
index 987f08f5..e445e5de 100644
--- a/share/static/css/style.css
+++ b/share/static/css/style.css
@@ -228,7 +228,6 @@ div#noscript {
color: #d709df;
padding: 1em;
line-height: 150%;
- max-width: 700px;
margin: 0 auto;
}
@@ -236,10 +235,6 @@ div#noscript a, div#noscript a:visited {
color: #d709df;
}
-div#noscript svg {
- max-width: 30px;
-}
-
.disable-noscript-xss-wrapper {
max-width: 900px;
margin: 0 auto;
diff --git a/share/static/img/warning.png b/share/static/img/warning.png
new file mode 100644
index 00000000..9be8cbaf
--- /dev/null
+++ b/share/static/img/warning.png
Binary files differ
diff --git a/share/templates/receive.html b/share/templates/receive.html
index 5b7ab23c..a93537c5 100644
--- a/share/templates/receive.html
+++ b/share/templates/receive.html
@@ -19,8 +19,7 @@
-->
<div id="noscript">
<p>
- <?xml version="1.0" encoding="UTF-8"?> <svg style="fill:#d709df;" viewBox="0 0 325 213" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 52.3 (67297) - http://www.bohemiancoding.com/sketch --> <title>Fill 1</title> <desc>Created with Sketch.</desc> <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd"> <path d="M62.864,111.653 L91.886,39.767 C93.839,34.888 99.374,32.518 104.249,34.473 C109.119,36.424 111.496,41.965 109.541,46.843 L93.83,86.5 C93.83,86.5 92.708,89.255 95.364,90.32 C98.076,91.407 99.109,88.616 99.109,88.616 L122.001,31.502 C123.955,26.627 129.381,24.41 134.254,26.363 C139.132,28.319 141.088,33.494 139.134,38.369 L116.242,95.481 C116.242,95.481 115.421,98.392 118.044,99.443 C120.641,100.484 121.957,97.771 121.957,97.771 L148.665,31.141 C150.618,26.268 155.775,24.039 160.65,25.993 C165.526,27.947 167.745,33.133 165.792,38.006 L139.085,104.636 C139.085,104.636 138.148,107.362 140.955,108.487 C143.714,109.592 144.798,106.926 144.798,106.926 L164.638,57.429 C166.592,52.553 171.634,51.027 176.507,52.98 C181.385,54.935 183.728,59.422 181.774,64.297 L152.778,136.637 C152.778,136.637 151.966,140.046 158.705,136.582 C175.983,127.715 183.235,127.482 183.235,127.482 C183.235,127.482 196.66,126.483 197.652,138.4 C198.368,147.042 194.399,145.9 184.966,152.378 C176.619,158.117 151.891,172.097 151.891,172.097 C151.891,172.097 121.294,191.835 94.92,181.263 C94.92,181.263 42.378,162.76 62.864,111.653 Z M270.905,152.632 L270.905,28.8 C270.905,12.96 257.946,0 242.106,0 L28.8,0 C12.96,0 0,12.96 0,28.8 L0,182.478 C0,198.318 12.96,211.278 28.8,211.278 L231.808,211.278 L242.106,211.278 L325.04,212.782 L270.905,152.632 Z" id="Fill-1" fill="#d709df"></path> </g> </svg>
- <strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads
+ <img src="/static/img/warning.png" title="Warning" /><strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads
sometimes never finish. To upload reliably, either set your Tor Browser
<a rel="noreferrer" target="_blank" href="https://tb-manual.torproject.org/en-US/security-slider/">security slider</a>
to Standard or