129 lines
3.1 KiB
HTML
129 lines
3.1 KiB
HTML
{% extends "artsurvey/base.html" %}
|
|
{% load heasarc_templates %}
|
|
{% load artsurvey_templates %}
|
|
{% load simbadescape %}
|
|
{% load i18n %}
|
|
|
|
{% block header %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
{% if ntotal %}<h2>Total {{ ntotal }}</h2>{% endif %}
|
|
</div>
|
|
<div class="col-sm-6">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
<div class="container-fluid">
|
|
|
|
|
|
{% if srcs %}
|
|
|
|
<!--table class="table"-->
|
|
<table id="CatalogTable" class="table" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm">MetaSource</th>
|
|
<th class="th-sm">RA</th>
|
|
<th class="th-sm">Dec</th>
|
|
<th class="th-sm">R</th>
|
|
{% for b in bands %}
|
|
<th class="th-sm">{{ b.slug }}</th>
|
|
{% endfor %}
|
|
<th class="th-sm">Category</th>
|
|
<th class="th-sm">CName</th>
|
|
<th class="th-sm">Other Names</th>
|
|
<th class="th-sm">Papers</th>
|
|
<th class="th-sm">Notes</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for src in srcs %}
|
|
|
|
<tr>
|
|
<td>{{ forloop.counter }}</td>
|
|
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
|
|
<td>{{ src.ra|floatformat:4 }}</td>
|
|
<td>{{ src.dec|floatformat:4 }}</td>
|
|
<td>{{ src.radec_error|floatformat:1 }}</td>
|
|
|
|
{% for b in bands %}
|
|
<td>
|
|
{% for s in src|get_metasource_for_band:b %}
|
|
<a href="{{ s.get_absolute_url }}">{{ s.survey }}</a><br>
|
|
{% endfor %}
|
|
</td>
|
|
{% endfor %}
|
|
|
|
<td>
|
|
{% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{% if s.category %}{{ s.category }} ({{ s.object_class }}) |{% endif %}{% endif %}{% endfor %}
|
|
</td>
|
|
|
|
<td>
|
|
{% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{{ s.cname }}{% endif %}{% endfor %}
|
|
</td>
|
|
|
|
<td>
|
|
{% for s in src.artsurveysource_set.all %}
|
|
{% if s.catalog.exists %}
|
|
{% for o in s.othername_set.all %}
|
|
{{ o }}<br>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</td>
|
|
|
|
<td>
|
|
{% for s in src.artsurveysource_set.all %}
|
|
{% if s.catalog.exists %}
|
|
{% for o in s.ads.all %}
|
|
<a href="https://ui.adsabs.harvard.edu/abs/{{ o }}/abstract" target="_blank">{{ o }}</a> <span title="{{ o.notes }}"><span class="glyphicon glyphicon-comment"></span></span><br>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{% for s in src.artsurveysource_set.all %}
|
|
{% if s.catalog.exists %}
|
|
{% if s.turkish %}
|
|
<a class="btn btn-danger btn-xs" role="button" href="{{ s.get_absolute_url }}">Turkish</a>
|
|
{% endif %}
|
|
|
|
{% if s.notes %}
|
|
<a href="{{ s.get_absolute_url }}">{{ s.survey }} {{ s.band.slug }}</a> <span title="{{ s.notes }}"><span class="glyphicon glyphicon-comment" style="color:black"></span></span>
|
|
|
|
{% endif %}
|
|
|
|
{% if s.notes_paper %}
|
|
{% if not s.notes %}<a href="{{ s.get_absolute_url }}">{{ s.survey }} {{ s.band.slug }}</a>{% endif %} <span title="{{ s.notes_paper }}"><span class="glyphicon glyphicon-comment" style="color:red"></span></span>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
{% endfor %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfooter>
|
|
</tr>
|
|
|
|
</tfooter>
|
|
|
|
</table>
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|