Improve index page

This commit is contained in:
2023-03-18 04:18:42 +01:00
parent 948a5a2af9
commit ceff63e90d

View File

@ -5,24 +5,21 @@
<!-- Check if any feeds --> <!-- Check if any feeds -->
{% if feeds %} {% if feeds %}
<p> <p>
{{ feed_count.total }} feeds {{ feed_count.total }} feed{{'s' if feed_count.total > 1 else "" }}
<!-- How many broken feeds --> <!-- How many broken feeds -->
<!-- Make broken feed text red if true. --> <!-- Make broken feed text red if true. -->
{% if feed_count.broken %} {% if feed_count.broken %}
-<span class="text-danger"> - <span class="text-danger">{{ feed_count.broken }} broken</span>
{% else %} {% else %}
-<span> - {{ feed_count.broken }} broken
{% endif %} {% endif %}
{{ feed_count.broken }} broken
</span>
<!-- How many enabled feeds --> <!-- How many enabled feeds -->
<!-- Make amount of enabled feeds yellow if some are disabled. --> <!-- Make amount of enabled feeds yellow if some are disabled. -->
{% if feed_count.total != feed_count.updates_enabled %} {% if feed_count.total != feed_count.updates_enabled %}
- <span class="text-warning"> - <span class="text-warning">{{ feed_count.updates_enabled }} enabled</span>
{% else %} {% else %}
- <span> - {{ feed_count.updates_enabled }} enabled
{% endif %} {% endif %}
{{ feed_count.updates_enabled }} enabled</span>
<!-- How many entries --> <!-- How many entries -->
- {{ entry_count.total }} entries - {{ entry_count.total }} entries
<abbr title="Average entries per day for the past 1, 3 and 12 months"> <abbr title="Average entries per day for the past 1, 3 and 12 months">
@ -49,14 +46,14 @@
</ul> </ul>
</div> </div>
{% endfor %} {% endfor %}
{% else %} {% else %}
<p> <p>
Hello there! Hello there!
</br> </br>
You need to add a webhook to get started and then add a feed. You can find both options in the menu above. You need to add a webhook to get started and then add a feed. You can find both options in the menu above.
</br> </br>
</br> </br>
If you have any questions or suggestions, feel free to contact me on <a class="text-muted" href="mailto:tlovinator@gmail.com">tlovinator@gmail.com</a> or TheLovinator#9276 on Discord. If you have any questions or suggestions, feel free to contact me on <a class="text-muted" href="mailto:tlovinator@gmail.com">tlovinator@gmail.com</a> or TheLovinator#9276 on Discord.
</br> </br>
Thanks! Thanks!
</p> </p>