prepare for about page
This commit is contained in:
parent
9d30e94c86
commit
05c5cae519
@ -114,6 +114,9 @@ def dash_bb():
|
||||
def dash_loc():
|
||||
return get_loc_data()
|
||||
#return render_template('index.html', data = str(get_data()))
|
||||
@app.route('/<string:page_name>/')
|
||||
def render_static(page_name):
|
||||
return render_template('%s.html' % page_name)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug = True, port=dash_port, host=dash_host)
|
||||
|
@ -18,6 +18,19 @@ p {
|
||||
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p>
|
||||
<h1 style="text-align: center;">{{title}}</h1>
|
||||
<hr />
|
||||
<table style="margin-left: auto; margin-right: auto;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h2><a href="/">Dashboard</a></h2>
|
||||
</td>
|
||||
<td>
|
||||
<h2><a href="about">About Dashboard</a></h2>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
<p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p>
|
||||
<p style="text-align: left;">{{description}}</p>
|
||||
<table>
|
||||
@ -32,4 +45,5 @@ p {
|
||||
</table>
|
||||
<hr />
|
||||
<div style="text-align: center;">Dashboard created by KF7EEL - <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a><br />HBLink created by N0MJS.<br /><a href="https://github.com/HBLink-org">HBLink GitHub page</a></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user