From 12cf9c291407c252032f8b08041fc8ed2186d847 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 12 May 2016 02:49:55 +0200 Subject: [PATCH] some more work on private messages mail_display.tpl & mail_conv.tpl --- css/style.css | 36 ++++++++++++++++++++++++++++++++++++ templates/mail_conv.tpl | 21 +++++++++++++++++++++ templates/mail_display.tpl | 19 +++++++++++++++++++ templates/mail_list.tpl | 30 ++++++++++++++++++++++++++++++ templates/msg-header.tpl | 5 +++++ templates/prv_message.tpl | 2 +- 6 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 templates/mail_conv.tpl create mode 100644 templates/mail_display.tpl create mode 100644 templates/mail_list.tpl diff --git a/css/style.css b/css/style.css index 834e7505cb..9fa182ded4 100644 --- a/css/style.css +++ b/css/style.css @@ -1701,6 +1701,42 @@ ul.viewcontact_wrapper > li { } /* private mail */ +.mail-thread { + max-height: calc(100vh - 200px); +} +#mail-conversation { + overflow-y: auto; + max-height: calc(100vh - 400px); + max-height: auto; + /*height: 500px;*/ + margin-bottom: 0px; +} +#mail-conversation.can-reply { + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} +.mail-conv-wrapper .media .contact-photo-wrapper { + height: 48px; + width: 48px; +} +.mail-thread #prvmail-to-label, +.mail-thread #prvmail-subject-label { + display: none; +} +.mail-thread #prvmail-message-label > label { + display:none; +} +.mail-thread #prvmail-message-label textarea { + border-top: none; + margin-top: -10px; + border-top-left-radius: 0px; + border-top-right-radius: 0px; + max-height: 120px; +} +.mail-conv-wrapper { + padding: 15px; + border-bottom: 1px solid rgba(238, 238, 238, 0.95) +} #prvmail-end { clear:both; } diff --git a/templates/mail_conv.tpl b/templates/mail_conv.tpl new file mode 100644 index 0000000000..dd091249a3 --- /dev/null +++ b/templates/mail_conv.tpl @@ -0,0 +1,21 @@ +
+
+
+ + {{$mail.from_name}} + +
+
+
{{$mail.date}}
+
+

{{$mail.from_name}}

+ +
+ {{$mail.body}} +
+ {{*× *}} +
+
+
+
+ diff --git a/templates/mail_display.tpl b/templates/mail_display.tpl new file mode 100644 index 0000000000..fc8817dd39 --- /dev/null +++ b/templates/mail_display.tpl @@ -0,0 +1,19 @@ + +
+ {{$brauchenwas}} +

{{$thread_subject}}

+ +
+ {{foreach $mails as $mail}} + {{include file="mail_conv.tpl"}} + {{/foreach}} +
+ +
+ {{if $canreply}} + {{include file="prv_message.tpl"}} + {{else}} + {{$unknown_text}} + {{/if}} +
+
diff --git a/templates/mail_list.tpl b/templates/mail_list.tpl new file mode 100644 index 0000000000..18a2acc96b --- /dev/null +++ b/templates/mail_list.tpl @@ -0,0 +1,30 @@ +
+ + + +
+
+ + {{$from_name}} + +
+
+
{{$ago}}
+ +
{{$from_name}}
+ +

{{$subject}}

+
+ × +

{{$count}}

+
+ +
+ + + +
+
+ +
+ diff --git a/templates/msg-header.tpl b/templates/msg-header.tpl index 304b2ec17b..6645a4a74f 100644 --- a/templates/msg-header.tpl +++ b/templates/msg-header.tpl @@ -55,6 +55,11 @@ else $("#comment-edit-text-input").bbco_autocomplete('bbcode'); {{/if}} + //var objDiv = document.getElementById("mail-conversation"); + //objDiv.scrollTop = objDiv.scrollHeight; + $('#mail-conversation').perfectScrollbar(); + $('#mail-conversation').scrollTop($('#mail-conversation')[0].scrollHeight); + }); diff --git a/templates/prv_message.tpl b/templates/prv_message.tpl index 82031291bd..23f9dab2ca 100644 --- a/templates/prv_message.tpl +++ b/templates/prv_message.tpl @@ -31,7 +31,7 @@ -