Skip to content

Commit

Permalink
have external links in observation form open in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Sep 19, 2023
1 parent ae0f369 commit 655f2ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions tom_observations/facilities/lco.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,27 @@ class LCOSettings(OCSSettings):
# Override them as desired for a specific OCS implementation.
end_help = """
Try the
<a href="https://lco.global/observatory/visibility/">
<a href="https://lco.global/observatory/visibility/" target="_blank">
Target Visibility Calculator.
</a>
"""

instrument_type_help = """
<a href="https://lco.global/observatory/instruments/">
<a href="https://lco.global/observatory/instruments/" target="_blank">
More information about LCO instruments.
</a>
"""

max_airmass_help = """
Advice on
<a href="https://lco.global/documentation/airmass-limit">
<a href="https://lco.global/documentation/airmass-limit" target="_blank">
setting the airmass limit.
</a>
"""

exposure_time_help = """
Try the
<a href="https://exposure-time-calculator.lco.global/">
<a href="https://exposure-time-calculator.lco.global/" target="_blank">
online Exposure Time Calculator.
</a>
"""
Expand All @@ -75,7 +75,7 @@ class LCOSettings(OCSSettings):
static_cadencing_help = """
<em>Static cadence parameters.</em> Leave blank if no cadencing is desired.
For information on static cadencing with LCO,
<a href="https://lco.global/documentation/">
<a href="https://lco.global/documentation/" target="_blank">
check the Observation Portal getting started guide, starting on page 27.
</a>
"""
Expand Down
2 changes: 1 addition & 1 deletion tom_observations/facilities/lt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, *args, **kwargs):
HTML('''
<p>
This plugin is a stub for the Liverpool Telescope plugin. In order to install the full plugin, please
see the instructions <a href="https://github.com/TOMToolkit/tom_lt">here</a>.
see the instructions <a href="https://github.com/TOMToolkit/tom_lt" target="_blank">here</a>.
</p>
'''),
HTML(f'''<a class="btn btn-outline-primary" href={{% url 'tom_targets:detail' {target_id} %}}>Back</a>''')
Expand Down
4 changes: 2 additions & 2 deletions tom_observations/facilities/ocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class OCSSettings():
# Override them as desired for a specific OCS implementation.
ipp_value_help = """
Value between 0.5 to 2.0.
<a href="https://lco.global/documents/20/the_new_priority_factor.pdf">
<a href="https://lco.global/documents/20/the_new_priority_factor.pdf" target="_blank">
More information about Intra Proprosal Priority (IPP).
</a>
"""

observation_mode_help = """
<a href="https://lco.global/documentation/special-scheduling-modes/">
<a href="https://lco.global/documentation/special-scheduling-modes/" target="_blank">
More information about Rapid Response mode.
</a>
"""
Expand Down

0 comments on commit 655f2ab

Please sign in to comment.