diff options
author | friendica <info@friendica.com> | 2013-01-07 23:28:25 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-07 23:28:25 -0800 |
commit | 7f6e1144f659c94f19881899db0d4b891690b759 (patch) | |
tree | 7a614373ebba79878b8068ffda400dbe9ae84827 | |
parent | 5cfbb3f5e820d0b3ddf86b458e3feb177311382c (diff) | |
download | volse-hubzilla-7f6e1144f659c94f19881899db0d4b891690b759.tar.gz volse-hubzilla-7f6e1144f659c94f19881899db0d4b891690b759.tar.bz2 volse-hubzilla-7f6e1144f659c94f19881899db0d4b891690b759.zip |
The notification menu logic actually works. Yay. That means we've finally got an extensible notification system and can load arbitrary notifications of a given type into a popup (on demand), each with its own "view all" and "mark all seen". Now we just have to finish the json backends for the currently supported types and work them into the navbar. Might seem trivial or insignificant but this is a huge step forward. Online notifications are everything in an event driven world.
-rw-r--r-- | view/tpl/nav.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 57af0fa36..c952ca93c 100644 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -28,7 +28,12 @@ {{ if $nav.messages }} <li id="nav-mail-link" class="nav-menu $sel.messages"> <a class="$nav.messages.2" href="$nav.messages.0" title="$nav.messages.3" ><span class="icon mail">$nav.messages.1</span></a> - <span id="mail-update" class="nav-notify fakelink" onclick="notify_popup('mail'); return false;" ></span> + <span id="mail-update" class="nav-notify fakelink" rel="#nav-messages-menu"></span> + <ul id="nav-messages-menu" class="menu-popup" rel="messages"> + <li id="nav-messages-see-all"><a href="$nav.messages.all.0">$nav.messages.all.1</a></li> + <li id="nav-messages-mark-all"><a href="#">$nav.messages.mark.1</a></li> + <li class="empty">$emptynotifications</li> + </ul> </li> {{ endif }} |