45 lines
2.1 KiB
HTML
45 lines
2.1 KiB
HTML
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
<title>Testapp</title>
|
|
<style>
|
|
.darker-bg {
|
|
background-color: #171a1e;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="px-4 py-5 my-5 shadow darker-bg">
|
|
<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>
|
|
</div>
|
|
</body>
|
|
</html> |