mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-15 00:09:45 -05:00
Merge pull request #1327 from micahflee/1306_customization
Allow custom title for each onion service
This commit is contained in:
commit
8f9d21f783
18 changed files with 144 additions and 60 deletions
|
|
@ -18,12 +18,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from flask import (
|
||||
request,
|
||||
render_template,
|
||||
make_response,
|
||||
jsonify,
|
||||
session)
|
||||
from flask import request, render_template, make_response, jsonify, session
|
||||
from flask_socketio import emit, join_room, leave_room
|
||||
|
||||
|
||||
|
|
@ -72,6 +67,7 @@ class ChatModeWeb:
|
|||
"chat.html",
|
||||
static_url_path=self.web.static_url_path,
|
||||
username=session.get("name"),
|
||||
title=self.web.settings.get("general", "title"),
|
||||
)
|
||||
)
|
||||
return self.web.add_security_headers(r)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -390,6 +390,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…
Add table
Add a link
Reference in a new issue