{% extends "main_base.html" %} {% load staticfiles %} {% load widget_tweaks %} {% load main_tags %} {% load notifier %} {% load user_tags %} {% load fandoms_tags %} {% block title %}Dashboard{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %} {% block body %}

Last Chapters

{% get_new_chapters_for_user user.id as new_chapters_fanfics %} {% for fanfic in new_chapters_fanfics %} {% with fanfic.fanfic as fanfic %} {% chapters_user_has_read fanfic.id user.id as how_many_chapters_read %}
{% with fanfic.get_primary_fandom as primary_fandom %} {% with fanfic.get_secondary_fandom as secondary_fandom %} {% if primary_fandom and secondary_fandom %} {{ primary_fandom }}, {{ secondary_fandom }} {% elif primary_fandom %} {{ primary_fandom }} {% elif secondary_fandom %} {{ secondary_fandom }} {% endif %} {% endwith %} {% endwith %} {{ fanfic.name }}

{% if fanfic.last_time_updated is not None %} Last updated: {{ fanfic.last_time_updated|date:'b d, Y' }} {% endif %}

{% for pairing in fanfic.get_pairings %} [{{ pairing.character_one }}, {{ pairing.character_two }}] {% if forloop.last is True %}- {% endif %} {% endfor %} {% for character in fanfic.get_characters %} {{ character.character }} {% if forloop.last is False %} , {% endif %} {% endfor %}

{% compare_if_equal how_many_chapters_read fanfic.get_num_of_chapters as eq %} {% compare_if_equal fanfic.get_num_of_chapters 0 as zero_chapters %} {% if zero_chapters is False %}

{{ how_many_chapters_read }}/{{ fanfic.get_num_of_chapters }} Chapters

{% endif %}
{% if forloop.last is False %}
{% endif %} {% endwith %} {% empty %} {% include "empty_space.html" %} {% endfor %}

Recently Read

{% get_user_recently_read_chapters user.id as recently_read_chapters %} {% for reading in recently_read_chapters %} {% with reading.chapter.fanfic as fanfic %}
{% with fanfic.get_primary_fandom as primary_fandom %} {% with fanfic.get_secondary_fandom as secondary_fandom %} {% if primary_fandom and secondary_fandom %} {{ primary_fandom }}, {{ secondary_fandom }} {% elif primary_fandom %} {{ primary_fandom }} {% elif secondary_fandom %} {{ secondary_fandom }} {% endif %} {% endwith %} {% endwith %} {{ fanfic.name }}

{% if fanfic.last_time_updated is not None %} Last updated: {{ fanfic.last_time_updated|date:'b d, Y' }} {% endif %}

Chapter {{ reading.chapter.num_chapter }}

{% if forloop.last is False %}
{% endif %} {% endwith %} {% empty %} {% include "empty_space.html" %} {% endfor %}

Recently Added

{% get_recently_added_fanfics user.id as recently_added_fanfics %} {% for fanfic_list in recently_added_fanfics %} {% with fanfic_list.fanfic as fanfic %}
{% with fanfic.get_primary_fandom as primary_fandom %} {% with fanfic.get_secondary_fandom as secondary_fandom %} {% if primary_fandom and secondary_fandom %} {{ primary_fandom }}, {{ secondary_fandom }} {% elif primary_fandom %} {{ primary_fandom }} {% elif secondary_fandom %} {{ secondary_fandom }} {% endif %} {% endwith %} {% endwith %} {{ fanfic.name }}

{% if fanfic.author is not None %} By {{ fanfic.author }} {% endif %}

{% if forloop.last is False %}
{% endif %} {% endwith %} {% empty %} {% include "empty_space.html" %} {% endfor %}
{% if user_notifications|length == 0 %} {% include "empty_space.html" %} {% else %}
{% feed_text %}
{% endif %}
{% endblock %}