_last_scrobbles.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {% load humanize %}
  2. {% load naturalduration %}
  3. <div class="row">
  4. <div>
  5. <p>Today <b>{{counts.today}}</b> | This Week <b>{{counts.week}}</b> | This Month <b>{{counts.month}}</b> | This Year <b>{{counts.year}}</b> | All Time <b>{{counts.alltime}}</b></p>
  6. </div>
  7. </div>
  8. <div class="row">
  9. <div class="col-md">
  10. <h3><a href="{% url 'music:tracks_list' %}">Tracks</a></h3>
  11. {% if Track %}
  12. {% with scrobbles=Track count=Track_count time=Track_time %}
  13. {% include "scrobbles/_scrobble_table.html" %}
  14. {% endwith %}
  15. {% else %}
  16. <p>No tracks today</p>
  17. {% endif %}
  18. <h3><a href="{% url 'foods:food_list' %}">Food</a></h3>
  19. {% if Food %}
  20. {% with scrobbles=Food count=Food_count time=Food_time %}
  21. {% include "scrobbles/_scrobble_table.html" %}
  22. {% endwith %}
  23. {% else %}
  24. <p>No food today</p>
  25. {% endif %}
  26. <h3><a href="{% url 'moods:mood_list' %}">Moods</a></h3>
  27. {% if Mood %}
  28. {% with scrobbles=Mood count=Mood_count time=Mood_time %}
  29. {% include "scrobbles/_scrobble_table.html" %}
  30. {% endwith %}
  31. {% else %}
  32. <p>No moods felt today </p>
  33. {% endif %}
  34. </div>
  35. <div class="col-md">
  36. <h3><a href="{% url 'tasks:task_list' %}">Tasks</a></h3>
  37. {% if Task %}
  38. {% with scrobbles=Task count=Task_count time=Task_time %}
  39. {% include "scrobbles/_scrobble_table.html" %}
  40. {% endwith %}
  41. {% else %}
  42. <p>No tasks today</p>
  43. {% endif %}
  44. <h3><a href="{% url 'videos:video_list' %}">Videos</a></h3>
  45. {% if Video %}
  46. {% with scrobbles=Video count=Video_count time=Video_time %}
  47. {% include "scrobbles/_scrobble_table.html" %}
  48. {% endwith %}
  49. {% else %}
  50. <p>No videos today</p>
  51. {% endif %}
  52. <h3><a href="{% url 'webpages:webpage_list' %}">Web pages</a></h3>
  53. {% if WebPage %}
  54. {% with scrobbles=WebPage count=WebPage_count time=WebPage_time %}
  55. {% include "scrobbles/_scrobble_table.html" %}
  56. {% endwith %}
  57. {% else%}
  58. <p>No web page read today</p>
  59. {% endif %}
  60. <h3><a href="{% url 'sports:event_list' %}">Sport events</a></h3>
  61. {% if SportEvent %}
  62. {% with scrobbles=SportEvent count=SportEvent_count time=SportEvent_time %}
  63. {% include "scrobbles/_scrobble_table.html" %}
  64. {% endwith %}
  65. {% else %}
  66. <p>No sports today</p>
  67. {% endif %}
  68. <h3><a href="{% url 'podcasts:podcast_list' %}">Podcasts</a></h3>
  69. {% if PodcastEpisode %}
  70. {% with scrobbles=PodcastEpisode count=PodcastEpisode_count time=PodcastEpisode_time %}
  71. {% include "scrobbles/_scrobble_table.html" %}
  72. {% endwith %}
  73. {% else %}
  74. <p>No podcasts today</p>
  75. {% endif %}
  76. <h3><a href="{% url "videogames:videogame_list" %}">Video games</a></h3>
  77. {% if VideoGame %}
  78. {% with scrobbles=VideoGame count=VideoGame_count time=VideoGame_time %}
  79. {% include "scrobbles/_scrobble_table.html" %}
  80. {% endwith %}
  81. {% else %}
  82. <p>No video games today</p>
  83. {% endif %}
  84. <h3><a href="{% url "boardgames:boardgame_list" %}">Board games</a></h3>
  85. {% if BoardGame %}
  86. {% with scrobbles=BoardGame count=BoardGame_count time=BoardGame_time %}
  87. {% include "scrobbles/_scrobble_table.html" %}
  88. {% endwith %}
  89. {% else %}
  90. <p>No board games today</p>
  91. {% endif %}
  92. <h3><a href="{% url 'beers:beer_list' %}">Beers</a></h3>
  93. {% if Beer %}
  94. {% with scrobbles=Beer count=Beer_count time=Beer_time %}
  95. {% include "scrobbles/_scrobble_table.html" %}
  96. {% endwith %}
  97. {% else %}
  98. <p>No beer today</p>
  99. {% endif %}
  100. <h3><a href="{% url 'bricksets:brickset_list' %}">Brick sets</a></h3>
  101. {% if BrickSet %}
  102. {% with scrobbles=BrickSet count=BrickSet_count time=BrickSet_time %}
  103. {% include "scrobbles/_scrobble_table.html" %}
  104. {% endwith %}
  105. {% else %}
  106. <p>No brick sets today</p>
  107. {% endif %}
  108. <h3><a href="{% url 'puzzles:puzzle_list' %}">Puzzles</a></h3>
  109. {% if Puzzle %}
  110. {% with scrobbles=Puzzle count=Puzzle_count time=Puzzle_time %}
  111. {% include "scrobbles/_scrobble_table.html" %}
  112. {% endwith %}
  113. {% else %}
  114. <p>No puzzles today</p>
  115. {% endif %}
  116. <h3><a href="{% url 'books:book_list' %}">Books</a></h3>
  117. {% if Book %}
  118. {% with scrobbles=Book count=Book_count time=Book_time %}
  119. {% include "scrobbles/_scrobble_table.html" %}
  120. {% endwith %}
  121. {% else %}
  122. <p>No books read today</p>
  123. {% endif %}
  124. <h3><a href="{% url 'locations:geolocation_list' %}">Locations</a></h3>
  125. {% if GeoLocation %}
  126. {% with scrobbles=GeoLocation count=GeoLocation_count time=GeoLocation_time %}
  127. {% include "scrobbles/_scrobble_table.html" %}
  128. {% endwith %}
  129. {% else %}
  130. <p>No locations visited today</p>
  131. {% endif %}
  132. </div>
  133. </div>