|
40 | 40 | </div> |
41 | 41 | </div> |
42 | 42 | <p class="mb-1">{{ calendar.description }}</p> |
43 | | - {% if calendar.calendar.components|split(',')|length > 0 %} |
| 43 | + <small>{% if calendar.calendar.components|split(',')|length > 0 %} |
44 | 44 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_EVENTS') in calendar.calendar.components %}<span class="badge bg-primary">{{ "calendars.component.events"|trans }}</span>{% endif %} |
45 | 45 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_NOTES') in calendar.calendar.components %}<span class="badge bg-info">{{ "calendars.component.notes"|trans }}</span>{% endif %} |
46 | 46 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_TODOS') in calendar.calendar.components %}<span class="badge bg-primary-subtle">{{ "calendars.component.todos"|trans }}</span>{% endif %} |
|
98 | 98 | </div> |
99 | 99 | </div> |
100 | 100 | <p class="mb-1">{{ calendar.description }}</p> |
101 | | - {% if calendar.calendar.components|split(',')|length > 0 %} |
| 101 | + <small>{% if calendar.calendar.components|split(',')|length > 0 %} |
102 | 102 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_EVENTS') in calendar.calendar.components %}<span class="badge bg-primary">{{ "calendars.component.events"|trans }}</span>{% endif %} |
103 | 103 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_NOTES') in calendar.calendar.components %}<span class="badge bg-info">{{ "calendars.component.notes"|trans }}</span>{% endif %} |
104 | 104 | {% if constant('\\App\\Entity\\Calendar::COMPONENT_TODOS') in calendar.calendar.components %}<span class="badge bg-primary-subtle">{{ "calendars.component.todos"|trans }}</span>{% endif %} |
|
121 | 121 | {% include '_partials/delete_modal.html.twig' with {flavour: 'revoke'} %} |
122 | 122 | {% endif %} |
123 | 123 |
|
| 124 | + |
| 125 | +{% if subscriptions|length > 0 %} |
| 126 | + <h2 class="h4 mt-5 fw-lighter">{{ "calendars.subscriptions"|trans }}</h2> |
| 127 | + |
| 128 | + <div class="list-group mt-3"> |
| 129 | + {% for subscription in subscriptions %} |
| 130 | + <div class="list-group-item p-3"> |
| 131 | + <div class="d-flex w-100 justify-content-between"> |
| 132 | + <h5 class="mb-1 me-auto"> |
| 133 | + {{ subscription.displayName }} |
| 134 | + <span class="badge bg-info ms-1">{{ ('calendar.subscription')|trans }}</span> |
| 135 | + <a href="#" tabindex="0" class="badge badge-indicator ms-1" role="button" data-bs-toggle="popover" data-bs-title="{{ 'calendars.setup.title'|trans }}" data-bs-html='true' data-bs-content="URI: <code>{{ subscription.uri }}</code>">ⓘ</a> |
| 136 | + <span class="badge badge-indicator" style="background-color: {{ subscription.calendarColor }}"> </span> |
| 137 | + </h5> |
| 138 | + </div> |
| 139 | + <code class="mb-1">{{ subscription.source }}</code> |
| 140 | + |
| 141 | + </div> |
| 142 | + {% endfor %} |
| 143 | + </div> |
| 144 | + |
| 145 | + {% include '_partials/delete_modal.html.twig' with {flavour: 'revoke'} %} |
| 146 | +{% endif %} |
| 147 | + |
| 148 | + |
124 | 149 | {% include '_partials/share_modal.html.twig' with {principals: allPrincipals} %} |
125 | 150 | {% include '_partials/delete_modal.html.twig' with {flavour: 'calendars'} %} |
126 | 151 |
|
|
0 commit comments