summaryrefslogtreecommitdiffstats
path: root/apps/calendar
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-26 16:01:55 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-26 16:01:55 +0200
commitf479105f5e50ba915b9dbed3dd049f08e35fa591 (patch)
tree0e5e23fe69ee49006d3bce9f727a6783e5bad0c3 /apps/calendar
parent10ef01b04be2bb6dd15303c9d641647d515e5556 (diff)
downloadnextcloud-server-f479105f5e50ba915b9dbed3dd049f08e35fa591.tar.gz
nextcloud-server-f479105f5e50ba915b9dbed3dd049f08e35fa591.zip
optimize choosecalendar dialog for shared calendars
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/templates/part.choosecalendar.php1
-rw-r--r--apps/calendar/templates/part.choosecalendar.rowfields.shared.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/calendar/templates/part.choosecalendar.php b/apps/calendar/templates/part.choosecalendar.php
index 21da5dd7cd9..3c6799d892e 100644
--- a/apps/calendar/templates/part.choosecalendar.php
+++ b/apps/calendar/templates/part.choosecalendar.php
@@ -28,6 +28,7 @@ for($i = 0; $i < count($option_calendars); $i++){
$share = OC_Calendar_Share::allSharedwithuser(OC_User::getUser(), OC_Calendar_Share::CALENDAR);
$count = count($share);
for($i = 0; $i < $count; $i++){
+ $share[$i]['calendar'] = OC_Calendar_App::getCalendar($share[$i]['calendarid']);
echo '<tr>';
$tmpl = new OC_Template('calendar', 'part.choosecalendar.rowfields.shared');
$tmpl->assign('share', $share[$i]);
diff --git a/apps/calendar/templates/part.choosecalendar.rowfields.shared.php b/apps/calendar/templates/part.choosecalendar.rowfields.shared.php
index 2e1210415bf..a23266da0c3 100644
--- a/apps/calendar/templates/part.choosecalendar.rowfields.shared.php
+++ b/apps/calendar/templates/part.choosecalendar.rowfields.shared.php
@@ -1,4 +1,4 @@
<?php
echo '<td width="20px"><input id="active_' . $_['share']['owner'] . '_' . $_['share']['calendar']['id'] . '" type="checkbox" onClick="Calendar.UI.Share.activation(this,\'' . $_['share']['owner'] . '\',' . $_['share']['calendar']['id'] . ')"' . ($_['share']['active'] ? ' checked="checked"' : '') . '></td>';
echo '<td><label for="active_' . $_['share']['owner'] . '_' . $_['share']['calendar']['id'] . '">' . $_['share']['calendar']['displayname'] . '</label></td>';
-echo '<td>' . $l->t('shared with you by') . ' ' . $_['share']['owner'] . '</td>'; \ No newline at end of file
+echo '<td style="font-style: italic;">' . $l->t('shared with you by') . ' ' . $_['share']['owner'] . '</td>'; \ No newline at end of file