mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 08:48:03 +08:00
278 lines
14 KiB
HTML
278 lines
14 KiB
HTML
<div id="rl-sub-right">
|
|
<div class="messageView" data-bind="css: {'message-selected': isMessageSelected, 'message-focused': message.focused}">
|
|
<div class="toolbar g-ui-user-select-none">
|
|
<div class="messageButtons btn-toolbar">
|
|
<div class="btn-group" data-placement="bottom" data-bind="visible: !usePreviewPane(), tooltip: 'MESSAGE/BUTTON_CLOSE'">
|
|
<a class="btn buttonClose" data-bind="command: closeMessage">
|
|
<i class="icon-remove"></i>
|
|
</a>
|
|
</div>
|
|
<div class="btn-group"> </div>
|
|
<div class="btn-group" data-placement="bottom" data-bind="visible: isDraftFolder(), tooltip: 'MESSAGE/BUTTON_EDIT'">
|
|
<a class="btn btn-success buttonEdit" data-bind="command: messageEditCommand">
|
|
<i class="icon-pencil icon-white"></i>
|
|
</a>
|
|
</div>
|
|
<div class="btn-group" data-bind="visible: !isDraftFolder()">
|
|
<a class="btn btn-dark-disabled-border buttonReply" data-placement="bottom" data-bind="command: replyCommand, tooltip: 'MESSAGE/BUTTON_REPLY'">
|
|
<i class="icon-reply"></i>
|
|
</a>
|
|
<a class="btn btn-dark-disabled-border buttonReplyAll" data-placement="bottom" data-bind="command: replyAllCommand, tooltip: 'MESSAGE/BUTTON_REPLY_ALL'">
|
|
<i class="icon-reply-all"></i>
|
|
</a>
|
|
<a class="btn btn-dark-disabled-border buttonForward" data-placement="bottom" data-bind=" command: forwardCommand, tooltip: 'MESSAGE/BUTTON_FORWARD'">
|
|
<i class="icon-forward"></i>
|
|
</a>
|
|
</div>
|
|
<div class="btn-group" data-bind="visible: !usePreviewPane()"> </div>
|
|
<div class="btn-group" data-bind="visible: !usePreviewPane()">
|
|
<a class="btn btn-dark-disabled-border button-archive" data-placement="bottom" data-bind="visible: !isDraftFolder() && !isArchiveFolder() && !isArchiveDisabled(), command: archiveCommand, tooltip: 'MESSAGE/BUTTON_ARCHIVE'">
|
|
<i class="icon-archive"></i>
|
|
</a>
|
|
<a class="btn btn-dark-disabled-border button-spam" data-placement="bottom" data-bind="visible: !isDraftFolder() && !isSentFolder() && !isSpamFolder() && !isSpamDisabled(), command: spamCommand, tooltip: 'MESSAGE/BUTTON_SPAM'">
|
|
<i class="icon-bug"></i>
|
|
</a>
|
|
<a class="btn btn-dark-disabled-border button-delete" data-placement="bottom" data-bind="command: deleteCommand, tooltip: 'MESSAGE/BUTTON_DELETE'">
|
|
<i class="icon-trash"></i>
|
|
</a>
|
|
</div>
|
|
<div class="btn-group"> </div>
|
|
<div class="btn-group">
|
|
<a class="btn dropdown-toggle buttonMore" data-placement="bottom" data-toggle="dropdown" data-bind="command: messageVisibilityCommand, tooltip: 'MESSAGE/BUTTON_MORE'">
|
|
<i class="icon-list"></i>
|
|
</a>
|
|
<ul class="dropdown-menu g-ui-menu">
|
|
<li class="e-item" data-bind="visible: !isDraftFolder()">
|
|
<a class="e-link" data-bind="command: forwardAsAttachmentCommand">
|
|
<i class="icon-reply"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_FORWARD_AS_ATTACHMENT"></span>
|
|
</a>
|
|
</li>
|
|
<li class="e-item" data-bind="visible: !isDraftFolder()">
|
|
<a class="e-link" data-bind="command: editAsNewCommand">
|
|
<i class="icon-pencil"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_EDIT_AS_NEW"></span>
|
|
</a>
|
|
</li>
|
|
<li class="divider" data-bind="visible: !isDraftFolder()"></li>
|
|
<li class="e-item" data-bind="visible: usePreviewPane() && !isDraftFolder() && !isArchiveFolder() && !isArchiveDisabled()">
|
|
<a target="_blank" class="e-link" data-bind="command: archiveCommand">
|
|
<i class="icon-archive"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_ARCHIVE"></span>
|
|
</a>
|
|
</li>
|
|
<li class="e-item" data-bind="visible: usePreviewPane() && !isDraftFolder() && !isSentFolder() && !isSpamFolder() && !isSpamDisabled()">
|
|
<a target="_blank" class="e-link" data-bind="command: spamCommand">
|
|
<i class="icon-bug"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_SPAM"></span>
|
|
</a>
|
|
</li>
|
|
<li class="e-item" data-bind="visible: usePreviewPane()">
|
|
<a target="_blank" class="e-link" data-bind="command: deleteCommand">
|
|
<i class="icon-trash"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_DELETE"></span>
|
|
</a>
|
|
</li>
|
|
<li class="divider" data-bind="visible: usePreviewPane()"></li>
|
|
<li class="e-item">
|
|
<a target="_blank" class="e-link" data-bind="click: function () { if (message()) { message().printMessage(); }} ">
|
|
<i class="icon-print"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/MENU_PRINT"></span>
|
|
</a>
|
|
</li>
|
|
<li class="e-item">
|
|
<a target="_blank" class="e-link" data-bind="click: function () { if (message()) { message().viewPopupMessage(); }}">
|
|
<i class="icon-popup"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/BUTTON_IN_NEW_WINDOW"></span>
|
|
</a>
|
|
</li>
|
|
<li class="divider"></li>
|
|
<li class="e-item">
|
|
<a target="_blank" class="e-link" data-bind="link: viewViewLink()">
|
|
<i class="icon-file-code"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/MENU_VIEW_ORIGINAL"></span>
|
|
</a>
|
|
</li>
|
|
<li class="e-item">
|
|
<a target="_blank" class="e-link" data-bind="link: viewDownloadLink()">
|
|
<i class="icon-download"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/MENU_DOWNLOAD_ORIGINAL"></span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="btn-group"> </div>
|
|
<div class="btn-group" data-bind="visible: !usePreviewPane()">
|
|
<a class="btn buttonUp" data-bind="command: goUpCommand">
|
|
<i class="icon-left-middle"></i>
|
|
</a>
|
|
<a class="btn buttonDown" data-bind="command: goDownCommand">
|
|
<i class="icon-right-middle"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="b-content thm-message-view-background-color">
|
|
<div>
|
|
<div class="b-message-view-checked-helper" data-bind="visible: !message() && '' === messageError() && hasCheckedMessages()">
|
|
<span data-bind="text: messageListChecked().length"></span>
|
|
<i class="icon-mail"></i>
|
|
</div>
|
|
<div class="b-message-view-desc" data-bind="visible: !message() && '' === messageError() && !hasCheckedMessages()">
|
|
<span class="i18n" data-i18n-text="MESSAGE/MESSAGE_VIEW_DESC"></span>
|
|
</div>
|
|
<div class="b-message-view-desc error" data-bind="visible: !message() && '' !== messageError()">
|
|
<span class="text" data-bind="text: messageError()"></span>
|
|
</div>
|
|
<div data-bind="visible: message">
|
|
<div class="messageItem" data-bind="css: viewLineAsCcc(), nano: true">
|
|
<div class="content g-scrollbox" tabindex="0" data-bind="hasfocus: messageDomFocused">
|
|
<div class="content-wrapper">
|
|
<div>
|
|
<span class="buttonUp" data-bind="click: scrollToTop">
|
|
<i class="icon-up"></i>
|
|
</span>
|
|
<span class="buttonFull" data-bind="click: fullScreen">
|
|
<i class="icon-arrows-out"></i>
|
|
</span>
|
|
<span class="buttonUnFull" data-bind="click: unFullScreen">
|
|
<i class="icon-arrows-in"></i>
|
|
</span>
|
|
<div class="messageItemHeader">
|
|
<div>
|
|
<img class="fromPic" data-bind="visible: viewUserPicVisible, attr: {'src': viewUserPic() }">
|
|
<div style="overflow: hidden;">
|
|
<div class="subjectParent" data-bind="event: { 'dblclick': toggleFullScreen }">
|
|
<span class="subject" data-bind="text: viewSubject, title: viewSubject"></span>
|
|
<span class="i18n emptySubjectText" data-i18n-text="MESSAGE/EMPTY_SUBJECT_TEXT"></span>
|
|
</div>
|
|
<div class="senderParent">
|
|
<div class="g-ui-user-select-none" style="float: left; cursor: pointer;" data-bind="click: function() { showFullInfo(!showFullInfo()); }">
|
|
<i class="icon-right-dir" data-bind="css: showFullInfo() ? 'icon-down-dir' : 'icon-right-dir'"></i>
|
|
</div>
|
|
<div class="informationShort" data-bind="event: { 'dblclick': toggleFullScreen }">
|
|
<span data-bind="visible: !isDraftOrSentFolder()">
|
|
<span class="from" data-bind="html: viewFromShort, title: viewFrom"></span>
|
|
</span>
|
|
<span data-bind="visible: isDraftOrSentFolder()">
|
|
<span class="i18n uiLabel labelTo" data-i18n-text="MESSAGE/LABEL_TO"></span>:
|
|
<span class="to" data-bind="html: viewToShort, title: viewTo"></span>
|
|
</span>
|
|
(<span class="date" data-bind="text: viewDate"></span>)
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<div class="informationFull" data-bind="visible: showFullInfo()">
|
|
<div data-bind="visible: '' !== viewFrom()">
|
|
<span class="i18n uiLabel labelFrom" data-i18n-text="MESSAGE/LABEL_FROM"></span>:
|
|
|
|
<span class="from" data-bind="text: viewFrom, title: viewFrom"></span>
|
|
</div>
|
|
<div data-bind="visible: '' !== viewTo()">
|
|
<span class="i18n uiLabel labelTo" data-i18n-text="MESSAGE/LABEL_TO"></span>:
|
|
|
|
<span class="to" data-bind="text: viewTo, title: viewTo"></span>
|
|
</div>
|
|
<div data-bind="visible: '' !== viewCc()">
|
|
<span class="i18n uiLabel labelCc" data-i18n-text="MESSAGE/LABEL_CC"></span>:
|
|
|
|
<span class="cc" data-bind="text: viewCc, title: viewCc"></span>
|
|
</div>
|
|
<div data-bind="visible: '' !== viewBcc()">
|
|
<span class="i18n uiLabel labelBcc" data-i18n-text="MESSAGE/LABEL_BCC"></span>:
|
|
|
|
<span class="bcc" data-bind="text: viewBcc, title: viewBcc"></span>
|
|
</div>
|
|
<div>
|
|
<span class="i18n uiLabel labelBcc" data-i18n-text="MESSAGE/LABEL_DATE"></span>:
|
|
|
|
<span class="date" data-bind="text: viewDate"></span>
|
|
|
|
(<span class="date" data-bind="text: viewMoment"></span>)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="line-loading e-strip-animation" data-bind="visible: messageLoadingThrottle()"></div>
|
|
|
|
<div class="loading g-ui-min-height-300" data-bind="visible: messageLoadingThrottle()">
|
|
<span class="i18n text" data-i18n-text="MESSAGE/MESSAGE_LOADING"></span><span class="textLoadingAnimationD1">.</span><span class="textLoadingAnimationD2">.</span><span class="textLoadingAnimationD3">.</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="g-ui-min-height-300" data-bind="visible: !messageLoadingThrottle()">
|
|
<div class="showImages" data-bind="visible: message() && message().hasImages(), click: function() { showImages(message()); }">
|
|
<i class="icon-image"></i>
|
|
|
|
<span class="i18n text" data-i18n-text="MESSAGE/BUTTON_SHOW_IMAGES"></span>
|
|
</div>
|
|
<div class="readReceipt" data-bind="visible: message() && '' !== message().readReceipt() && !message().isReadReceipt(), click: function() { readReceipt(message()); }">
|
|
<i class="icon-mail"></i>
|
|
|
|
<span class="i18n text" data-i18n-text="MESSAGE/BUTTON_NOTIFY_READ_RECEIPT"></span>
|
|
</div>
|
|
<div class="pgpInfo" data-bind="visible: isPgpStatusVerifyVisible(), css: {'success': isPgpStatusVerifySuccess()}">
|
|
<i class="icon-key"></i>
|
|
|
|
<span data-bind="text: pgpStatusVerifyMessage()"></span>
|
|
</div>
|
|
<div class="pgpSigned" data-bind="visible: message() && message().isPgpSigned() && isPgpActionVisible(), click: function() { verifyPgpSignedClearMessage(message()); }">
|
|
<i class="icon-lock"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/PGP_SIGNED_MESSAGE_DESC"></span>
|
|
</div>
|
|
<div class="pgpEncrypted" data-bind="visible: message() && message().isPgpEncrypted() && isPgpActionVisible()">
|
|
<i class="icon-lock"></i>
|
|
|
|
<span class="i18n" data-i18n-text="MESSAGE/PGP_ENCRYPTED_MESSAGE_DESC" data-bind="click: function() { decryptPgpEncryptedMessage(message()); }"></span>
|
|
|
|
<input type="password" class="i18n span3 inputPgpPassword" style="margin-bottom: 0" data-i18n-placeholder="MESSAGE/PGP_PASSWORD_INPUT_PLACEHOLDER" data-bind="value: viewPgpPassword" />
|
|
</div>
|
|
<div class="attachmentsPlace" data-bind="visible: message() && message().hasVisibleAttachments()">
|
|
<ul class="attachmentList" data-bind="foreach: message() ? message().attachments() : []">
|
|
<li class="attachmentItem" draggable="true" data-bind="visible: !isLinked, title: fileName, event: { 'dragstart': eventDragStart }">
|
|
<div style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">
|
|
<i class="attachmentIcon" data-bind="css: iconClass()"></i>
|
|
|
|
<span class="attachmentName" data-bind="text: fileName"></span>
|
|
</div>
|
|
<div>
|
|
<a class="attachmentPreview magnificPopupImage pull-left"
|
|
data-bind="visible: isImage(), attr: {href: linkPreview(), title: fileName}" target="_blank">
|
|
<i class="icon-eye"></i>
|
|
</a>
|
|
<a class="attachmentPreview pull-left"
|
|
data-bind="visible: isText(), attr: {href: linkPreviewAsPlain(), title: fileName}" target="_blank">
|
|
<i class="icon-eye"></i>
|
|
</a>
|
|
<a class="attachmentPreview pull-left"
|
|
data-bind="visible: isPdf(), attr: {href: linkPreview(), title: fileName}" target="_blank">
|
|
<i class="icon-eye"></i>
|
|
</a>
|
|
<span class="attachmentSize pull-right" data-bind="text: friendlySize"></span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<hr />
|
|
</div>
|
|
<div class="bodyText g-ui-min-height-300" data-bind="initDom: messagesBodiesDom"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|