2014-08-27 10:42:50 -06:00
|
|
|
{% extends "base.html" %}
|
2014-10-27 09:47:32 -06:00
|
|
|
{% load tags %}
|
2016-04-03 09:09:11 -06:00
|
|
|
{% load staticfiles %}
|
2014-08-27 10:42:50 -06:00
|
|
|
|
2015-07-22 05:20:45 -06:00
|
|
|
{% block title %} - Observations{% endblock %}
|
2014-09-18 07:34:39 -06:00
|
|
|
|
2014-08-27 10:42:50 -06:00
|
|
|
{% block content %}
|
2015-04-07 10:01:59 -06:00
|
|
|
<h1>
|
|
|
|
Observations
|
2017-10-11 11:44:21 -06:00
|
|
|
<div class="pull-right">
|
|
|
|
<a class="btn btn-default" role="button" data-toggle="collapse"
|
|
|
|
href="#collapseFilters" aria-expanded="false" aria-controls="collapseFilters">
|
|
|
|
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> Filters
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-default" role="button" href="#legend" data-toggle="modal" data-target="#LegendModal">
|
|
|
|
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> Legend
|
|
|
|
</a>
|
2017-11-18 12:16:21 -07:00
|
|
|
{% if can_schedule %}
|
2017-10-11 11:44:21 -06:00
|
|
|
<a class="btn btn-primary" href="{% url 'base:observation_new' %}">New Observation</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-04-07 10:01:59 -06:00
|
|
|
</h1>
|
2016-04-05 11:41:54 -06:00
|
|
|
|
2016-04-09 09:35:50 -06:00
|
|
|
<div class="collapse{% if norad %} in{% endif %}" id="collapseFilters">
|
2017-10-11 11:44:21 -06:00
|
|
|
<div class="filter-section row">
|
|
|
|
<form id="observation-filter" class="form" methon="get" action="{% url 'base:observations_list' %}">
|
|
|
|
<div class="form-group col-md-3">
|
|
|
|
<label for="data-selector">Data</label>
|
|
|
|
<div id="data-selector" class="btn-group" data-toggle="buttons">
|
2017-12-24 12:17:37 -07:00
|
|
|
<label class="btn btn-future btn-sm {% if future == '1' %}active{% endif %}" aria-expanded="true" aria-controls="future">
|
2017-10-17 10:55:20 -06:00
|
|
|
<input type="checkbox" name="future" {% if future == '1' %}checked{% endif %} autocomplete="off">Future
|
|
|
|
</label>
|
2017-12-24 12:17:37 -07:00
|
|
|
<label class="btn btn-good btn-sm {% if good == '1' %}active{% endif %}" aria-expanded="true" aria-controls="good">
|
2017-10-17 10:55:20 -06:00
|
|
|
<input type="checkbox" name="good" {% if good == '1' %}checked{% endif %} autocomplete="off">Good
|
|
|
|
</label>
|
2017-12-24 12:17:37 -07:00
|
|
|
<label class="btn btn-bad btn-sm {% if bad == '1' %}active{% endif %}" aria-expanded="true" aria-controls="bad">
|
2017-02-03 20:20:32 -07:00
|
|
|
<input type="checkbox" name="bad" {% if bad == '1' %}checked{% endif %} autocomplete="off">Bad
|
|
|
|
</label>
|
2017-12-24 12:17:37 -07:00
|
|
|
<label class="btn btn-unknown btn-sm {% if unvetted == '1' %}active{% endif %}" aria-expanded="true" aria-controls="unvetted">
|
2017-02-03 20:20:32 -07:00
|
|
|
<input type="checkbox" name="unvetted" {% if unvetted == '1' %}checked{% endif %} autocomplete="off">Unvetted
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-10-11 11:44:21 -06:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
|
|
<label for="satellite-selection">Satellite</label>
|
2016-04-07 16:05:50 -06:00
|
|
|
<select class="form-control" name="norad" autocomplete="off" id="satellite-selection">
|
|
|
|
<option value="" selected>All</option>
|
|
|
|
{% for satellite in satellites %}
|
2016-04-08 04:14:36 -06:00
|
|
|
<option data-norad="{{ satellite.norad_cat_id }}" value="{{ satellite.norad_cat_id }}"
|
|
|
|
{% ifequal satellite.norad_cat_id norad %}selected{% endifequal %}>
|
2016-04-07 16:05:50 -06:00
|
|
|
{{ satellite.norad_cat_id }} - {{ satellite.name }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2017-10-11 11:44:21 -06:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
|
|
<label for="observer-selection">Observer</label>
|
2017-10-10 10:46:19 -06:00
|
|
|
<select class="form-control" name="observer" autocomplete="off" id="observer-selection">
|
|
|
|
<option value="" selected>All</option>
|
|
|
|
{% for author in authors %}
|
|
|
|
<option data-author="{{ author.id }}" value="{{ author.id }}"
|
|
|
|
{% ifequal author.id observer_id %}selected{% endifequal %}>
|
|
|
|
{{ author.displayname }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2017-10-11 11:44:21 -06:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
|
|
<label for="station-selection">Station</label>
|
2017-10-10 10:46:19 -06:00
|
|
|
<select class="form-control" name="station" autocomplete="off" id="station-selection">
|
|
|
|
<option value="" selected>All</option>
|
|
|
|
{% for station in stations %}
|
|
|
|
<option data-station="{{ station }}" value="{{ station.id }}"
|
|
|
|
{% ifequal station.id station_id %}selected{% endifequal %}>
|
|
|
|
{{ station.id }} - {{ station.name }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2016-04-07 16:05:50 -06:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-04-03 09:09:11 -06:00
|
|
|
</div>
|
2014-09-18 07:34:39 -06:00
|
|
|
|
2015-04-07 10:01:59 -06:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Satellite</th>
|
|
|
|
<th>Frequency</th>
|
|
|
|
<th>Encoding</th>
|
|
|
|
<th>Timeframe</th>
|
2017-10-22 12:12:09 -06:00
|
|
|
<th>Results</th>
|
2015-04-07 10:01:59 -06:00
|
|
|
<th>Observer</th>
|
2017-09-11 04:33:49 -06:00
|
|
|
<th>Station</th>
|
2015-04-07 10:01:59 -06:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-02-03 20:20:32 -07:00
|
|
|
{% for observation in observations %}
|
2017-09-18 11:30:02 -06:00
|
|
|
<tr data-norad="{{ observation.satellite.norad_cat_id }}"
|
2017-12-12 07:53:35 -07:00
|
|
|
{% if observation.id in scheduled %}class="bg-info"{% endif %}>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'base:observation_view' id=observation.id %}" class="obs-link">
|
2017-12-24 12:17:37 -07:00
|
|
|
{% if observation.is_vetted %}
|
|
|
|
<span class="label label-{{observation.vetted_status }}">{{ observation.id }}</span>
|
2017-12-12 07:53:35 -07:00
|
|
|
{% elif observation.is_future %}
|
2017-12-24 12:17:37 -07:00
|
|
|
<span class="label label-future">{{ observation.id }}</span>
|
2017-12-12 07:53:35 -07:00
|
|
|
{% else %}
|
2017-12-24 12:17:37 -07:00
|
|
|
<span class="label label-unknown">{{ observation.id }}</span>
|
|
|
|
{% endif %}
|
2017-12-12 07:53:35 -07:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="#" data-toggle="modal" data-target="#SatelliteModal" data-id="{{ observation.satellite.norad_cat_id }}">
|
|
|
|
{{ observation.satellite.name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ observation.transmitter.downlink_low|frq }}</td>
|
|
|
|
<td>
|
|
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.transmitter.description }}">
|
|
|
|
{{ observation.transmitter.mode|default:"-" }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.start|timesince }} ago">
|
|
|
|
<span class="datetime-date">{{ observation.start|date:"Y-m-d" }}</span>
|
|
|
|
<span class="datetime-time">{{ observation.start|date:"H:i:s" }}</span><br>
|
|
|
|
</span>
|
|
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.end|timesince }} ago">
|
|
|
|
<span class="datetime-date">{{ observation.end|date:"Y-m-d" }}</span>
|
|
|
|
<span class="datetime-time">{{ observation.end|date:"H:i:s" }}</span>
|
2015-04-07 10:01:59 -06:00
|
|
|
</span>
|
2017-12-12 07:53:35 -07:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if observation.waterfall %}
|
|
|
|
<span class="glyphicon glyphicon-picture" aria-hidden="true"
|
|
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
|
|
title="Waterfall uploaded"></span>
|
|
|
|
{% endif %}
|
2017-12-18 16:11:36 -07:00
|
|
|
{% if observation.has_audio %}
|
2017-12-12 07:53:35 -07:00
|
|
|
<span class="glyphicon glyphicon-volume-up" aria-hidden="true"
|
|
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
|
|
title="Audio uploaded"></span>
|
|
|
|
{% endif %}
|
|
|
|
{% if observation.demoddata.all %}
|
|
|
|
<span class="glyphicon glyphicon-file" aria-hidden="true"
|
|
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
|
|
title="{{ observation.demoddata.all|length }} Data uploaded"></span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'users:view_user' username=observation.author.username %}">
|
|
|
|
{{ observation.author.displayname }}
|
2017-10-09 11:37:29 -06:00
|
|
|
</a>
|
2017-12-12 07:53:35 -07:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if observation.ground_station %}
|
|
|
|
<a href="{% url 'base:station_view' id=observation.ground_station.id %}">
|
|
|
|
{{ observation.ground_station }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-04-07 10:01:59 -06:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-02-03 20:20:32 -07:00
|
|
|
{% if is_paginated %}{% load paginator %}{% paginator request 3 %}{% endif %}
|
2017-12-10 14:48:14 -07:00
|
|
|
Query returned {{ observations|length }} observation{{ observations|length|pluralize }}.
|
|
|
|
<a id="open-all" href="#">Open all in tabs</a>
|
2015-04-07 10:01:59 -06:00
|
|
|
</div>
|
2014-09-18 07:34:39 -06:00
|
|
|
</div>
|
2016-04-09 10:19:47 -06:00
|
|
|
{% include 'includes/satellite.html' %}
|
2017-08-18 17:39:09 -06:00
|
|
|
{% include 'includes/legend.html' %}
|
2015-04-07 10:01:59 -06:00
|
|
|
{% endblock content %}
|
2016-04-03 09:09:11 -06:00
|
|
|
|
|
|
|
{% block javascript %}
|
2016-04-05 11:41:54 -06:00
|
|
|
<script src="{% static 'js/observations.js' %}"></script>
|
2016-04-09 10:19:47 -06:00
|
|
|
<script src="{% static 'js/satellite.js' %}"></script>
|
2016-04-03 09:09:11 -06:00
|
|
|
{% endblock javascript %}
|