aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-09-17 19:25:13 +0200
committerMario Vavti <mario@mariovavti.com>2015-09-17 19:25:13 +0200
commit1cf404177dc3824096e724308f4e26716b6e2c8d (patch)
treec9b5886dac9a2cd3bf06c871dab2a5b36e4e26f4 /view/tpl
parent6cd5826d214701071c0ea14a0be16284afc926b4 (diff)
downloadvolse-hubzilla-1cf404177dc3824096e724308f4e26716b6e2c8d.tar.gz
volse-hubzilla-1cf404177dc3824096e724308f4e26716b6e2c8d.tar.bz2
volse-hubzilla-1cf404177dc3824096e724308f4e26716b6e2c8d.zip
quickfix for private messages - needs a lot more work
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/mail_display.tpl22
-rwxr-xr-xview/tpl/mail_head.tpl13
-rwxr-xr-xview/tpl/mail_list.tpl14
3 files changed, 29 insertions, 20 deletions
diff --git a/view/tpl/mail_display.tpl b/view/tpl/mail_display.tpl
index 523a9160a..062710f1d 100755
--- a/view/tpl/mail_display.tpl
+++ b/view/tpl/mail_display.tpl
@@ -1,12 +1,16 @@
-<h3>{{$prvmsg_header}}</h3>
<div class="generic-content-wrapper">
-{{foreach $mails as $mail}}
- {{include file="mail_conv.tpl"}}
-{{/foreach}}
+ <div class="section-title-wrapper">
+ <h2>{{$prvmsg_header}}</h2>
+ </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}}
+ {{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
index 1cd7145e7..7bc854fff 100755
--- a/view/tpl/mail_head.tpl
+++ b/view/tpl/mail_head.tpl
@@ -1,3 +1,10 @@
-<h3>{{$messages}}</h3>
-
-{{$tab_content}}
+<div class="generic-content-wrapper">
+ <div class="section-title-wrapper">
+ <h2>{{$header}}</h2>
+ </div>
+ <div class="section-content-wrapper">
+ {{foreach $messages as $message}}
+ {{include file="mail_list.tpl"}}
+ {{/foreach}}
+ </div>
+</div>
diff --git a/view/tpl/mail_list.tpl b/view/tpl/mail_list.tpl
index 1d499e12f..e75fae15c 100755
--- a/view/tpl/mail_list.tpl
+++ b/view/tpl/mail_list.tpl
@@ -1,8 +1,6 @@
-<div class="generic-content-wrapper" id="mail-list-wrapper">
- <a href="{{$from_url}}" class ="mail-list" ><img class="mail-list-sender-photo" src="{{$from_photo}}" alt="{{$from_name}}" /></a>
- <span class="mail-list">{{$from_name}}</span>
- <span class="mail-list {{if $seen}}seen{{else}}unseen{{/if}}"><a href="mail/{{$id}}" class="mail-link">{{$subject}}</a></span>
- <span class="mail-list" title="{{$date}}">{{$date}}</span>
- <span class="mail-list mail-list-remove" class="btn btn-default btn-sm"><a href="message/dropconv/{{$id}}" onclick="return confirmDelete();" title="{{$delete}}" class="btn btn-default btn-sm" ><i class="icon-trash mail-icons drop-icons"></i></a></span>
- <div class="clear">&nbsp;</div>
-</div>
+<a href="{{$message.from_url}}" class ="mail-list" ><img class="mail-list-sender-photo" src="{{$message.from_photo}}" alt="{{$message.from_name}}" /></a>
+<span class="mail-list">{{$message.from_name}}</span>
+<span class="mail-list {{if $message.seen}}seen{{else}}unseen{{/if}}"><a href="mail/{{$message.id}}" class="mail-link">{{$message.subject}}</a></span>
+<span class="mail-list" title="{{$message.date}}">{{$message.date}}</span>
+<span class="mail-list mail-list-remove" class="btn btn-default btn-sm"><a href="message/dropconv/{{$id}}" onclick="return confirmDelete();" title="{{$message.delete}}" class="btn btn-default btn-sm" ><i class="icon-trash mail-icons drop-icons"></i></a></span>
+<div class="clear"></div>