mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
provide a .ics download link in collection view and document $c->get_includes_subcollections
This commit is contained in:
parent
10ed3ffc84
commit
adce3f48a9
@ -29,6 +29,14 @@ $c->pg_connect[] = "dbname=davical user=davical_app";
|
||||
*/
|
||||
// $c->system_name = "DAViCal CalDAV Server";
|
||||
|
||||
/**
|
||||
* The CalDAV specification does not define GET on a collection, but typically this is
|
||||
* used as a .ics download for the whole collection. This will also enable a download
|
||||
* link in the web interface for calendars with entries.
|
||||
* Default: false
|
||||
*/
|
||||
// $c->get_includes_subcollections = true;
|
||||
|
||||
/**
|
||||
* If "hide_TODO" is true, then VTODO requested from someone other than the
|
||||
* admin or owner of a calendar will not get an answer. Often these todo are
|
||||
|
||||
@ -217,6 +217,11 @@ $value_dav_name = $c->base_url.'/caldav.php'. ( $editor->Available() ? '##dav_na
|
||||
$prompt_load_file = translate('Load From File');
|
||||
$prompt_displayname = translate('Displayname');
|
||||
$prompt_entries = translate('Items in Collection');
|
||||
if ( $entries > 0 && $editor->Value('is_calendar') && isset($c->get_includes_subcollections) && $c->get_includes_subcollections
|
||||
&& ( bindec($permissions->priv) & privilege_to_bits( array('urn:ietf:params:xml:ns:caldav:read-free-busy','DAV::read')))) {
|
||||
$entries = '<a href="' . $c->base_url . '/caldav.php' . substr($editor->Value('dav_name'), 0, -1) . '.ics" title="'
|
||||
. translate('Download entire collection as .ics file') . '">' . $entries . '</a>';
|
||||
}
|
||||
$prompt_public = translate('Publicly Readable');
|
||||
$prompt_calendar = translate('Is a Calendar');
|
||||
$prompt_addressbook = translate('Is an Addressbook');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user