mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Merge branch 'master' of github.com:mynodebtc/mynode
This commit is contained in:
commit
0325821c01
|
@ -488,6 +488,27 @@ def page_help():
|
|||
templateData = {"ui_settings": read_ui_settings()}
|
||||
return render_template('help.html', **templateData)
|
||||
|
||||
## Error handlers
|
||||
@app.errorhandler(404)
|
||||
def not_found_error(error):
|
||||
templateData = {
|
||||
"title": "myNode 404",
|
||||
"header_text": "Page not found",
|
||||
"subheader_text": "Click on the mynode logo reach the home page",
|
||||
"ui_settings": read_ui_settings()
|
||||
}
|
||||
return render_template('state.html', **templateData), 404
|
||||
|
||||
@app.errorhandler(500)
|
||||
def internal_error(error):
|
||||
templateData = {
|
||||
"title": "myNode 500",
|
||||
"header_text": "Internal server error",
|
||||
"subheader_text": "If you were manually upgrading myNode, redo it.",
|
||||
"ui_settings": read_ui_settings()
|
||||
}
|
||||
return render_template('state.html', **templateData), 500
|
||||
|
||||
# Disable browser caching
|
||||
@app.after_request
|
||||
def set_response_headers(response):
|
||||
|
|
|
@ -57,11 +57,6 @@ table,
|
|||
border-color: #eee;
|
||||
}
|
||||
|
||||
.settings_input {
|
||||
color: white;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.main_page_warning_block,
|
||||
.upgrade_ad_main_page {
|
||||
color: #eee;
|
||||
|
|
Loading…
Reference in New Issue
Block a user