1
0
Fork 0
satnogs-db/db/templates/base/home.html

106 lines
3.8 KiB
HTML

{% extends "base.html" %}
{% load staticfiles %}
{% block title %}{% endblock %}
{% block top %}
<div class="row" id="search">
<div class="col-md-8">
<input type="text" list="satellites-list"
class="form-control input-lg satellite-search"
placeholder="Filter by Name or NORAD Cat ID"
autocomplete="off">
</div>
<div class="col-md-4">
<div class="row hidden-xs hidden-sm">
<div class="{% if suggestions %}col-md-3{% else %}col-md-4{% endif %}">
<p class="statistics">
<img src="{% static 'img/satellites.png' %}">
{{ satellites.count }}
</p>
</div>
<div class="{% if suggestions %}col-md-3{% else %}col-md-4{% endif %}">
<p class="statistics">
<img src="{% static 'img/transmitters.png' %}">
{{ transmitters }}
</p>
</div>
{% if suggestions %}
<div class="col-md-3">
<p class="statistics">
<img src="{% static 'img/suggestions.png' %}">
{{ suggestions }}
</p>
</div>
{% endif %}
<div class="{% if suggestions %}col-md-3{% else %}col-md-4{% endif %}">
<p class="statistics">
<img src="{% static 'img/contributors.png' %}">
{{ contributors }}
</p>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="row sats">
{% for sat in satellites %}
<div class="col-md-4 col-sm-6 col-xs-12 satellite-group-item"
data-selector="{{ sat.name|lower }}{{ sat.norad_cat_id }}{{ sat.names|lower }}">
<a href="{% url 'satellite' norad=sat.norad_cat_id %}" class="satellite-item">
<div class="row">
<div class="col-xs-3">
<img src="{{ sat.get_image }}" alt="{{ sat.name }}" class="satellite-img">
{% if request.user.is_superuser and sat.pending_suggestions %}
<div class="suggestions-counter text-info satellite-img">
<span class="glyphicon glyphicon-edit" title="Suggest edits"></span> {{ sat.pending_suggestions }}
</div>
{% endif %}
</div>
<div class="col-xs-9 satellite-info">
<div class="satellite-title">{{ sat.norad_cat_id }} - {{ sat.name }}</div>
<div>{{ sat.names }}</div>
<div class="satellite-transmitters">
{% for transmitter in sat.transmitters.all|slice:":5" %}
<span class="label label-default">{{ transmitter.description }}</span>
{% endfor %}
{% if sat.transmitters.all.count > 5 %}
<span class="label label-default">+{{ sat.transmitters.all.count|add:"-5" }}</span>
{% endif %}
</div>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
<div class="info row">
<div class="col-md-4">
<h3>Open</h3>
<p>
SatNOGS DB is, and will always be, an open database. We aspire to create an hollistic,
unified, global transmitter database for all satellite transmitters. You can export the
data or even connect your application using our API.
</p>
</div>
<div class="col-md-4">
<h3>Crowd-sourced</h3>
<p>
We rely on user submitted crowd-sourced information. Create an account and start
suggesting additions and/or modifications on our Database. We need your help!
</p>
</div>
<div class="col-md-4">
<h3>Extensible</h3>
<p>
We designed SatNOGS-DB to be easily extensible to accommodate additions and modification
on transmitter model. Go ahead and suggest changes or even code them in
<a href="https://github.com/satnogs/satnogs-db">our repo</a>.
</p>
</div>
</div>
{% endblock %}