chane url to |asseturl and some ics testings

This commit is contained in:
L3D 2019-02-14 14:17:09 +01:00
parent ffabdd1a19
commit fc4471717b
6 changed files with 69 additions and 19 deletions

View file

@ -3,3 +3,26 @@ _template: waffeln.ics
_model: waffeln _model: waffeln
--- ---
title: C3WOC Tourdaten title: C3WOC Tourdaten
---
termine:
#### termine ####
start: 1970-01-23 13:37:23 Europe/Berlin
----
ende: 1970-05-23 13:37:23 Europe/Berlin
----
event: Chaos Creation Code
----
ort: Example
----
url: https://example.com
#### termine ####
start: 1970-01-23 13:37:23 Europe/Berlin
----
ende: 1970-02-23 13:37:23 Europe/Berlin
----
event: Foo
----
ort: bar
----
url: baz

View file

@ -6,7 +6,7 @@ button_label = Termin
label = Start des Events [1970-01-23 13:37:23 Europe/Berlin] label = Start des Events [1970-01-23 13:37:23 Europe/Berlin]
type = datetime type = datetime
[fields.start] [fields.ende]
label = Ende des Events [1970-01-23 13:37:23 Europe/Berlin] label = Ende des Events [1970-01-23 13:37:23 Europe/Berlin]
type = datetime type = datetime

View file

@ -13,5 +13,8 @@ size = large
type = string type = string
[fields.termine]
label = Termine
type = flow
flow_blocks = termine

View file

@ -0,0 +1 @@
23

View file

@ -1,27 +1,27 @@
<!DOCTYPE html> <!DOCTYPE html>
<html{% if alt %} lang="{{ alt }}"{% endif %}> <html{% if this.alt %} lang="{{ this.alt }}"{% endif %}>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% block title %}Startseite{% endblock %}</title> <title>{% block title %}Startseite{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{ '/css/main.css'|url }}" /> <link rel="stylesheet" href="{{ '/css/main.min.css'|asseturl }}" />
<!--[if lte IE 9]><link rel="stylesheet" href="{{ 'assets/css/ie9.css'|url }}" /><![endif]--> <!--[if lte IE 9]><link rel="stylesheet" href="{{ 'assets/css/ie9.min.css'|asseturl }}" /><![endif]-->
{% block expand_description {% block expand_description
%}<meta name="description" content="{% %}<meta name="description" content="{%
if bag('translate', this.alt, 'description') %}{{ bag('translate', this.alt, 'description') }}{% if bag('translate', this.alt, 'description') %}{{ bag('translate', this.alt, 'description') }}{%
else %}{{ bag('translate', 'de', 'description') }}{% endif %}" />{% else %}{{ bag('translate', 'de', 'description') }}{% endif %}" />{%
endblock %} endblock %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/images/icons/apple-touch-icon.png'|url }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ '/images/icons/apple-touch-icon.png'|asseturl }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/images/icons/favicon-32x32.png'|url }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ '/images/icons/favicon-32x32.png'|asseturl }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ '/images/icons/favicon-16x16.png'|url }}"> <link rel="icon" type="image/png" sizes="16x16" href="{{ '/images/icons/favicon-16x16.png'|asseturl }}">
<link rel="manifest" href="{{ '/images/icons/site.webmanifest'|url }}"> <link rel="manifest" href="{{ '/images/icons/site.webmanifest'|asseturl }}">
<link rel="mask-icon" href="{{ '/images/icons/safari-pinned-tab.svg'|url }}" color="#e64f2d"> <link rel="mask-icon" href="{{ '/images/icons/safari-pinned-tab.svg'|asseturl }}" color="#e64f2d">
<link rel="shortcut icon" href="{{ '/images/icons/favicon.ico'|url }}"> <link rel="shortcut icon" href="{{ '/images/icons/favicon.ico'|asseturl }}">
<meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{{ '/images/icons/browserconfig.xml'|url }}"> <meta name="msapplication-config" content="{{ '/images/icons/browserconfig.xml'|asseturl }}">
<meta name="theme-color" content="#e64f2d">{% <meta name="theme-color" content="#e64f2d">{%
block expand_header %}{% endblock %} block expand_header %}{% endblock %}
<script src="{{ '/js/jquery.min.js'|url }}"></script> <script src="{{ '/js/jquery.min.js'|asseturl }}"></script>
</head> </head>
<body class="{% if this._path == '/' %}landing {% endif %} is-preload"> <body class="{% if this._path == '/' %}landing {% endif %} is-preload">
<div id="page-wrapper"> <div id="page-wrapper">
@ -140,7 +140,7 @@
endfor %} endfor %}
<li class="last"><a href="/{% if bag('navigation', this.alt, 'default_path') %}{{ bag('navigation', this.alt, 'default_path') }}{% else %}..{% endif %}{{ this._path }}">{% if bag('navigation', this.alt, 'sprache') %}{{ bag('navigation', this.alt, 'sprache') }}{% else %}Sprache{% endif %}</a> <li class="last"><a href="/{% if bag('navigation', this.alt, 'default_path') %}{{ bag('navigation', this.alt, 'default_path') }}{% else %}..{% endif %}{{ this._path }}">{% if bag('navigation', this.alt, 'sprache') %}{{ bag('navigation', this.alt, 'sprache') }}{% else %}Sprache{% endif %}</a>
<ul class="last"> <ul class="last">
<li><a href="/..{{ this._path }}">{% <li><a href="{{ this._path }}">{%
if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{% if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{%
else %}{{ bag('navigation', 'de', 'German') }}{% endif %}</a></li> else %}{{ bag('navigation', 'de', 'German') }}{% endif %}</a></li>
<li><a href="/en{{ this._path }}">{% <li><a href="/en{{ this._path }}">{%
@ -190,10 +190,10 @@
</div> </div>
<!-- Scripts --> <!-- Scripts -->
<script src="{{ '/js/jquery.scrolly.min.js'|url }}"></script> <script src="{{ '/js/jquery.scrolly.min.js'|asseturl }}"></script>
<script src="{{ '/js/jquery.scrollex.min.js'|url }}"></script> <script src="{{ '/js/jquery.scrollex.min.js'|asseturl }}"></script>
<script src="{{ '/js/skel.min.js'|url }}"></script> <script src="{{ '/js/skel.min.js'|asseturl }}"></script>
<script src="{{ '/js/util.js'|url }}"></script> <script src="{{ '/js/util.js'|asseturl }}"></script>
<script src="{{ '/js/main.js'|url }}"></script> <script src="{{ '/js/main.js'|asseturl }}"></script>
</body> </body>
</html> </html>

View file

@ -1,2 +1,25 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:{{ this.url }}http://www.example.com/calendarapplication/
METHOD:PUBLISH
BEGIN:VEVENT
UID:461092315540@example.com
ORGANIZER;CN="Alice Balder, Example Inc.":MAILTO:alice@example.com
LOCATION:Irgendwo
GEO:48.85299;2.36885
SUMMARY:Eine Kurzinfo
DESCRIPTION:Beschreibung des Termines
CLASS:PUBLIC
DTSTART:20060910T220000Z
DTEND:20060919T215900Z
DTSTAMP:20060812T125900Z
END:VEVENT
END:VCALENDAR
{{ this._gid }}
{% for blk in this.termine.blocks %}
{{ blk }}
{{ blk.start }}
{% endfor %}
{{ this }}