templates updated

This commit is contained in:
ayxan 2023-01-14 18:16:23 +04:00
parent c966f43421
commit bf82a14ce9
5 changed files with 5 additions and 9 deletions

View File

@ -1,8 +1,8 @@
{% autoescape off %} {% autoescape off %}
Hi {{ user.username }}, Hi {{ user.username }},
There are new episodes of the series you recorded. {{new_series_list|length}} series updated.
Some series could not be updated: {{error_series_list|length}} series could not be updated:
{% for e in error_series_list %} {% for e in error_series_list %}
e.title e.title
{% endfor %} {% endfor %}

View File

@ -1,6 +1,6 @@
{% autoescape off %} {% autoescape off %}
Hi {{ user.username }}, Hi {{ user.username }},
There are new episodes of the series you recorded. {{new_series_list|length}} series updated.
Some series could not be updated ({{maximum_usage}}) Some series could not be updated ({{maximum_usage}})
{% for s in new_series_list %} {% for s in new_series_list %}

View File

@ -1,9 +1,7 @@
{% autoescape off %} {% autoescape off %}
Hi {{ user.username }}, Hi {{ user.username }},
There are new episodes of the series you recorded. {{new_series_list|length}} series updated.
{% for s in new_series_list %} {% for s in new_series_list %}
{{s.series.title}}: watched - {{s.series.watched_season}}-{{s.series.watched_episode}}, last - {{s.last_season}}-{{s.last_episode}}, new episodes count - {{s.new_episodes_count}} {{s.series.title}}: watched - {{s.series.watched_season}}-{{s.series.watched_episode}}, last - {{s.last_season}}-{{s.last_episode}}, new episodes count - {{s.new_episodes_count}}
{% endfor %} {% endfor %}
{% endautoescape %} {% endautoescape %}

View File

@ -78,8 +78,6 @@
</button> </button>
</div> </div>
{{view}}
<div class="pages"> <div class="pages">
<nav aria-label="Page navigation example"> <nav aria-label="Page navigation example">
<ul class="pagination justify-content-end"> <ul class="pagination justify-content-end">

View File

@ -49,5 +49,5 @@ def new_episodes_view(request):
f"{error_series_len} series could not be updated.") f"{error_series_len} series could not be updated.")
return redirect('homepage') return redirect('homepage')
messages.warning(request, "0 series updated :(") messages.warning(request, "0 series updated")
return redirect('homepage') return redirect('homepage')