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