diff options
| author | Bobby <[email protected]> | 2025-12-23 10:57:04 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-23 10:57:04 +0530 |
| commit | 3036abbc4af1e85e3f3d473c9facdeefb94916c7 (patch) | |
| tree | 149363c254b9a52b85854cb2d32eb95c8cefa542 /templates/partials/preview.django | |
| parent | ecce99fde86b01efffd1825688ee950f7e7f6b33 (diff) | |
| download | lain-3036abbc4af1e85e3f3d473c9facdeefb94916c7.tar.xz lain-3036abbc4af1e85e3f3d473c9facdeefb94916c7.zip | |
email templates, routes and utils
Diffstat (limited to 'templates/partials/preview.django')
| -rw-r--r-- | templates/partials/preview.django | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/partials/preview.django b/templates/partials/preview.django new file mode 100644 index 0000000..dd40109 --- /dev/null +++ b/templates/partials/preview.django @@ -0,0 +1,46 @@ +{% if Email %} + <div class="email-header"> + <h2 class="email-subject">{{ Email.Subject }}</h2> + + <div class="email-actions"> + <button class="btn-icon" title="Reply">↶</button> + <button class="btn-icon" title="Reply All">⇄</button> + <button class="btn-icon" title="Forward">→</button> + <button class="btn-icon" title="Archive">▼</button> + <button class="btn-icon" title="Delete">×</button> + </div> + </div> + + <div class="email-sender"> + <div class="sender-info"> + <strong>{{ Email.FromName }}</strong> <{{ Email.FromAddress }}> + </div> + <div class="email-date">{{ Email.Date }}</div> + </div> + + <div class="email-recipients"> + <div> + <strong>To:</strong> {{ Email.To }} + </div> + {% if Email.Cc %} + <div> + <strong>Cc:</strong> {{ Email.Cc }} + </div> + {% endif %} + </div> + + {% if Email.Attachments %} + <div class="email-attachments"> + <strong>Attachments:</strong> + {% for attachment in Email.Attachments %} + <a href="#" class="attachment">{{ attachment.Filename }} ({{ attachment.Size }})</a> + {% endfor %} + </div> + {% endif %} + + <div class="email-body">{{ Email.Body|safe }}</div> +{% else %} + <div class="no-email-selected"> + <p>Select an email to view</p> + </div> +{% endif %} |
