Skip to content

Commit

Permalink
[jan] Add entries for Tasks and Agenda to top menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 10, 2014
1 parent ca3413d commit 2075547
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions kronolith/docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v4.3.0-git
----------

[jan] Add entries for Tasks and Agenda to top menu.
[mjr] Add Kronolith_Api::move().
[jan] Return ETags with browse() API method.
[jan] Add importing of calendar data from a URL.
Expand Down
6 changes: 6 additions & 0 deletions kronolith/lib/Application.php
Expand Up @@ -450,6 +450,12 @@ public function topbarCreate(Horde_Tree_Renderer_Base $tree, $parent = null,
array('month', _("Month"), 'monthview.png', Horde::url('month.php')),
array('year', _("Year"), 'yearview.png', Horde::url('year.php'))
);
if (Kronolith::showAjaxView()) {
if (Kronolith::hasApiPermission('tasks')) {
$menus[] = array('tasks', _("Tasks"), 'tasks.png', $GLOBALS['registry']->get('webroot') . '#tasks');
}
$menus[] = array('agenda', _("Agenda"), 'agenda.png', $GLOBALS['registry']->get('webroot') . '#agenda');
}
// Dynamic view has no dedicated search page.
if (!Kronolith::showAjaxView()) {
$menus[] = array('search', _("Search"), 'search.png', Horde::url('search.php'));
Expand Down
2 changes: 2 additions & 0 deletions kronolith/package.xml
Expand Up @@ -33,6 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Add entries for Tasks and Agenda to top menu.
* [mjr] Add Kronolith_Api::move().
* [jan] Return ETags with browse() API method.
* [jan] Add importing of calendar data from a URL.
Expand Down Expand Up @@ -2477,6 +2478,7 @@
<date>2014-06-04</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Add entries for Tasks and Agenda to top menu.
* [mjr] Add Kronolith_Api::move().
* [jan] Return ETags with browse() API method.
* [jan] Add importing of calendar data from a URL.
Expand Down

0 comments on commit 2075547

Please sign in to comment.