Merge pull request #118 from kerel-fs/pr/fix106
Show only the first five transmitters in satellite listmerge-requests/122/head
commit
ee20b83cba
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue