xsl/gemini.xsl: implement calendar.gmi
This commit is contained in:
parent
a99b6a27ca
commit
68089a3fde
|
@ -169,18 +169,25 @@
|
||||||
|
|
||||||
<template match="/page/portal">
|
<template match="/page/portal">
|
||||||
<text> ## Kalender </text>
|
<text> ## Kalender </text>
|
||||||
<call-template name="calendar-events">
|
<call-template name="calendar-events"/>
|
||||||
<with-param name="limit" select="10"/>
|
|
||||||
</call-template>
|
|
||||||
|
|
||||||
<text> ## Changelog </text>
|
<text> ## Changelog </text>
|
||||||
<apply-templates/>
|
<apply-templates/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="calendar-events">
|
<template match="calendar">
|
||||||
<param name="limit" select="5"/>
|
<text> ## Kalender </text>
|
||||||
|
<call-template name="calendar-events">
|
||||||
|
<with-param name="limit" select="23"/>
|
||||||
|
<with-param name="src" select="@src"/>
|
||||||
|
</call-template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<for-each select="document('../calendar-summary.xml')/page/calendar-summary/event[date:seconds(end) >= date:seconds(date:date())]">
|
<template name="calendar-events">
|
||||||
|
<param name="limit" select="8"/>
|
||||||
|
<param name="src" select="'../calendar-summary.xml'"/>
|
||||||
|
|
||||||
|
<for-each select="document($src)/page/calendar-summary/event[date:seconds(end) >= date:seconds(date:date())]">
|
||||||
<sort select="date:seconds(start)" data-type="number" order="ascending" />
|
<sort select="date:seconds(start)" data-type="number" order="ascending" />
|
||||||
|
|
||||||
<if test="position() <= $limit">
|
<if test="position() <= $limit">
|
||||||
|
|
Loading…
Reference in New Issue