[locations] Add locations to dashboard
This commit is contained in:
@ -67,13 +67,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for location in object_list %}
|
||||
<tr>
|
||||
<td>{{location.scrobble_set.count}}</td>
|
||||
<td>{{location.title}}</td>
|
||||
<td><a href="{{location.get_absolute_url}}">{{location.lat}}x{{location.lon}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% include "_scrobblable_list.html" %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -126,5 +126,14 @@
|
||||
<p>No books today</p>
|
||||
{% endif %}
|
||||
|
||||
<h3><a href="{% url 'locations:geolocation_list' %}">Locations</a></h3>
|
||||
{% if GeoLocation %}
|
||||
{% with scrobbles=GeoLocation count=GeoLocation_count time=GeoLocation_time %}
|
||||
{% include "scrobbles/_scrobble_table.html" %}
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
<p>No locations visited today</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user