bug fixe, 404 and favicon

release
Steve Nyemba 2 years ago
parent 579e15f8f7
commit dde722191e

@ -19,8 +19,10 @@ from jinja2 import Environment, BaseLoader
_app = Flask(__name__)
@_app.route('/favicon.ico')
def favicon():
global _config
return send_from_directory(os.path.join(_app.root_path, 'static/img'),
'vanderbilt-logo.png', mimetype='image/vnd.microsoft.icon')
'logo.png', mimetype='image/vnd.microsoft.icon')
@_app.route("/")
def _index ():
@ -39,7 +41,7 @@ def _index ():
except Exception as e:
_index_page = "404.html"
pass
print (_config );
return render_template(_index_page,**_args)
@_app.route('/id/<uid>')

@ -0,0 +1,44 @@
<!--
(c) 2004 - 2022 Health Information Privacy Laboratory
Vanderbilt University Medical Center
This is a flask-based cms that considers the following for a website :
- header
- content
- menu
- content
- footer
-->
<!DOCTYPE html>
<html lang="en">
<head >
<title>{{layout.header.title}}</title>
<link rel="shortcut icon" href="{{system.context}}/favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="x12,parser,healthcare,tools,informatics,research,phd,post-doc,api,python, jamia,amia,pnas,nature">
<meta name="robots" content="/, follow, max-snippet:-1, max-image-preview:large">
<link href="{{system.context}}/static/css/{{system.theme}}/default.css" rel="stylesheet" type="text/css">
<link href="{{system.context}}/static/css/animation/ocean.css" rel="stylesheet" type="text/css">
<link href="{{system.context}}/static/css/icons.css" rel="stylesheet" type="text/css">
<link href="{{system.context}}/static/css/border.css" rel="stylesheet" type="text/css">
<script src="{{system.context}}/static/js/jx/dom.js"></script>
<script src="{{system.context}}/static/js/jx/utils.js"></script>
<script src="{{system.context}}/static/js/jx/rpc.js"></script>
<script src="{{system.context}}/static/js/jx/ext/modal.js"></script>
<script src="{{system.context}}/static/js/jquery/jquery.js"></script>
<script src="{{system.context}}/static/js/menu.js"></script>
<script src="{{system.context}}/static/js/search.js"></script>
<script src="{{system.context}}/static/js/fontawesome/js/all.js"></script>
</head>
<body>
<div align="center" class="large-text">
404
</div>
</body></html>
Loading…
Cancel
Save