Templates added
This commit is contained in:
77
Templates/artsurvey/turkish.html
Normal file
77
Templates/artsurvey/turkish.html
Normal file
@@ -0,0 +1,77 @@
|
||||
{% extends "artsurvey/base.html" %}
|
||||
{% load heasarc_templates %}
|
||||
{% load simbadescape %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block header %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
|
||||
<h3>Источники, переданные турецким коллегам. Отсортировано по RA.</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
{% if srcs %}
|
||||
<p>
|
||||
|
||||
|
||||
<!--table class="table"-->
|
||||
|
||||
<table id="ArtSurveyTable" class="table" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm"></th>
|
||||
<!--th class="th-sm"><span title="Survey">S</span></th>
|
||||
<th class="th-sm"><span title="Energy band">e.</span></th-->
|
||||
<th class="th-sm">Name</th>
|
||||
<th class="th-sm">RA</th>
|
||||
<th class="th-sm">Dec</th>
|
||||
<th class="th-sm">Sources</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for src in srcs %}
|
||||
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td>
|
||||
<td>
|
||||
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a>
|
||||
|
||||
<a style="color:red;" title="MetaSource" href="{{ src.get_absolute_url }}">M{{ src.artsurveysource_set.all.count }}</a>
|
||||
{% if src.comments.count %}<span title="{% for comment in src.get_comments %}{{ comment }} | {% endfor %}"><span class="glyphicon glyphicon-comment" style="color:red;"></span>{% endif %}
|
||||
</td>
|
||||
|
||||
<td>{{ src.ra|floatformat:4 }}</td>
|
||||
<td>{{ src.dec|floatformat:4 }}</td>
|
||||
<td>
|
||||
{% for s in src.artsurveysource_set.all %}
|
||||
{% if s.turkish %}<span style="color:red;"><b>T</b></span>{% else %} {% endif %} <a href="{{ s.get_absolute_url }}">{{ s.name }}</a> {{ s.survey }} {{ s.band.slug }} {% if s.turkish_date %}<b>{{ s.turkish_date|date:"d.m.Y" }}</b>{% endif %}<br>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user