diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-02 12:20:33 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-02 12:20:33 +0200 |
commit | 3bed94f4ad6c6a1740bf5ee779ca55a5bd00bdbb (patch) | |
tree | b8068cc108bcde064af4697e7ab9ba7fffe340d8 /view/tpl | |
parent | a895a0d79e0063a9b57e03f523ed400f94f10efe (diff) | |
download | volse-hubzilla-3bed94f4ad6c6a1740bf5ee779ca55a5bd00bdbb.tar.gz volse-hubzilla-3bed94f4ad6c6a1740bf5ee779ca55a5bd00bdbb.tar.bz2 volse-hubzilla-3bed94f4ad6c6a1740bf5ee779ca55a5bd00bdbb.zip |
move mail item buttons/menu to dropdown
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/mail_conv.tpl | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/view/tpl/mail_conv.tpl b/view/tpl/mail_conv.tpl index d850df8c2..44059f720 100755 --- a/view/tpl/mail_conv.tpl +++ b/view/tpl/mail_conv.tpl @@ -10,15 +10,33 @@ <div class="clear"></div> <div class="mail-conv-content"> <div class="mail-conv-body"> - {{$mail.body}} + {{$mail.body}} </div> - <div class="btn-group pull-right" id="mail-conv-delete-wrapper-{{$mail.id}}" > - {{if $mail.can_recall}} - <a href="dreport/mail/{{$mail.mid}}" title="{{$mail.dreport}}" id="mail-conv-dreport-icon-{{$mail.id}}" class="btn btn-default" ><i class="icon-barcode mail-icons"></i></a> - <a href="mail/{{$mail.mailbox}}/recall/{{$mail.id}}" title="{{$mail.recall}}" id="mail-conv-recall-icon-{{$mail.id}}" class="btn btn-default" ><i class="icon-undo mail-icons"></i></a> - {{/if}} - <a href="#" onclick="dropItem('mail/{{$mail.mailbox}}/drop/{{$mail.id}}', '#mail-{{$mail.id}}'); return false;" title="{{$mail.delete}}" id="mail-conv-delete-icon-{{$mail.id}}" class="btn btn-default" ><i class="icon-trash mail-icons"></i></a> + <div class="pull-right dropdown"> + + <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" id="mail-item-menu-{{$mail.id}}"> + <i class="icon-caret-down"></i> + </button> + <ul class="dropdown-menu" role="menu" aria-labelledby="mail-item-menu-{{$mail.id}}"> + {{if $mail.can_recall}} + <li> + <a href="mail/{{$mail.mailbox}}/recall/{{$mail.id}}" title="{{$mail.recall}}" id="mail-conv-recall-icon-{{$mail.id}}"><i class="icon-undo mail-icons"></i> {{$mail.recall}}</a> + </li> + {{/if}} + <li> + <a 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="icon-trash mail-icons"></i> {{$mail.delete}}</a> + </li> + {{if $mail.can_recall}} + <li class="divider"></li> + <li> + <a href="dreport/mail/{{$mail.mid}}" title="{{$mail.dreport}}" id="mail-conv-dreport-icon-{{$mail.id}}">{{$mail.dreport}}</a> + </li> + {{/if}} + </ul> + </div> + + <div class="clear"></div> </div> <div class="clear"></div> |