Templates added

This commit is contained in:
2024-06-05 11:33:02 +03:00
parent 69a2160eb7
commit 50c53060bf
117 changed files with 16737 additions and 0 deletions

666
Templates/base.html Normal file
View File

@@ -0,0 +1,666 @@
{% load heasarc_templates %}
{% load srgcat_templates %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}SRG ArXiv{% endblock %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<META NAME="author" CONTENT="Roman Krivonos, email: krivonos [at] iki.rssi.ru">
<META NAME="description" CONTENT="High Energy Astrophysics Department at IKI RAN (Moscow, Russia)">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<!-- MDBootstrap Datatables -->
<link href="/static/MDB-Free/css/addons/datatables.min.css" rel="stylesheet">
<script type="text/javascript" src="/static/MDB-Free/js/addons/datatables.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- include Aladin Lite CSS file in the head section of your page -->
<link rel="stylesheet" href="https://aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.css" />
<link rel="stylesheet" href="/static/css/style.css" />
{% block javascripts %}{% endblock %}
</head>
<body>
<script>
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip()
$('#dtsrgcat').DataTable({
"order": [[ 5, "desc" ]],
});
$('#dtheasarc').DataTable({
"order": [[ 7, "asc" ]],
});
$('#dtheasarcxraymaster').DataTable({
"order": [[ 2, "asc" ]],
});
$('#dtheasarcchandramaster').DataTable({
"order": [[ 2, "asc" ]],
});
$('#dterosurvey').DataTable({
"order": [[ 2, "asc" ]],
});
$('#dtsimbad').DataTable({
"order": [[ 5, "asc" ]],
});
$('#dterotrans').DataTable({
"order": [[ 2, "asc" ]],
});
$('#dterotranscat').DataTable({
"order": false,
});
$('#srgcatstats').DataTable({
"order": [[ 5, "desc" ]],
});
$('#dtalltransients').DataTable({"order":[[6, "desc"]]});
$('#dttrans').DataTable();
$('#dtfadedtransients').DataTable();
$('#dtztfalerts').DataTable({
"order": false,
});
$('#dtddumps').DataTable({
"order": false,
});
$('#dtskymapsources').DataTable({
"order": [[ 10, "desc" ]],
"scrollX": true,
});
$('.dataTables_length').addClass('bs-select');
$('#dtgaia').DataTable({
"order": [[ 3, "asc" ]],
});
$('#dtalerce').DataTable();
$('.dataTables_length').addClass('bs-select');
});
</script>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-list"></span> SRG/ArXiv</a>
</div>
<ul class="nav navbar-nav">
<!--li><a href="/heasarc"><i class="fa fa-rocket"></i> HEASARC</a></li-->
<!--li><a href="/artsim"><i class="fa fa-rocket"></i> ArtSim</a></li-->
<!--li><a href="/monthplan/obsid"><span class="glyphicon glyphicon-search"></span> Search</a></li-->
<!--li><a href="/admin"><span class="glyphicon glyphicon-cog"></span> Django</a></li-->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Projects
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/monthplan">Scheduling</a></li>
<li><a href="/erosurvey">eRosita survey</a></li>
<li><a href="/erotrans">eRosita transients</a></li>
<li><a href="/srgcat">ART-XC survey</a></li>
<li><a href="/srgcat/erosita">ART-XC - eRosita cross-match</a></li>
<li><a href="/artsim">ART-XC simulations</a></li>
<li><a href="/heasarc">HEASARC catalogs</a></li>
<li><a href="/astrobasis">ZTF alerts</a></li>
</ul>
</li>
<li><a href="/docs/index.html"><span class="glyphicon glyphicon-book"></span> Docs</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-wrench"></span> Tools
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/target/">Lookup target in survey</a></li>
<li><a href="{% url 'show sky map form' %}">Show SkyMap plate</a></li>
<li><a href="/srgcat/srga">Get SRG Name</a></li>
<!--li><a href="/docs/index.html"><span class="glyphicon glyphicon-book"></span> Documentation</a></li-->
<li><a href="/admin"><span class="glyphicon glyphicon-cog"></span> Django</a></li>
<li><a href="http://arxiv.srg.rssi.ru:15672"><span class="glyphicon glyphicon-cog"></span> RabbitMQ</a></li>
</ul>
</li>
{% if user.is_authenticated %}
<li class="dropdown">
<a class="dropdown-toggle navbar-right" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-user"></span> {% trans 'Groups' %}
<span class="caret"></span></a>
<ul class="dropdown-menu">
{% for group in user.groups.all %}
<li><a href="/groups/{{ group.pk }}/info">{{ group }}</a></li>
{% endfor %}
<li><a href="/stats/">Web Analytics</a></li>
</ul>
</li>
{% endif %}
</ul>
{% if user.is_authenticated %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/logout">{{ user.email }} <span class="glyphicon glyphicon-log-out"></span> Sign Out</a>
{% else %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/login"><span class="glyphicon glyphicon-log-in"></span> Sign In</a>
{% endif %}
{% if today %}<a class="btn btn-light navbar-btn navbar-right disabled">{{ today|date:"d M Y H:i:s" }} MSK</a>{% endif %}
</div>
</nav>
<div class="container-fluid">
{% block header %}{% endblock %}
</div>
<div class="container-fluid">
{% block precontent %}
<h3>ART-XC sources detected on the accumulated sky map <a href="{% url 'skymap sources csv' %}"><span class="glyphicon glyphicon-download"></span></a></h3>
<div class="row">
<div class="col-sm-3">
<div class="card">
<div class="card-body">
<div class="alert alert-warning">
<p class="card-text">
<h4 class="card-title">Information</h4>
{% if catalog %}<h4>Catalog</h4>{{ catalog }}{% endif %}
{% if dump %}
<h4>Dump</h4> <a href="{{ dump.get_absolute_url }}">{{ dump }}</a><br /><strong>Date</strong> {{ dump.date|date:"d M Y H:i" }}
{% endif %}
{% if survey %} <h4>Survey</h4> <a href="{{ survey.get_absolute_url }}">{{ survey }}</a>{% endif %}
</p>
{% if ntotal %}<p><h4>Statistics</h4> Total <strong>{{ ntotal }}</strong> items</p>{% endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="card">
<div class="card-body">
<div class="alert alert-warning">
<p class="card-text">
<h4 class="card-title">Catalogs cross-match</h4>
Filter: <a href="{% url 'art-xc survey index' %}">All</a> |
<a href="{% url 'skymap sources heasarc' %}">Heasarc</a> |
<a href="{% url 'skymap sources simbad' %}">Simbad</a> |
<a href="{% url 'skymap sources gaia' %}">Gaia</a><br />
<!-- Show <a href="{% url 'skymap sources latest' %}"><b>newest</b></a> sources added in the latest data dump. -->
</p>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="card">
<div class="card-body">
<div class="alert alert-warning">
<p class="card-text">
<h4 class="card-title">All-sky X-ray surveys</h4>
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources integral2020' %}">INTEGRAL 2020</a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources intrefcat' %}">INTEGRAL</a>
<small>(<a target="_blank" href="https://heasarc.gsfc.nasa.gov/W3Browse/integral/intrefcat.html">HEASARC <span class="glyphicon glyphicon-new-window"></span></a>, <a target="_blank" href="http://www.isdc.unige.ch/integral/science/catalogue">ISDC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources intrefcat csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources swiftbat105m' %}">Swift-BAT</a>
<small>(105 months, <a target="_blank" href="https://swift.gsfc.nasa.gov/results/bs105mon/">GSFC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources swiftbat105m csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources maxi gsc' %}">MAXI/GSC</a>
<small>(<a target="_blank" href="https://heasarc.gsfc.nasa.gov/W3Browse/maxi/maxigschgl.html">HEASARC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources maxi gsc csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources 3maxi' %}">3MAXI</a>
<small>(<a target="_blank" href="http://cdsarc.u-strasbg.fr/viz-bin/Cat?J/ApJS/238/32">VizieR <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources 3maxi csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources rass2rxs' %}">ROSAT</a>
<small>(<a target="_blank" href="https://heasarc.gsfc.nasa.gov/W3Browse/rosat/rass2rxs.html">HEASARC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources rass2rxs csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources xmmsl2' %}">XMMSL2</a>
<small>(<a target="_blank" href="https://heasarc.gsfc.nasa.gov/W3Browse/xmm-newton/xmmslewful.html">HEASARC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources xmmsl2 csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<span class="glyphicon glyphicon-star"></span>
<a href="{% url 'skymap sources xss' %}">RXTE</a>
<small>(<a target="_blank" href="https://heasarc.gsfc.nasa.gov/W3Browse/xte/xteasscat.html">HEASARC <span class="glyphicon glyphicon-new-window"></span></a>)</small>
<a href="{% url 'skymap sources xss csv' %}"><span class="glyphicon glyphicon-download"></span></a>
<br />
<a href="{% url 'skymap sources exclude allsky' %}"><em>Exclude all above</em></a>
<a href="{% url 'skymap sources exclude allsky csv' %}"><span class="glyphicon glyphicon-download"></span></a><br />
</p>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="card">
<div class="card-body">
<div class="alert alert-warning">
<p class="card-text">
<h4 class="card-title">Selections
<small>[<a href="{% url 'edit all selections' %}">edit</a>]</small>
<small>[<a href="{% url 'create new selection' %}"><span class="glyphicon glyphicon-plus"></span></a>]</small>
</h4>
{% if selections %}
{% for selection in selections %}
{% if selection.public %}<span class="glyphicon glyphicon-eye-open"></span>
{% else %}
<span class="glyphicon glyphicon-eye-close"></span>
{% endif %}
[{{ selection.slug }}] <a href="{{ selection.get_absolute_url }}">{{ selection }} ({{ selection.skymap_sources.count }})</a>
<br />
{% endfor %}
{% endif %}
</p>
{% if selection %}
<p>
<h4>Selection: [{{ selection.slug }}] <a href="{{ selection.get_download_url }}"><span class="glyphicon glyphicon-download"></span></a></h4>
{% endif %}
</p>
<p>
<h4>Session parameters <small>[<a href="{% url 'user session parameters' %}">edit</a>]</small></h4>
<pre>Sign. threshold = {{ request.user.session.sign_threshold }}</pre>
{% if request.user.session.target_ra and request.user.session.target_dec %}
<pre><span class="glyphicon glyphicon-screenshot"></span> Target {{ request.user.session.target_ra }}<sup>RA</sup> {{ request.user.session.target_dec }}<sup>Dec</sup></pre>
{% endif %}
</p>
</div>
</div>
</div>
</div>
</div>
{% if skymap_sources and user.is_authenticated %}
<!--p>Data dump <a href="{{ dump.get_absolute_url }}">{{ dump }}</a> ({{ dump.date|date:"d M Y H:i:s" }}) {% if survey %} Survey <a href="{{ survey.get_absolute_url }}">{{ survey }}</a>{% endif %}</p-->
<!--p>Filter:
<a href="{% url 'art-xc survey index' %}">All</a> |
<a href="{% url 'skymap sources heasarc' %}">Heasarc</a> |
<a href="{% url 'skymap sources simbad' %}">Simbad</a> |
<a href="{% url 'skymap sources gaia' %}">Gaia</a> |
<a href="{% url 'skymap sources latest' %}"><b>Latest</b></a></p-->
{% if dump %}<pre>{{ dump.get_catalog_absolute_path }}</pre>{% endif %}
<table id="dtskymapsources" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
<thead>
<tr>
<!--th class="th-sm">#</th-->
<th class="th-sm">Name</th>
<th class="th-sm">Match</th>
<th class="th-sm" width="20%" >Type? (abridged<3)</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Cnts</th>
<th class="th-sm">Expo</th>
<!--th class="th-sm">Rate</th-->
<th class="th-sm">Flux</th>
<th class="th-sm">Sign.</th>
<!--th class="th-sm">log10(nFalse)</th-->
<th class="th-sm">SkyMap</th>
<!--th class="th-sm">Latest update</th-->
<th class="th-sm">Selection</th>
</tr>
</thead>
<tbody>
{% for src in skymap_sources %}
<tr>
<!--td>{{forloop.counter}}</td-->
<td><a target="_blank" href="{{ src.get_absolute_url }}">{{ src.name }}</a> | <a data-toggle="tooltip" data-placement="top" title="Lookup target position in survey" href="{% url 'target survey GET' %}?ra={{ src.ra|safe }}&dec={{ src.dec|safe }}"><span class="glyphicon glyphicon-flag"></span></a>
<!--small>
{% if src.get_integral_count > 0 %}
| <b>INTEGRAL</b>
{% endif %}
{% if src.get_swiftbat_count > 0 %}
| <b>Swift</b>
{% endif %}
{% if src.get_4xmm_count > 0 %}
| <b>4XMM</b>
{% endif %}
{% if src.get_rosat_count > 0 %}
| <b>ROSAT</b>
{% endif %}
</small-->
<!--{% if src.gaia.all.count %}
| <b>Gaia</b>
{% endif %}-->
</td>
<td>
<b>{{ src.heasarc.all.count }}</b>
</td>
<td><p>
{% for simsrc in src.simbad.all|slice:":3" %}
{% if simsrc.obj_class %}{{ simsrc.obj_class }} {% if simsrc.is_redshift_real %}{% if simsrc.z > 0 %}<strong><span style="color:red;">z={{ simsrc.z }}</span></strong> {% endif %}{% endif %}|{% endif %}
{% endfor %}
{% with count=src.simbad.all.count %}
{% if count > 3 %}<strong>(+{{ count|add:"-3" }})</strong>{% endif %}
{% endwith %}
{% if src.simbad_notfound %}
<strong></strong>
{% endif %}
{% if src.simbad_failed %}
<strong>Aborted</strong>
{% endif %}
</p>
</td>
<td>{{ src.ra|floatformat:5 }}</td>
<td>{{ src.dec|floatformat:5 }}</td>
<td>{{ src.cnts|floatformat:1 }}</td>
<td>{{ src.exptime|floatformat:0 }}</td>
<td>{{ src.flux|stringformat:"1.2e" }}</td>
<td>{{ src.sig|floatformat:2 }}</td>
<!--td>{{ src.get_log10_nfalse|floatformat:2 }}</td-->
<td>
<!--a href="{{ src.skymap.get_absolute_url }}">{{ src.skymap }}</a-->
<a href="/srgcat/{{ src.skymap.pk }}/skymap_radec/{{ src.ra|safe }}/{{ src.dec|safe }}/">{{ src.skymap }}</a>
</td>
<td>
{% if selection %}
<a class="btn btn-danger btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/delete">{{ selection.slug }} <span class="glyphicon glyphicon-remove"></span></a>
{% else %}
{% for selection in selections %}
{% is_skymapsource_in_selection selection src as selected %}
{% if selected %}
<a class="btn btn-danger btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/delete">{{ selection.slug }} <span class="glyphicon glyphicon-remove"></span></a>
{% else %}
<a class="btn btn-warning btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/add">{{ selection.slug }} <span class="glyphicon glyphicon-plus"></span></a>
{% endif %}
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
<tfooter>
<tr>
<th class="th-sm"></th>
<th class="th-sm">Heasarc (R<40'')</th>
<th class="th-sm">Simbad (R<40'')</th>
<th class="th-sm">J2000</th>
<th class="th-sm">J2000</th>
<th class="th-sm">cts</th>
<th class="th-sm">s</th>
<!--th class="th-sm">cts/s</th-->
<th class="th-sm">erg/s/cm2</th>
<th class="th-sm"></th>
<th class="th-sm"></th>
<!--th class="th-sm"></th-->
<!--th class="th-sm"></th-->
<th class="th-sm"></th>
</tr>
</tfooter>
</table>
<hr />
{% endif %}
{% endblock %}
</div>
<div class="container">
{% if erosurveys and user.is_authenticated and user|has_group:"srg-erosita-survey" %}
<h3>SRG/eRosita surveys:</h3>
<ul>
{% for cat in erosurveys %}
<li>{{ cat.obsid }} <a href="{{ cat.get_absolute_url }}">{{ cat.name }}</a> ({{ cat.nrows }})</li>
{% endfor %}
</ul>
{% endif %}
{% if erotrans and user.is_authenticated and user|has_group:"srg-erosita-transients" %}
<h3>SRG/eRosita daily source lists ({{ ntotal }}):</h3>
<table id="dterotranscat" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm">Start</th>
<th class="th-sm">Stop</th>
<th class="th-sm">ObsID</th>
<th class="th-sm">N/rows</th>
<th class="th-sm">N/matched</th>
<th class="th-sm">N/Transients</th>
<th class="th-sm">Created</th>
</tr>
</thead>
<tbody>
{% for cat in erotrans %}
<tr>
<td>{{ cat.start|date:"d M Y" }}</td>
<td>{{ cat.stop|date:"d M Y" }}</td>
<td><a href="{{ cat.get_absolute_url }}">{{ cat.obsid }}</a></td>
<td>{{ cat.nrows }}</td>
<td>{{ cat.nmatched }}</td>
<td>{{ cat.ntransients }}</td>
<td>{{ cat.created|date:"d.m.y H:i" }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot></tfoot>
</table>
{% endif %}
{% if ztf_ntotal and user.is_authenticated %}
<h3><a href="{% url 'ztf index' %}">ZTF Alerts</a> ({{ ztf_ntotal }}):</h3>
<p>
EarlyClassifier: <a href="{% url 'ztf alerce agn early' %}">AGN</a> {% if agn_count %}({{ agn_count }}){% endif %} |
<a href="{% url 'ztf alerce sn early' %}">SN Candidate</a> {% if sn_count %}({{ sn_count }}){% endif %} |
<a href="{% url 'ztf alerce vs early' %}">Variable Star</a> {% if vs_count %}({{ vs_count }}){% endif %} |
<a href="{% url 'ztf alerce asteroid early' %}">Asteroid</a> {% if asteroid_count %}({{ asteroid_count }}){% endif %} |
<a href="{% url 'ztf alerce bogus early' %}">Bogus</a> {% if bogus_count %}({{ bogus_count }}){% endif %}
</p>
<table id="dtztfalerts" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm">Alert</th>
<th class="th-sm">First</th>
<th class="th-sm">Last</th>
<th class="th-sm">RA/Dec</th>
<th class="th-sm">Class</th>
<th class="th-sm">g</th>
<th class="th-sm">r</th>
<th class="th-sm">Survey</th>
<th class="th-sm">Loaded</th>
</tr>
</thead>
<tbody>
{% for ztf in ztf_alerts %}
<tr>
<td><a href="{{ ztf.get_absolute_url }}">{{ ztf.oid }}</a></td>
<td>{{ ztf.firstdate|date:"d.m.y H:i" }}</td>
<td>{{ ztf.lastdate|date:"d.m.y H:i" }}</td>
<td>{{ ztf.ra|floatformat:3 }}, {{ ztf.dec|floatformat:3 }}
<a data-toggle="tooltip" data-placement="top" title="Lookup target position in survey" href="{% url 'target survey GET' %}?ra={{ ztf.ra|safe }}&dec={{ ztf.dec|safe }}"><span class="glyphicon glyphicon-flag"></span></a>
</td>
<td>
{{ ztf.get_early_class }} ({{ ztf.pclassearly|floatformat:2 }})
{% if ztf.classrf %}
<strong>{{ ztf.classrf }}</strong>
{% endif %}
</td>
<td>{{ ztf.mean_magpsf_g|floatformat:1 }}</td>
<td>{{ ztf.mean_magpsf_r|floatformat:1 }}</td>
<td>
{% if ztf.survey %}
{% for survey in ztf.survey.all %}
<a data-toggle="tooltip" data-placement="top" title="Show this survey block" href="{{ survey.get_absolute_url }}">{{ survey.experiment }}</a> {{ survey.start|date:"d.m.y H:i" }} - {{ survey.stop|date:"d.m.y H:i" }}<br>
{% endfor %}
{% endif %}
</td>
<td>{{ ztf.created|date:"d.m.y H:i" }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th></th>
<th>MSK</th>
<th>MSK</th>
<th>J2000</th>
<th>(Prob)</th>
<th>mag</th>
<th>mag</th>
<th>MSK</th><th>MSK</th>
</tr>
</tfoot>
</table>
{% endif %}
{% if artcats and user.is_authenticated and user|has_group:"srg-artxc-survey" %}
<!--
<h3>Loaded SRG/ART-XC catalogs:</h3>
<ul>
{% for cat in artcats %}
<li><a href="{{ cat.get_absolute_url }}">{{ cat.name }}</a></li>
{% endfor %}
</ul>
-->
{% endif %}
{% block heasarcbase %}
{% if heasarc %}
<button onclick="goBack()">Go Back</button>
<script>
function goBack() {
window.history.back();
}
</script>
<h3>{{ heasarc.description }}</h3>
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">RA</th>
<th scope="col">Dec</th>
<th scope="col">Lon</th>
<th scope="col">Lat</th>
<th scope="col">Healpix</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="{{ heasarc.get_absolute_url }}"><b>{{ heasarc.name }}</b></a>
</td>
<td>{{ heasarc.ra|floatformat:3 }}</td>
<td>{{ heasarc.dec|floatformat:2 }}</td>
<td>{{ heasarc.lii|floatformat:3 }}</td>
<td>{{ heasarc.bii|floatformat:2 }}</td>
<td>{{ heasarc.healpix }}</td>
</tr>
</tbody>
</table>
{% endif %}
{% endblock %}
{% block backref %}
{% if erotrans_set %}
<h4>Back reference to eRosita daily source lists (EroTrans)</h4>
<ul>
{% for src in erotrans_set %}
<li><a href="{{ src.get_absolute_url }}">{{ src.name }}</a>
from <a href="{{ src.catalog.get_absolute_url }}">{{ src.catalog.obsid }}</a>,
<strong>Dates:</strong> {{ src.catalog.start|date:"d M Y" }} - {{ src.catalog.stop|date:"d M Y" }}
</li>
{% endfor %}
</ul>
{% endif %}
{% if erosurvey_set %}
<h4>Back reference to eRosita surveys (EroSurvey)</h4>
<ul>
{% for src in erosurvey_set %}
<li><a href="{{ src.get_absolute_url }}">{{ src.name }}</a>
from <a href="{{ src.catalog.get_absolute_url }}">{{ src.catalog.obsid }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if artcat_set %}
<h4>Back reference to ART-XC catalogs (ArtCat)</h4>
<ul>
{% for src in artcat_set %}
<li><a href="{{ src.get_absolute_url }}">{{ src.name }}</a> from <a href="{{ src.catalog.get_absolute_url }}">{{ src.catalog.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% block content %}{% endblock %}
</div>
<footer class="bs-footer" role="contentinfo">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<div class="alert alert-light">
<p class="card-text">
<hr>
Отдел астрофизики высоких энергий ИКИ РАН © 2019 <a href="http://hea.cosmos.ru" target="_blank">Вебсайт отдела</a> |
<a href="http://www.iki.rssi.ru" target="_blank">ИКИ РАН</a> |
<a href="http://srg.cosmos.ru">Спектр-РГ</a> | Разработка: Роман Кривонос, email: krivonos/@/cosmos.ru
</p>
<!--a href="#" class="btn btn-primary">Go somewhere</a-->
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>