Added possibility to export the calendar in iCal format (closes #141)

This commit is contained in:
Bernd Bestel
2019-03-04 17:44:48 +01:00
parent 77b0bc675c
commit 90291fdbca
14 changed files with 336 additions and 71 deletions

View File

@@ -16,12 +16,17 @@
@section('content')
<div class="row">
<div class="col">
<h1>@yield('title')</h1>
<h1>
@yield('title')
<a id="ical-button" class="btn btn-outline-dark" href="#">
<i class="fas fa-calendar-plus"></i>&nbsp;{{ $L('Export as iCal') }}
</a>
</h1>
</div>
</div>
<script>
var fullcalendarEventSources = {!! json_encode($fullcalendarEventSources) !!}
var fullcalendarEventSources = {!! json_encode(array($fullcalendarEventSources)) !!}
</script>
<div class="row">

View File

@@ -38,6 +38,7 @@
<th>{{ $L('Expires') }}</th>
<th>{{ $L('Last used') }}</th>
<th>{{ $L('Created') }}</th>
<th>{{ $L('Key type') }}</th>
</tr>
</thead>
<tbody class="d-none">
@@ -66,6 +67,9 @@
{{ $apiKey->row_created_timestamp }}
<time class="timeago timeago-contextual" datetime="{{ $apiKey->row_created_timestamp }}"></time>
</td>
<td>
{{ $apiKey->key_type }}
</td>
</tr>
@endforeach
</tbody>