Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small adjustments #31

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,18 @@ def start():
filter_warning = filter_warning_message
)

@app.route('/help', methods=['GET'])
def help():
return render_template(
"help.html"
)

@app.route('/contact', methods=['GET'])
def contact():
return render_template(
"contact.html"
)

@app.route('/query_lightcurve_data', methods=['GET'])
def query_lightcurve_data():
locusId = request.args.get('locusId')
Expand Down
68 changes: 0 additions & 68 deletions static/contact.html

This file was deleted.

4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@


<!-- <script src="https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js"></script> -->
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-3.5.1.min.js"></script><!-- TODO: Determine bokeh.js version dynamically -->
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-3.6.1.min.js"></script><!-- TODO: Determine bokeh.js version dynamically -->
</head>
<body {#{% if bodyClass is defined %}class="{{ bodyClass }}"{% endif %}#}>
<!-- main CONTENT -->
{% block body %}{% endblock %}
<!-- Extendable Footer -->
{% block foot %}{% endblock %}
<!-- NOTE: Default Javascript at the end (as recommended) in the inner most content template that requires JS (%impor does not solve this properly, AFAIK)--> -->
<!-- NOTE: Default Javascript at the end (as recommended) in the inner most content template that requires JS (%impor does not solve this properly, AFAIK)-->
</body>
</html>
12 changes: 12 additions & 0 deletions templates/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends 'site.html' %}
{% block content %}
<div style="margin-top: 29px;">
<h1>Questions? Comments? Feedback?</h1>
</div>

Please let our team know if we can answer any questions that you have about using
the Point of Interest broker or if there's any way we can make it more useful!<br>
<br>
You can email Nina Hernitschek (Lead Developer): [email protected]

{% endblock %}
60 changes: 6 additions & 54 deletions static/help.html → templates/help.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Help Page</title>

<!-- Styling-->
<style>
.header{
position: relative;
top: 0;
text-align: center;
width: 100%;
height: 75px; /* Set the fixed height of the footer here */
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}
.footer {
position: absolute;
bottom: 0;
text-align: center;
width: 100%;
height: 100px; /* Set the fixed height of the footer here */
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}
</style>

</head>
<body>
<div class="header">
<h1>Point of Interest Broker - Help Page</h1>
</div>
{% extends 'site.html' %}
{% block content %}
<div style="margin-top: 29px;">
<h1>Point of Interest Broker - Help Page</h1>
</div>



Expand Down Expand Up @@ -106,22 +76,4 @@ <h3>Cross-matches</h3>

Cross-matches to various astronomical catalogs are displayed.



<div class="footer">
<a href="/">Return to POI Broker</a>
</div>

</body>
</html>











{% endblock %}
2 changes: 1 addition & 1 deletion templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
An object's (previous) alerts can be accessed by filtering for the ztf_object_id.<br><br>
</p>
<p>
See the <a href="/static/help.html" title="help">Help</a> page for descriptions of the table values and available filters.
See the <a href="/help" title="help">Help</a> page for descriptions of the table values and available filters.
</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link active" href="/static/help.html">Help</a>
<a class="nav-link active" href="/help">Help</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="mailto:[email protected]">Contact</a>
<a class="nav-link active" href="/contact">Contact</a>
</li>
</ul>
</div>
Expand Down