summaryrefslogtreecommitdiff
path: root/share/templates/receive.html
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-10-13 14:35:40 -0400
committerGitHub <noreply@github.com>2019-10-13 14:35:40 -0400
commit896659c6963c14c4e047cff7f3d421977060ed23 (patch)
tree660468dd7478fb001ced211a4a33ae28a1b5f9a4 /share/templates/receive.html
parentbbf6c02da645fcd4fc50db18dd341178ad4fa2e6 (diff)
parent7d24bf9ffcd1e21e087431c21bfc658803a61ab6 (diff)
downloadonionshare-2.2.tar.gz
onionshare-2.2.zip
Merge pull request #1048 from micahflee/developv2.2
Version 2.2
Diffstat (limited to 'share/templates/receive.html')
-rw-r--r--share/templates/receive.html28
1 files changed, 7 insertions, 21 deletions
diff --git a/share/templates/receive.html b/share/templates/receive.html
index 4f207a03..59a3ebe4 100644
--- a/share/templates/receive.html
+++ b/share/templates/receive.html
@@ -2,31 +2,18 @@
<html>
<head>
<title>OnionShare</title>
- <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="/static/css/style.css" media="all">
+ <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
+ <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
</head>
<body>
<header class="clearfix">
- <img class="logo" src="/static/img/logo.png" title="OnionShare">
+ <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
<h1>OnionShare</h1>
</header>
<div class="upload-wrapper">
- <!--
- We are not using a <noscript> tag because it only works when the security slider is set to
- Safest, not Safer: https://trac.torproject.org/projects/tor/ticket/29506
- -->
- <div id="noscript">
- <p>
- <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
- <a target="_blank" href="/noscript-xss-instructions">turn off your Tor Browser's NoScript XSS setting</a>.</p>
- </div>
-
- <p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
+ <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
<p class="upload-header">Send Files</p>
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
@@ -45,14 +32,13 @@
</ul>
</div>
- <form id="send" method="post" enctype="multipart/form-data" action="{{ upload_action }}">
+ <form id="send" method="post" enctype="multipart/form-data" action="/upload">
<p><input type="file" id="file-select" name="file[]" multiple /></p>
<p><button type="submit" id="send-button" class="button">Send Files</button></p>
</form>
</div>
- <script src="/static/js/receive-noscript.js"></script>
- <script src="/static/js/jquery-3.4.0.min.js"></script>
- <script async src="/static/js/receive.js"></script>
+ <script src="{{ static_url_path }}/js/jquery-3.4.0.min.js"></script>
+ <script async src="{{ static_url_path }}/js/receive.js"></script>
</body>
</html>