Skip to content

Commit

Permalink
Merge pull request #688 from TOMToolkit/feature/open_outside_links_in…
Browse files Browse the repository at this point in the history
…_new_tabs

Feature/open outside links in new tabs
  • Loading branch information
jchate6 committed Sep 19, 2023
2 parents 28b9f4d + 229d6f5 commit 58f5b19
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions tom_alerts/brokers/alerce.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def __init__(self, *args, **kwargs):
self.helper.layout = Layout(
HTML('''
<p>
Please see the <a href="http://alerce.science/">ALeRCE homepage</a> for information about the ALeRCE
filters.
Please see the <a href="http://alerce.science/" target="_blank">ALeRCE homepage</a> for information
about the ALeRCE filters.
'''),
self.common_layout,
'oid',
Expand Down
2 changes: 1 addition & 1 deletion tom_alerts/brokers/antares.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
HTML('''
<p>
This plugin is a stub for the ANTARES plugin. In order to install the full plugin, please see the
instructions <a href="https://github.com/TOMToolkit/tom_antares">here</a>.
instructions <a href="https://github.com/TOMToolkit/tom_antares" target="_blank">here</a>.
</p>
'''),
HTML('''<a class="btn btn-outline-primary" href={% url 'tom_alerts:list' %}>Back</a>''')
Expand Down
4 changes: 2 additions & 2 deletions tom_alerts/brokers/gaia.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def __init__(self, *args, **kwargs):
self.helper.layout = Layout(
HTML('''
<p>
Please see the <a href="http://gsaweb.ast.cam.ac.uk/alerts/tableinfo">Gaia homepage</a> for a detailed
description of this broker.
Please see the <a href="http://gsaweb.ast.cam.ac.uk/alerts/tableinfo" target="_blank">Gaia homepage</a>
for a detailed description of this broker.
'''),
self.common_layout,
Fieldset(
Expand Down
2 changes: 1 addition & 1 deletion tom_alerts/brokers/hermes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
HTML('''
<p>
This plugin is a stub for the Hermes Broker plugin. In order to install the full plugin, please see the
instructions <a href="https://github.com/TOMToolkit/tom_hermes">here</a>.
instructions <a href="https://github.com/TOMToolkit/tom_hermes" target="_blank">here</a>.
</p>
'''),
HTML('''<a class="btn btn-outline-primary" href={% url 'tom_alerts:list' %}>Back</a>''')
Expand Down
4 changes: 2 additions & 2 deletions tom_alerts/brokers/lasair.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def __init__(self, *args, **kwargs):
self.helper.layout = Layout(
HTML('''
<p>
Please see the <a href="https://lasair-ztf.lsst.ac.uk/api">Lasair website</a> for more detailed
instructions on querying the broker.
Please see the <a href="https://lasair-ztf.lsst.ac.uk/api" target="_blank">Lasair website</a> for
more detailed instructions on querying the broker.
'''),
self.common_layout,
Fieldset(
Expand Down
4 changes: 2 additions & 2 deletions tom_alerts/brokers/scout.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def __init__(self, *args, **kwargs):
self.helper.layout = Layout(
HTML('''
<p>
Please see the <a href="https://ssd-api.jpl.nasa.gov/doc/scout.html">Scout API Reference</a>
for a detailed description of the service.
Please see the <a href="https://ssd-api.jpl.nasa.gov/doc/scout.html target="_blank"">Scout API
Reference</a> for a detailed description of the service.
</p>
'''),
self.common_layout,
Expand Down
4 changes: 2 additions & 2 deletions tom_alerts/brokers/tns.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def __init__(self, *args, **kwargs):
self.helper.layout = Layout(
HTML('''
<p>
Please see <a href="https://wis-tns.weizmann.ac.il/sites/default/files/api/TNS_APIs_manual.pdf">
the TNS API Manual</a> for a detailed description of available filters.
Please see <a href="https://wis-tns.weizmann.ac.il/sites/default/files/api/TNS_APIs_manual.pdf"
target="_blank">the TNS API Manual</a> for a detailed description of available filters.
</p>
'''),
self.common_layout,
Expand Down
8 changes: 4 additions & 4 deletions tom_common/templates/tom_common/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="text-center">Congratulations! Welcome to your new TOM.</h2>
<h3>Next steps</h3>
<ul>
<li>
Check out the <a href="https://tom-toolkit.readthedocs.io/en/stable/" title="TOM Toolkit home page">TOM
Check out the <a href="https://tom-toolkit.readthedocs.io/en/stable/" title="TOM Toolkit home page" target="_blank">TOM
Toolkit homepage</a> for the latest news, downloads and documentation.
</li>
<li>
Expand All @@ -21,13 +21,13 @@ <h3>Next steps</h3>
project's <code>urls.py</code>.
</li>
<li>
Take a look at some <a href="https://tom-toolkit.readthedocs.io/en/stable/customization/index.html">common first customizations</a>.
Take a look at some <a href="https://tom-toolkit.readthedocs.io/en/stable/customization/index.html" target="_blank">common first customizations</a>.
</li>
</ul>
<h3>Other Resources</h3>
<ul>
<li>The official <a href="https://www.djangoproject.com/">Django documentation</a>.</li>
<li>The official <a href="http://www.astropy.org/">Astropy documentation</a>.</li>
<li>The official <a href="https://www.djangoproject.com/" target="_blank">Django documentation</a>.</li>
<li>The official <a href="http://www.astropy.org/" target="_blank">Astropy documentation</a>.</li>
</ul>
</div>
<div class="col-md-4">
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<td>{{ site.code }}</td>
<td>{{ telescope.code }}</td>
<td>{{ telescope.status }}</td>
<td><a href="{{ site.weather_url }}">link</a></td>
<td><a href="{{ site.weather_url }}" target="_blank">link</a></td>
</tr>
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit 58f5b19

Please sign in to comment.