1
0
Fork 0

Merge pull request #118 from kerel-fs/pr/fix106

Show only the first five transmitters in satellite list
merge-requests/122/head
Nikos Roussos 2017-02-01 18:38:39 +01:00 committed by GitHub
commit ee20b83cba
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ SatNOGS DB is a transmitter suggestions and crowd-sourcing app.
## Install and Contribute
See the [documentation](http://docs.satnogs.org/db/).
See the [documentation](http://docs.satnogs.org/en/stable/db/).
## Join

View File

@ -63,9 +63,12 @@
<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 %}
{% 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>