Templates added
This commit is contained in:
119
Templates/artsurvey/catalog_paper2.html
Normal file
119
Templates/artsurvey/catalog_paper2.html
Normal file
@@ -0,0 +1,119 @@
|
||||
{% 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">R98</th>
|
||||
<th class="th-sm">Category</th>
|
||||
<th class="th-sm">CName</th>
|
||||
<th class="th-sm">Other Names</th>
|
||||
<th class="th-sm">ADS</th>
|
||||
<th class="th-sm">Turk</th>
|
||||
<th class="th-sm">Paper</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.ml_radec_err_98|floatformat:1 }} {{ src.radec_error|floatformat:1 }}</td>
|
||||
|
||||
|
||||
<td>
|
||||
{% if src.category %}
|
||||
{{ src.category }}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if src.cname %}
|
||||
{{ src.cname }}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% for o in src.othername_set.all %}
|
||||
{{ o }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% for o in src.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 %}
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
{% if src.turkish %}
|
||||
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_absolute_url }}"><span title="Date: {{ src.turkish_date }}">Turkish</span></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if src.notes_paper %}
|
||||
<span title="{{ src.notes_paper }}"><span class="glyphicon glyphicon-comment" style="color:red"></span></span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if src.notes %}
|
||||
<span title="{{ src.notes }}"><span class="glyphicon glyphicon-comment" style="color:black"></span></span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfooter>
|
||||
</tr>
|
||||
|
||||
</tfooter>
|
||||
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user