export txt, ics
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
{#if info}<div class="alert alert-primary" role="alert">{info}</div>{/if}
|
||||
{#insert contents}No contents!{/}
|
||||
</div>
|
||||
<script src="/webjars/popper.js/2.9.2/umd/popper.min.js"></script>
|
||||
<script src="/webjars/bootstrap/5.0.0/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
19
src/main/resources/templates/export/icsExport.ics
Normal file
19
src/main/resources/templates/export/icsExport.ics
Normal file
@@ -0,0 +1,19 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
METHOD:PUBLISH
|
||||
PRODID:-//kalender.bremer.rocks//iCal Generator//DE
|
||||
{#for event in events}
|
||||
BEGIN:VEVENT
|
||||
CREATED:{event.created}
|
||||
LAST-MODIFIED:{event.lastModified}
|
||||
DTSTAMP:{event.dtStamp}
|
||||
SUMMARY:VIT
|
||||
DTSTART;VALUE=DATE:{event.dtStart}
|
||||
DTEND;VALUE=DATE:{event.dtEnd}
|
||||
URL:https://kalender.bremer.rocks
|
||||
DESCRIPTION:Arbeit im VIT-Buero
|
||||
TRANSP:TRANSPARENT
|
||||
UID:{event.uid}
|
||||
END:VEVENT
|
||||
{/for}
|
||||
END:VCALENDAR
|
||||
3
src/main/resources/templates/export/textExport.txt
Normal file
3
src/main/resources/templates/export/textExport.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
{#for day in week}
|
||||
{day.day.formatCommon.rightPad(30)} {#if day.inOffice}{day.inOffice.username}{/if}
|
||||
{/for}
|
||||
@@ -6,17 +6,17 @@
|
||||
Heute ist {today.formatCommon}
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<div class="mt-3">
|
||||
<nav aria-label="Page navigation example">
|
||||
<ul class="pagination">
|
||||
<li class="page-item"><a class="page-link" href="/kalender">aktuelle Woche</a></li>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="/kalender/offset/{offset.minus(1)}" aria-label="Previous">
|
||||
<a class="page-link" href="/kalender?offset={offset.minus(1)}" aria-label="Previous">
|
||||
<span aria-hidden="true">«</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="/kalender/offset/{offset.plus(1)}" aria-label="Next">
|
||||
<a class="page-link" href="/kalender?offset={offset.plus(1)}" aria-label="Next">
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -24,7 +24,7 @@
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<div>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -57,5 +57,17 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Export
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="/kalender/export/txt?offset={offset}" target="_blank">txt für alle</a></li>
|
||||
<li><a class="dropdown-item" href="/kalender/export/ics?offset={offset}">ics für mich</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/contents}
|
||||
{/include}
|
||||
Reference in New Issue
Block a user