clean up pages
This commit is contained in:
parent
e4ec84b27f
commit
f5cd21e0ad
@ -105,7 +105,7 @@ def get_bb_data():
|
|||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
#return get_data()
|
#return get_data()
|
||||||
return render_template('index.html', title = dashboard_title, logo = logo, description = description)
|
return render_template('index.html', title = dashboard_title, logo = logo)
|
||||||
@app.route('/bulletin_board')
|
@app.route('/bulletin_board')
|
||||||
def dash_bb():
|
def dash_bb():
|
||||||
return get_bb_data()
|
return get_bb_data()
|
||||||
@ -116,7 +116,7 @@ def dash_loc():
|
|||||||
#return render_template('index.html', data = str(get_data()))
|
#return render_template('index.html', data = str(get_data()))
|
||||||
@app.route('/<string:page_name>/')
|
@app.route('/<string:page_name>/')
|
||||||
def render_static(page_name):
|
def render_static(page_name):
|
||||||
return render_template('%s.html' % page_name, title = dashboard_title, logo = logo)
|
return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug = True, port=dash_port, host=dash_host)
|
app.run(debug = True, port=dash_port, host=dash_host)
|
||||||
|
@ -34,6 +34,9 @@ p {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<hr />
|
<hr />
|
||||||
This is a dashboard for the HBLink3 GPS/Data project, found at <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a>.
|
{{description}}
|
||||||
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -36,7 +36,6 @@ p {
|
|||||||
</table>
|
</table>
|
||||||
<hr />
|
<hr />
|
||||||
<p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p>
|
<p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p>
|
||||||
<p style="text-align: left;">{{description}}</p>
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user