Skip to content

Commit

Permalink
make external broker links open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Sep 19, 2023
1 parent 28b9f4d commit ae0f369
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 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

0 comments on commit ae0f369

Please sign in to comment.