mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-19 05:24:05 +01:00
is_published -> Check if the specific question able to be published can_vote -> Can vote or not, check it from pub time Delete some unnecessary files
27 lines
914 B
HTML
27 lines
914 B
HTML
{% extends 'polls/base.html' %}
|
|
|
|
{% block content %}
|
|
<main>
|
|
<section class="hero-section">
|
|
<div class="hero-content">
|
|
<h1>Welcome to KU Polls</h1>
|
|
<p>Explore and participate in our weird poll questions.</p>
|
|
</div>
|
|
</section>
|
|
<section class="polls-section">
|
|
<h2>Recent Polls</h2>
|
|
<p class="total-polls">Total number of polls: {{ total_open_polls }}</p>
|
|
<div class="poll-cards">
|
|
{% if latest_question_list %}
|
|
{% for question in latest_question_list %}
|
|
<div class="poll-card">
|
|
<h3><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></h3>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>No polls are available.</p>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
{% endblock content %}
|