{% extends "layout.html" %}
{% load currency_filters %}
{% load thumbnail %}

{% block breadcrumbs %}
<ul class="breadcrumb">
    <li>
        <a href="{% url promotions:home %}">Home</a>
        <span class="divider">/</span>
    </li>
    <li>
        <a href="{% url customer:summary %}">Account</a>
        <span class="divider">/</span>
    </li>
    <li>
        <a href="{% url customer:email-list %}">Email history</a>
        <span class="divider">/</span>
    </li>
	<li class="active"><a href=".">'{{ email.subject }}'</a></li>
</ul>
{% endblock %}


{% block title %}
Email detail | {{ block.super }}
{% endblock %}

{% block header %}
<div class="page-header">
    <h2>Email: '{{ email.subject }}'</h2>
</div>
{% endblock header %}


{% block content %}

<table class="table table-striped table-bordered">
    <tr>
        <th>Date sent</th>
        <td>{{ email.date_sent }}</td>
    </tr>
    <tr>
        <th>Subject</th>
        <td>{{ email.subject }}</td>
    </tr>
    <tr>
        <th>Body</th>
        <td>{{ email.body_html|safe }}</td>
    </tr>
</table>

<div class="form-actions"><a href="{% url customer:email-list %}" class="btn">Return to email history</a></div>

{% endblock content %}

