1
0
Fork 0

Fix UI for satellites with no frames

pull/183/head
Nikos Roussos 2017-05-29 19:03:25 +03:00
parent a50c975745
commit d72c438e55
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
1 changed files with 7 additions and 8 deletions

View File

@ -307,9 +307,7 @@
</script>
<!-- Telemetry Frames Section -->
{% comment %}
{% if satellite.telemetry_data.count %}
{% endcomment %}
<div class="row hidden-xs hidden-sm">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 satellite-panels">
<div class="panel panel-default panel-satellite">
@ -318,10 +316,10 @@
Telemetry (frames)
</div>
</div>
<div class="row panel-body">
<div class="panel-satellite chart">
<div class="col-md-3 panel-satellite">
{% if request.user.is_authenticated %}
{% if request.user.is_authenticated %}
<div class="row panel-body">
<div class="panel-satellite chart">
<div class="col-md-3 panel-satellite">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-download"></span> Download <span class="caret"></span>
@ -332,10 +330,10 @@
<li><a href="{% url 'request_export' norad=satellite.norad_cat_id period=2 %}">Last month</a></li>
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
<div class="panel-footer">
<span class="badge">Frames: {{ satellite.telemetry_data.count }}</span>
Latest frame submitted on {{ latest_frame.timestamp|date:'Y-m-d H:i:s' }} by
@ -344,6 +342,7 @@
</div>
</div>
</div>
{% endif %}
<!-- Suggestion Modal -->
<div class="modal fade" id="NewSuggestionModal" tabindex="-1" role="dialog" aria-labelledby="NewSuggestionModalLabel" aria-hidden="true">