32 lines
1.4 KiB
HTML
32 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Polls{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="display-5 fw-bold text-body-emphasis text-center">Polls</h1>
|
|
<br/>
|
|
<div class="d-flex flex-column flex-md-row col-lg-6 mx-auto align-items-center justify-content-center">
|
|
{% if latest_question_list %}
|
|
<div class="list-group">
|
|
{% for question in latest_question_list %}
|
|
<a href="{% url 'polls:detail' question.id %}" class="list-group-item list-group-item-action d-flex gap-3 py-3" aria-current="true">
|
|
<!--<img src="https://github.com/twbs.png" alt="twbs" width="32" height="32" class="rounded-circle flex-shrink-0"> -->
|
|
<div class="d-flex gap-2 w-100 justify-content-between">
|
|
<div>
|
|
<h6 class="mb-0">{{ question.question_text }}</h6>
|
|
<!-- <p class="mb-0 opacity-75">Some placeholder content in a paragraph.</p> -->
|
|
</div>
|
|
<small class="opacity-50 text-nowrap">{{ question.pub_date }}</small>
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p class="text-center text-muted">
|
|
No polls are available.<br />
|
|
You can create polls in the <a href="/admin/polls/question/">admin panel</a>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|