2017-09-03 17:02:57 -04:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<style>
|
|
|
|
.newsletter-header {
|
|
|
|
cursor: pointer;
|
2017-09-03 17:04:34 -04:00
|
|
|
user-select: none;
|
2017-09-03 17:02:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.newsletter-header:hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.1)
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="container-fluid bg-dark-primary">
|
|
|
|
<div class="container py-3">
|
|
|
|
{% for newsletter in newsletters %}
|
|
|
|
<div class="col-12 p-0 mb-3 bg-white newsletter">
|
2017-09-03 17:37:39 -04:00
|
|
|
<div class="p-3 newsletter-header" data-toggle="collapse" data-target="#newsletter-body-{{ newsletter.id }}" aria-expanded="false" aria-controls="newsletter-body-{{ newsletter.id }}">
|
2017-09-03 17:02:57 -04:00
|
|
|
<h2>{{ newsletter.subject }}</h2>
|
|
|
|
<span class="text-muted">By: {{ newsletter.creator }}</span>
|
|
|
|
<span class="text-muted float-right">{{ newsletter.publish }}</span>
|
|
|
|
</div>
|
2017-09-03 17:37:39 -04:00
|
|
|
<div id="newsletter-body-{{ newsletter.id }}" class="bg-light-blue collapse">
|
|
|
|
<div class="p-3">
|
|
|
|
{{ newsletter.body }}
|
|
|
|
</div>
|
2017-09-03 17:02:57 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|