diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/mail_conv.tpl | 40 | ||||
-rw-r--r-- | view/tpl/mail_display.tpl | 24 | ||||
-rw-r--r-- | view/tpl/mail_head.tpl | 8 | ||||
-rw-r--r-- | view/tpl/mail_list.tpl | 7 | ||||
-rw-r--r-- | view/tpl/message_side.tpl | 11 | ||||
-rw-r--r-- | view/tpl/msg-header.tpl | 82 |
6 files changed, 0 insertions, 172 deletions
diff --git a/view/tpl/mail_conv.tpl b/view/tpl/mail_conv.tpl deleted file mode 100644 index 948890312..000000000 --- a/view/tpl/mail_conv.tpl +++ /dev/null @@ -1,40 +0,0 @@ -<div id="mail-{{$mail.id}}" class="mb-2 clearfix mail-conv-outside-wrapper"{{if $mail.sig}} data-sig="{{$mail.sig}}"{{/if}}> - <div class="mb-2 clearfix wall-item-head"> - <div class="wall-item-info" > - <a href="{{$mail.from_url}}"><img class="wall-item-photo" src="{{$mail.from_photo}}" alt="{{$mail.from_name}}" /></a> - </div> - <div class="mail-conv-detail"> - {{if $mail.is_recalled}}<strong>{{$mail.is_recalled}}</strong>{{/if}} - <div class="wall-item-name"><a class="wall-item-name-link" href="{{$mail.from_url}}">{{$mail.from_name}}</a></div> - <div class="autotime wall-item-ago" title="{{$mail.date}}"></div> - </div> - </div> - <div class="clearfix mail-conv-content"> - <div class="clearfix mail-conv-body"> - {{$mail.body}} - </div> - {{if $mail.attachments}} - <div class="dropdown float-start"> - <button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle" data-bs-toggle="dropdown" id="attachment-menu-{{$item.id}}"><i class="fa fa-fw fa-paperclip"></i></button> - <div class="dropdown-menu" role="menu" aria-labelledby="attachment-menu-{{$item.id}}">{{$mail.attachments}}</div> - </div> - {{/if}} - <div class="float-end dropdown"> - <button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-bs-toggle="dropdown" id="mail-item-menu-{{$mail.id}}"> - <i class="fa fa-cog"></i> - </button> - <div class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="mail-item-menu-{{$mail.id}}"> - {{** if $mail.can_recall}} - <a class="dropdown-item" href="mail/{{$mail.mailbox}}/recall/{{$mail.id}}" title="{{$mail.recall}}" id="mail-conv-recall-icon-{{$mail.id}}"><i class="fa fa-fw fa-undo"></i> {{$mail.recall}}</a> - {{/if **}} - <a class="dropdown-item" href="mail/{{$mail.id}}/download" id="mail-conv-download-icon-{{$mail.id}}"><i class="fa fa-fw fa-download"></i> {{$mail.download}}</a> - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="#" onclick="dropItem('mail/{{$mail.mailbox}}/drop/{{$mail.id}}', '#mail-{{$mail.id}}'); return false;" title="{{$mail.delete}}" id="mail-conv-delete-icon-{{$mail.id}}"><i class="fa fa-fw fa-trash-o"></i> {{$mail.delete}}</a> - {{if $mail.can_recall}} - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="dreport/mail/{{$mail.mid}}" title="{{$mail.dreport}}" id="mail-conv-dreport-icon-{{$mail.id}}">{{$mail.dreport}}</a> - {{/if}} - </div> - </div> - </div> -</div> diff --git a/view/tpl/mail_display.tpl b/view/tpl/mail_display.tpl deleted file mode 100644 index 80ce40838..000000000 --- a/view/tpl/mail_display.tpl +++ /dev/null @@ -1,24 +0,0 @@ -<div class="generic-content-wrapper"> - <div class="section-title-wrapper"> - <div class="float-end"> - <button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen();"><i class="fa fa-expand"></i></button> - <button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false);"><i class="fa fa-compress"></i></button> - {{if $mailbox == 'combined'}} - <a class="btn btn-sm btn-danger" href="mail/{{$mailbox}}/dropconv/{{$thread_id}}" onclick="return confirmDelete();"><i class="fa fa-trash-o"></i> {{$delete}}</a> - {{/if}} - </div> - <h2>{{$prvmsg_header}}</h2> - <div class="clear"></div> - </div> - <div class="section-content-wrapper"> - {{foreach $mails as $mail}} - {{include file="mail_conv.tpl"}} - {{/foreach}} - - {{if $canreply}} - {{include file="prv_message.tpl"}} - {{else}} - {{$unknown_text}} - {{/if}} - </div> -</div> diff --git a/view/tpl/mail_head.tpl b/view/tpl/mail_head.tpl deleted file mode 100644 index aac592a5f..000000000 --- a/view/tpl/mail_head.tpl +++ /dev/null @@ -1,8 +0,0 @@ -<div class="widget"> - <h3>{{$header}}</h3> - <ul class="nav nav-pills flex-column"> - {{foreach $messages as $message}} - {{include file="mail_list.tpl"}} - {{/foreach}} - </ul> -</div> diff --git a/view/tpl/mail_list.tpl b/view/tpl/mail_list.tpl deleted file mode 100644 index a1784e1e6..000000000 --- a/view/tpl/mail_list.tpl +++ /dev/null @@ -1,7 +0,0 @@ -<li class="nav-item"> - <a href="mail/{{$message.mailbox}}/{{$message.id}}" class="nav-link{{if $message.selected}} active{{/if}}"> - <span class="{{if ! $message.seen || $message.selected}}font-weight-bold{{/if}}">{{$message.subject}}</span><br> - <span class="conv-participants">{{$message.from_name}} > {{$message.to_name}}</span><br> - <span class="wall-item-ago autotime" title="{{$message.date}}"></span> - </a> -</li> diff --git a/view/tpl/message_side.tpl b/view/tpl/message_side.tpl deleted file mode 100644 index a45d1d177..000000000 --- a/view/tpl/message_side.tpl +++ /dev/null @@ -1,11 +0,0 @@ -<div class="widget"> - <h3>{{$title}}</h3> - <ul class="nav nav-pills flex-column"> - <li class="nav-item"><a href="{{$combined.url}}" class="nav-link{{if $combined.sel}} active{{/if}}">{{$combined.label}}</a></li> - <li class="nav-item"><a href="{{$inbox.url}}" class="nav-link{{if $inbox.sel}} active{{/if}}">{{$inbox.label}}</a></li> - <li class="nav-item"><a href="{{$outbox.url}}" class="nav-link{{if $outbox.sel}} active{{/if}}">{{$outbox.label}}</a></li> -{{** - <li class="nav-item"><a href="{{$new.url}}" class="nav-link{{if $new.sel}} active{{/if}}">{{$new.label}}</a></li> -**}} - </ul> -</div> diff --git a/view/tpl/msg-header.tpl b/view/tpl/msg-header.tpl deleted file mode 100644 index d49303453..000000000 --- a/view/tpl/msg-header.tpl +++ /dev/null @@ -1,82 +0,0 @@ -{{** -<script src="vendor/blueimp/jquery-file-upload/js/vendor/jquery.ui.widget.js"></script> -<script src="vendor/blueimp/jquery-file-upload/js/jquery.iframe-transport.js"></script> -<script src="vendor/blueimp/jquery-file-upload/js/jquery.fileupload.js"></script> -<script> - $(document).ready(function() { - - $("#prvmail-text").editor_autocomplete(baseurl+"/acl"); - - $('#invisible-wall-file-upload').fileupload({ - url: 'wall_attach/{{$nickname}}', - dataType: 'json', - dropZone: $('#prvmail-text'), - maxChunkSize: 4 * 1024 * 1024, - add: function(e,data) { - $('#prvmail-rotator').show(); - data.submit(); - }, - done: function(e,data) { - addmailtext(data.result.message); - $('#jot-media').val($('#jot-media').val() + data.result.message); - }, - stop: function(e,data) { - preview_mail(); - $('#prvmail-rotator').hide(); - }, - }); - - $('#prvmail-attach-wrapper').click(function(event) { event.preventDefault(); $('#invisible-wall-file-upload').trigger('click'); return false;}); - $('#prvmail-attach-sub').click(function(event) { event.preventDefault(); $('#invisible-wall-file-upload').trigger('click'); return false;}); - - - }); - - function prvmailJotGetLink() { - reply = prompt("{{$linkurl}}"); - if(reply && reply.length) { - $('#prvmail-rotator').show(); - $.get('linkinfo?f=&url=' + reply, function(data) { - addmailtext(data); - preview_mail(); - $('#prvmail-rotator').hide(); - }); - } - } - - function prvmailGetExpiry() { - reply = prompt("{{$expireswhen}}", $('#inp-prvmail-expires').val()); - if(reply && reply.length) { - $('#inp-prvmail-expires').val(reply); - } - } - - function linkdropper(event) { - var linkFound = event.dataTransfer.types.contains("text/uri-list"); - if(linkFound) - event.preventDefault(); - } - - function linkdrop(event) { - var reply = event.dataTransfer.getData("text/uri-list"); - event.target.textContent = reply; - event.preventDefault(); - if(reply && reply.length) { - $('#prvmail-rotator').show(); - $.get('linkinfo?f=&url=' + reply, function(data) { - addmailtext(data); - preview_mail(); - $('#prvmail-rotator').hide(); - }); - } - } - - function addmailtext(data) { - var currentText = $("#prvmail-text").val(); - $("#prvmail-text").val(currentText + data); - } - - - -</script> -**}} |