1
0
Fork 0
mirror of https://github.com/nextcloud/calendar.git synced 2024-10-07 16:40:09 +02:00

fix label issue for ng titles

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2018-01-10 20:07:08 +01:00
parent 38592ad928
commit 37069d1c4a
No known key found for this signature in database
GPG key ID: 9D98FD9380A1CB43
2 changed files with 5 additions and 6 deletions

View file

@ -44,6 +44,9 @@ app.controller('CalendarListController', ['$scope', '$rootScope', '$window', 'Ha
$scope.subscription.newSubscriptionLocked = false;
$scope.publicdav = 'CalDAV';
$scope.publicdavdesc = t('calendar', 'CalDAV address for clients');
$scope.warningLabel = t('calendar', 'Some events in this calendar are broken. Please check the JS console for more info.');
$scope.shareLabel = t('calendar', 'Share Calendar');
$scope.sharedLabel = t('calendar', 'Shared');
$scope.isSharingAPI = isSharingAPI;
$scope.canSharePublicLink = constants.canSharePublicLink;

View file

@ -31,11 +31,7 @@
ng-class="{'icon-error': item.calendar.hasWarnings()}"
href="#"
ng-click="triggerEnable(item)"
title="{{
item.calendar.hasWarnings()
? '<?php p($l->t('Some events in this calendar are broken. Please check the JS console for more info.')); ?>'
:item.calendar.displayname
}}">
title="{{ item.calendar.hasWarnings() ? warningLabel : item.calendar.displayname }}">
{{ item.calendar.displayname }}
</span>
</a>
@ -50,7 +46,7 @@
'icon-shared shared-style': item.calendar.isShared() && !item.calendar.isPublished(),
'icon-public': item.calendar.isPublished(),
'icon-shared': !item.calendar.isShared() && !item.calendar.isPublished()}"
title="{{item.calendar.isShared() && item.calendar.isShareable() || item.calendar.isPublished() ? '<?php p($l->t('Shared'))?>' : '<?php p($l->t('Share Calendar')) ?>'}}">
title="{{item.calendar.isShared() && item.calendar.isShareable() || item.calendar.isPublished() ? sharedLabel : shareLabel}}">
</button>
</li>
<li class="app-navigation-entry-utils-menu-button"