Merge pull request #889 from r3r57/feature-events-count-column-in-calendar-overview
Add event count column in calendar overview
This commit is contained in:
commit
fe25cf088a
2 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ class Calendars extends \Flake\Core\Controller {
|
|||
"linkdelete" => $this->linkDelete($calendar),
|
||||
"icon" => $calendar->icon(),
|
||||
"label" => $calendar->label(),
|
||||
"events" => $calendar->getEventsBaseRequester()->count(),
|
||||
"description" => $calendar->get("description"),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>Display name</th>
|
||||
<th>Events</th>
|
||||
<th>Description</th>
|
||||
<th class="no-border-left"></th>
|
||||
</tr>
|
||||
|
@ -18,6 +19,7 @@
|
|||
{% for calendar in calendars %}
|
||||
<tr>
|
||||
<td class="col-displayname"><i class="{{ calendar.icon }}"></i>{{ calendar.label|escape }}</td>
|
||||
<td class="col-events">{{ calendar.events|escape }}</td>
|
||||
<td class="col-description">{{ calendar.description|escape }}</td>
|
||||
<td class="col-actions no-border-left">
|
||||
<p class="pull-right">
|
||||
|
|
Loading…
Reference in a new issue