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

Better display of failed calendar

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-27 14:29:34 +02:00
parent 5cba99107e
commit c3c6666fcf
No known key found for this signature in database
GPG key ID: FB5ACEED51955BF8

View file

@ -24,20 +24,23 @@
?>
<span class="calendarCheckbox app-navigation-entry-bullet"
ng-click="triggerEnable(item)"
ng-show="item.displayColorIndicator()"
ng-style="{ background : item.calendar.enabled == true ? item.calendar.color : 'transparent' }">
ng-if="item.displayColorIndicator() && !item.calendar.hasWarnings()"
ng-style="{ 'background-color' : item.calendar.enabled == true ? item.calendar.color : 'transparent' }">
</span>
<a class="action permanent"
ng-class="{'calendar-list-cut-name': item.calendar.isShared() || item.calendar.isPublished() }"
ng-class="{
'calendar-list-cut-name': item.calendar.isShared() || item.calendar.isPublished(),
'icon-error': item.calendar.hasWarnings()
}"
href="#"
ng-click="triggerEnable(item)"
title="{{ item.calendar.displayname }}">
<span class="icon icon-error"
ng-if="item.calendar.hasWarnings()"
title="<?php p($l->t('Some events in this calendar are broken. Please check the JS console for more info.')); ?>">
&nbsp;&nbsp;&nbsp;&nbsp;
</span>
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
}}">
{{ item.calendar.displayname }}
</span>
</a>
<div class="app-navigation-entry-utils"
ng-show="item.displayActions()">