mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 23:15:18 -04:00
Display a template after closing the server, and standardize the style of other simple templates
This commit is contained in:
parent
5665b3c313
commit
0734de68ea
7 changed files with 18 additions and 20 deletions
|
@ -321,7 +321,8 @@ class Web(object):
|
||||||
def close(slug_candidate):
|
def close(slug_candidate):
|
||||||
self.check_slug_candidate(slug_candidate)
|
self.check_slug_candidate(slug_candidate)
|
||||||
self.force_shutdown()
|
self.force_shutdown()
|
||||||
return ""
|
r = make_response(render_template('closed.html'))
|
||||||
|
return self.add_security_headers(r)
|
||||||
|
|
||||||
def common_routes(self):
|
def common_routes(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
body {
|
|
||||||
background-color: #FFC4D5;
|
|
||||||
color: #FF0048;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 20em;
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
body {
|
|
||||||
background-color: #222222;
|
|
||||||
color: #ffffff;
|
|
||||||
text-align: center;
|
|
||||||
font-family: sans-serif;
|
|
||||||
padding: 5em 1em;
|
|
||||||
}
|
|
|
@ -1,9 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Error 404</title>
|
<title>OnionsShare: Error 404</title>
|
||||||
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||||
<link href="/static/css/404.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>404</body>
|
<body>
|
||||||
|
<p>Error 404: You probably typed the OnionShare address wrong</p>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
10
share/templates/closed.html
Normal file
10
share/templates/closed.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>OnionShare is closed</title>
|
||||||
|
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Thank you for using OnionShare</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -3,7 +3,6 @@
|
||||||
<head>
|
<head>
|
||||||
<title>OnionShare</title>
|
<title>OnionShare</title>
|
||||||
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||||
<link href="/static/css/denied.css" rel="stylesheet" type="text/css" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>OnionShare download in progress</p>
|
<p>OnionShare download in progress</p>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
|
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
|
||||||
<form method="post" enctype="multipart/form-data" action="/{{ slug }}/upload">
|
<form method="post" enctype="multipart/form-data" action="/{{ slug }}/upload">
|
||||||
<p><input type="file" name="file[]" multiple /></p>
|
<p><input type="file" name="file[]" multiple /></p>
|
||||||
<p><input type="submit" name="upload" class="button" value="Upload Files" /></p>
|
<p><input type="submit" class="button" value="Send Files" /></p>
|
||||||
<div>
|
<div>
|
||||||
{% with messages = get_flashed_messages() %}
|
{% with messages = get_flashed_messages() %}
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="post" action="/{{ slug }}/close">
|
<form method="post" action="/{{ slug }}/close">
|
||||||
<input type="submit" name="close" class="close-button" value="I'm Finished Uploading" />
|
<input type="submit" class="close-button" value="I'm Finished Uploading" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue