mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
frontend: Update calendar,addressbook pages
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
{% if let Some(description) = addressbook.description %}<p>{{ description }}</p>{% endif%}
|
{% if let Some(description) = addressbook.description %}<p>{{ description }}</p>{% endif%}
|
||||||
|
|
||||||
<pre>{{ addressbook|json }}</pre>
|
<h2>Debug information</h2>
|
||||||
|
<pre>{{ addressbook|json(2) }}</pre>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -5,7 +5,15 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% let name = calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) %}
|
{% let name = calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) %}
|
||||||
<h1>{{ calendar.principal }}/{{ name }}</h1>
|
<h1>
|
||||||
|
{{ calendar.principal }}/{{ name }}
|
||||||
|
<div class="component-chips">
|
||||||
|
{% for comp in calendar.components %}
|
||||||
|
<span class="chip">{{ comp }}</span>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</h1>
|
||||||
{% if let Some(description) = calendar.meta.description %}<p>{{ description }}</p>{% endif%}
|
{% if let Some(description) = calendar.meta.description %}<p>{{ description }}</p>{% endif%}
|
||||||
|
|
||||||
{% if let Some(subscription_url) = calendar.subscription_url %}
|
{% if let Some(subscription_url) = calendar.subscription_url %}
|
||||||
@@ -13,19 +21,7 @@
|
|||||||
<a href="{{ subscription_url }}">{{ subscription_url }}</a>
|
<a href="{{ subscription_url }}">{{ subscription_url }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2>Components</h2>
|
<h2>Debug information</h2>
|
||||||
<ul>
|
<pre>{{ calendar|json(2) }}</pre>
|
||||||
{% for comp in calendar.components %}
|
|
||||||
<li>{{ comp.as_str() }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>Timezone</h2>
|
|
||||||
|
|
||||||
{% if let Some(timezone_id) = calendar.timezone_id %}
|
|
||||||
<p>{{ timezone_id }}</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<pre>{{ calendar|json }}</pre>
|
|
||||||
|
|
||||||
{%endblock %}
|
{%endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user