{% extends 'dashboard/dashboard_base.html' %} {% load paginate %} {% block stage %}
{% paginate 10 topic_list %} {% show_pageitems %}
{% csrf_token %}
{% if topic_list %}
{% for topic in topic_list %} {% endfor %}
Id Title Created By No Of Likes No Of Users No Of Votes No Of Comments Actions
{{ topic.id }} {{ topic.title }} {{ topic.created_by }} {{ topic.no_of_likes }} {{ topic.get_topic_users|length }} {{ topic.no_of_votes }} {{ topic.topic_comments.all|length }} {% ifequal topic.status 'Draft' %}{% endifequal %}{% ifequal topic.status 'Published' %}{% endifequal %}{% ifequal topic.status 'Disabled' %}{% endifequal %}
{% show_pages %}
{% else %} No Topics Available in database {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}