mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 15:29:38 -05:00
Show the custom title in all modes
This commit is contained in:
parent
b5c68fa5ca
commit
1543bb38d2
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>OnionShare</title>
|
||||
<title>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
@ -14,7 +14,7 @@
|
||||
<header class="d-flex">
|
||||
<div class="logo-container">
|
||||
<img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
|
||||
<h1>OnionShare</h1>
|
||||
<h1>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
@ -1,17 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>OnionShare</title>
|
||||
<title>{% if title %}{{ title }}{% else %}OnionShare Dropbox{% endif %}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<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_url_path }}/img/logo.png" title="OnionShare">
|
||||
<h1>OnionShare</h1>
|
||||
<h1>{% if title %}{{ title }}{% else %}OnionShare Dropbox{% endif %}</h1>
|
||||
</header>
|
||||
|
||||
<div class="upload-wrapper">
|
||||
@ -43,4 +45,5 @@
|
||||
<script src="{{ static_url_path }}/js/jquery-3.5.1.min.js"></script>
|
||||
<script async src="{{ static_url_path }}/js/receive.js" id="receive-script"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>OnionShare</title>
|
||||
<title>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
|
||||
@ -16,7 +16,7 @@
|
||||
<header class="d-flex">
|
||||
<div class="logo-container">
|
||||
<img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
|
||||
<h1>OnionShare</h1>
|
||||
<h1>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</h1>
|
||||
</div>
|
||||
<div class="information d-flex">
|
||||
<div>Total size: <strong>{{ filesize_human }}</strong> {% if is_zipped %} (compressed){% endif %}</div>
|
||||
@ -26,7 +26,8 @@
|
||||
|
||||
{% if breadcrumbs %}
|
||||
<ul class="breadcrumbs">
|
||||
{% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span class="sep">‣</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li>
|
||||
{% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span
|
||||
class="sep">‣</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
<body>
|
||||
<header class="clearfix">
|
||||
<img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
|
||||
<h1>OnionShare</h1>
|
||||
<h1>{% if title %}{{ title }}{% else %}OnionShare{% endif %}</h1>
|
||||
</header>
|
||||
|
||||
<div class="info-wrapper">
|
||||
|
@ -64,7 +64,9 @@ class ReceiveModeWeb:
|
||||
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
||||
r = make_response(
|
||||
render_template(
|
||||
"receive.html", static_url_path=self.web.static_url_path
|
||||
"receive.html",
|
||||
static_url_path=self.web.static_url_path,
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
)
|
||||
return self.web.add_security_headers(r)
|
||||
@ -168,6 +170,7 @@ class ReceiveModeWeb:
|
||||
"new_body": render_template(
|
||||
"thankyou.html",
|
||||
static_url_path=self.web.static_url_path,
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
}
|
||||
)
|
||||
@ -176,6 +179,7 @@ class ReceiveModeWeb:
|
||||
r = make_response(
|
||||
render_template("thankyou.html"),
|
||||
static_url_path=self.web.static_url_path,
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
return self.web.add_security_headers(r)
|
||||
|
||||
|
@ -230,6 +230,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
||||
is_zipped=self.is_zipped,
|
||||
static_url_path=self.web.static_url_path,
|
||||
download_individual_files=self.download_individual_files,
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -60,6 +60,7 @@ class WebsiteModeWeb(SendBaseModeWeb):
|
||||
breadcrumbs=breadcrumbs,
|
||||
breadcrumbs_leaf=breadcrumbs_leaf,
|
||||
static_url_path=self.web.static_url_path,
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user