{% extends "emails/base.html" %}
{% load i18n %}
{% load email_tags %}
{% load base_filters %}

{% block title %}{{ block.super }}{% trans 'E-mail View'%}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/iconrow.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/emails.css">
{% endblock %}

{% block body %}
<div class="t">
{% emails_nav email %}

<div class="quick-options">
	{% emails_options email %}
</div>
<h1>{% trans 'E-mail View'%}</h1>
<div class="clear-right"></div>

<p>
<div class="email-view-item"><b>{% trans "Sender:" %}</b> {{email.sender}} {% trans "Reply To: " %}{{ email.reply_to }}</div>
<div class="email-view-item">{% trans "Content Type: " %}<b>{{email.content_type}}</b>{% trans " Created on: " %}<b>{{ email.create_dt|date:'long' }}</b></div>
<div class="email-view-item">{% trans "Subject: " %}<b>{{email.subject}}</b> </div>
<div class="email-view-item"><a href="{% url email.viewbody email.id %}" class="body-copy-yellow" target="_blank">{% trans "Click here to view the entire e-mail body in the new window " %}</a></div>
<div class="email-view-item">{% trans "Recipient: " %}{{email.recipient|obfuscate_email }}</div>
<div class="email-view-item">{% trans "Recipient cc: " %}{{email.recipient_cc|obfuscate_email }}</div>
<div class="email-view-item">{% trans "Creator: " %}<a href="{% url profile email.creator.username %}">{{email.creator.username}}</a></div>
</p>


</div>
{% endblock %}