{% extends "base.html" %} {% load custom_tags %} {% block title %}Content by SubTopic{% endblock %} {% block content %}

Content Filtered by SubTopic

{% if sub_topic_short_code %}
Results for: {{ sub_topic_short_code }}
{% endif %}
Previous Year Questions
{% if pyqs_grouped %}
{% for base_id, pair in pyqs_grouped %} {% include "question_bank/question_pair_card.html" with pair=pair %} {% endfor %}
{% else %}

No Previous Year Questions found.

{% endif %}
Model Questions
{% if moqs_grouped %}
{% for base_id, pair in moqs_grouped %} {% include "question_bank/question_pair_card.html" with pair=pair %} {% endfor %}
{% else %}

No Model Questions found.

{% endif %}
Other Source Questions
{% if osqs_grouped %}
{% for base_id, pair in osqs_grouped %} {% include "question_bank/question_pair_card.html" with pair=pair %} {% endfor %}
{% else %}

No Other Source Questions found.

{% endif %}
Lecture Notes
{% if lecture_notes %}
{% for note in lecture_notes %}
{{ note.description|default:"No description" }}
{% if note.note_file %}

📂 Open File

{% endif %}

Language: {{ note.get_language_display }}

CTPL: {{ note.get_ctpl_display }}

Type: {{ note.get_note_type_display }}

Area: {{ note.area.name }}

Part: {{ note.part.name }}

Chapter: {{ note.chapter.name }}

{% if note.topic %}

Topic: {{ note.topic.name }}

{% endif %} {% if note.subtopic %}

Subtopic: {{ note.subtopic.name }}

{% endif %}
{% endfor %}
{% else %}

No Lecture Notes found.

{% endif %}
{% load custom_tags %} {# only needed if you use the split filter from your custom_tags #}
Input Suggestions
{% if input_suggestions %}
{% for inp in input_suggestions %}

📝 {{ inp.brief_description|safe|truncatewords:15 }}

{{ inp.details|safe|truncatewords:25 }}

{% if inp.question_video %} {% endif %} {% if inp.link_list %}

{% for link in inp.link_list %} 🔗 Link {{ forloop.counter }} {% endfor %}

{% elif inp.question_link %} {# If you added a custom `split` filter in custom_tags.py #} {% with links=inp.question_link|split:"," %}

{% for link in links %} 🔗 Link {{ forloop.counter }} {% endfor %}

{% endwith %} {% endif %} {% if inp.credit_or_courtesy %}

Credit / Courtesy: {{ inp.credit_or_courtesy }}

{% endif %}

Source: {{ inp.get_source_display|default:inp.source }}

Status: {{ inp.get_approval_status_display|default:inp.approval_status }}

Area(s): {% for a in inp.area_name.all %}{{ a.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Part(s): {% for p in inp.part_name.all %}{{ p.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Chapter(s): {% for ch in inp.chapter_name.all %}{{ ch.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Topic(s): {% for t in inp.topic_name.all %}{{ t.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Subtopic(s): {% for st in inp.subtopic_name.all %}{{ st.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Exam(s): {% for ex in inp.exams.all %}{{ ex.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

Hashtags: {% for h in inp.hashtags.all %}#{{ h.name }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}

{% endfor %}
{% else %}

No Input Suggestions found.

{% endif %}
{% endblock %}