]> source.dussan.org Git - nextcloud-server.git/commitdiff
optimize choosecalendar dialog for shared calendars
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 26 Mar 2012 14:01:55 +0000 (16:01 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 26 Mar 2012 14:01:55 +0000 (16:01 +0200)
apps/calendar/templates/part.choosecalendar.php
apps/calendar/templates/part.choosecalendar.rowfields.shared.php

index 21da5dd7cd9de80af59c0c2c436f1f4fb6a8a3f7..3c6799d892eda6ff0569fd976f05161474339e8c 100644 (file)
@@ -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]);
index 2e1210415bf76e7f77fadd14078ff2e7f8efc8c4..a23266da0c39a908d7c2e830b97d63111a36a161 100644 (file)
@@ -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