1
0
Fork 0

Fix MHz wording

merge-requests/156/head
Nikos Roussos 2015-08-15 14:07:31 +03:00
parent 778d8f29d0
commit 8955598ac0
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ def frq(value):
except (TypeError, ValueError):
return '-'
formatted = format(float(to_format) / 1000000, '.3f')
formatted = formatted + ' Mhz'
formatted = formatted + ' MHz'
return formatted

View File

@ -109,7 +109,7 @@
</div>
<div class="panel panel-default">
<div class="panel-body">
{{ antenna.band }} - {{ antenna.antenna_type }} - {{ antenna.frequency|frq }}
{{ antenna.band }} - {{ antenna.antenna_type }} - {{ antenna.frequency }} MHz
</div>
</div>
{% empty %}

View File

@ -20,7 +20,7 @@
<th>Name</th>
<th>Location</th>
<th>Altitude</th>
<th>Antenna</th>
<th>Antennas</th>
<th>Owner</th>
</thead>
<tbody>
@ -58,7 +58,7 @@
<td>{{ station.alt}} m</td>
<td>
{% for antenna in station.antenna.all %}
{{ antenna.antenna_type}} on {{ antenna.frequency }} ({{ antenna.band}})<br>
{{ antenna.antenna_type}} on {{ antenna.frequency }} MHz ({{ antenna.band}})<br>
{% endfor %}
</td>
<td>