mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Improve mailbox management for navigation
This commit is contained in:
+4
-1
@@ -6,7 +6,10 @@
|
||||
<div id="app">
|
||||
<div id="app-navigation">
|
||||
<?php print_unescaped($this->inc('part.navigation')); ?>
|
||||
<?php print_unescaped($this->inc('part.settings')); ?>
|
||||
<?php /*print_unescaped($this->inc('part.settings'));*/ ?>
|
||||
</div>
|
||||
|
||||
<div id="app-mailbox-content">
|
||||
</div>
|
||||
|
||||
<div id="app-content">
|
||||
|
||||
@@ -1,19 +1,12 @@
|
||||
<ul>
|
||||
<?php if (count($_["PNLConversations"]) > 0) { ?>
|
||||
<li><a href="#">Conversations</a>
|
||||
<ul>
|
||||
<?php foreach ($_["PNLConversations"] as $number) { ?>
|
||||
<li><?php p($number); ?></li>
|
||||
<?php } ?>
|
||||
</ul></li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (count($_["PNLDrafts"]) > 0) { ?>
|
||||
<li><a href="#">Drafts</a>
|
||||
<ul>
|
||||
<?php foreach ($_["PNLDrafts"] as $number) { ?>
|
||||
<li><?php p($number); ?></li>
|
||||
<?php } ?>
|
||||
</ul></li>
|
||||
<?php } ?>
|
||||
<?php foreach ($_['mailboxes'] as $mboxName => $mailbox) { ?>
|
||||
<?php if (count($mailbox['phoneNumbers']) > 0) { ?>
|
||||
<li><a href="<?php p($mailbox['url']); ?>"><?php p($mailbox['label']); ?></a>
|
||||
<ul>
|
||||
<?php foreach ($mailbox['phoneNumbers'] as $number) { ?>
|
||||
<li><?php p($number); ?></li>
|
||||
<?php } ?>
|
||||
</ul></li>
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user