Skip to content

Commit 5dfbe56

Browse files
committed
Make icon set for CalDav event presentation, use in iMIP email.
iMIP e-mails were, as a hack, using filetypes icons for caldav elements (titles, locations). This commit creates a folder of caldav element icons. To start, they are used in iMIP emails, but eventually should be used by any app that wants to have icon labels for caldav elements. Signed-off-by: brad@wbr.tech
1 parent 3164818 commit 5dfbe56

File tree

8 files changed

+14
-7
lines changed

8 files changed

+14
-7
lines changed

apps/dav/lib/CalDAV/Schedule/IMipPlugin.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,23 +500,23 @@ private function addBulletList(IEMailTemplate $template, IL10N $l10n, $vevent) {
500500

501501
if ($vevent->SUMMARY) {
502502
$template->addBodyListItem($vevent->SUMMARY, $l10n->t('Title:'),
503-
$this->getAbsoluteImagePath('filetypes/text.svg'),'','',self::IMIP_INDENT);
503+
$this->getAbsoluteImagePath('caldav/title.svg'),'','',self::IMIP_INDENT);
504504
}
505505
$meetingWhen = $this->generateWhenString($l10n, $vevent);
506506
if ($meetingWhen) {
507507
$template->addBodyListItem($meetingWhen, $l10n->t('Time:'),
508-
$this->getAbsoluteImagePath('filetypes/text-calendar.svg'),'','',self::IMIP_INDENT);
508+
$this->getAbsoluteImagePath('caldav/time.svg'),'','',self::IMIP_INDENT);
509509
}
510510
if ($vevent->LOCATION) {
511511
$template->addBodyListItem($vevent->LOCATION, $l10n->t('Location:'),
512-
$this->getAbsoluteImagePath('filetypes/location.svg'),'','',self::IMIP_INDENT);
512+
$this->getAbsoluteImagePath('caldav/location.svg'),'','',self::IMIP_INDENT);
513513
}
514514
if ($vevent->URL) {
515515
$template->addBodyListItem(sprintf('<a href="%s">%s</a>',
516516
htmlspecialchars($vevent->URL),
517517
htmlspecialchars($vevent->URL)),
518518
$l10n->t('Link:'),
519-
$this->getAbsoluteImagePath('filetypes/link.svg'),
519+
$this->getAbsoluteImagePath('caldav/link.svg'),
520520
$vevent->URL,'',self::IMIP_INDENT);
521521
}
522522

@@ -525,7 +525,7 @@ private function addBulletList(IEMailTemplate $template, IL10N $l10n, $vevent) {
525525
/* Put description last, like an email body, since it can be arbitrarily long */
526526
if ($vevent->DESCRIPTION) {
527527
$template->addBodyListItem($vevent->DESCRIPTION, $l10n->t('Description:'),
528-
$this->getAbsoluteImagePath('filetypes/text.svg'),'','',self::IMIP_INDENT);
528+
$this->getAbsoluteImagePath('caldav/description.svg'),'','',self::IMIP_INDENT);
529529
}
530530
}
531531

@@ -566,7 +566,7 @@ private function addAttendees(IEMailTemplate $template, IL10N $l10n, VEvent $vev
566566
$organizerText .= ' ✔︎';
567567
}
568568
$template->addBodyListItem($organizerHTML, $l10n->t('Organizer:'),
569-
$this->getAbsoluteImagePath('filetypes/text-vcard.svg'),
569+
$this->getAbsoluteImagePath('caldav/organizer.svg'),
570570
$organizerText,'',self::IMIP_INDENT);
571571
}
572572

@@ -595,7 +595,7 @@ private function addAttendees(IEMailTemplate $template, IL10N $l10n, VEvent $vev
595595
}
596596

597597
$template->addBodyListItem(implode('<br/>',$attendeesHTML), $l10n->t('Attendees:'),
598-
$this->getAbsoluteImagePath('filetypes/text-vcard.svg'),
598+
$this->getAbsoluteImagePath('caldav/attendees.svg'),
599599
implode("\n",$attendeesText),'',self::IMIP_INDENT);
600600
}
601601

core/img/caldav/attendees.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/description.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/link.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/location.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/organizer.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/time.svg

Lines changed: 1 addition & 0 deletions
Loading

core/img/caldav/title.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)