1
0
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:
Loïc Blot (@U-Exp)
2014-09-16 20:54:47 +02:00
parent d456178c18
commit 0a7e6f09f8
3 changed files with 27 additions and 19 deletions
+13 -1
View File
@@ -35,8 +35,20 @@ class SmsController extends Controller {
* @NoCSRFRequired
*/
public function index () {
$mboxes = array(
'PNLConversations' => array(
'label' => 'Conversations',
'phoneNumbers' => $this->smsMapper->getAllPeersPhoneNumbers($this->userId),
'url' => \OCP\Util::linkToAbsolute('ocsms', 'index.php', array('feed' => 'conversations'))
),
'PNLDrafts' => array(
'label' => 'Drafts',
'phoneNumbers' => array(),
'url' => \OCP\Util::linkToAbsolute('ocsms', 'index.php', array('feed' => 'drafts'))
)
)
$params = array('user' => $this->userId,
"PNLConversations" => $this->smsMapper->getAllPeersPhoneNumbers($this->userId)
'mailboxes' => $mboxes
);
return new TemplateResponse($this->appName, 'main', $params);
}