Divent/divent/templates/subscribe.html.j2

52 lines
2.0 KiB
Plaintext
Raw Normal View History

2022-05-08 14:02:19 +00:00
{% extends "base.html.j2" %}
{% block content %}
<div id="box">
<div id="avatars">
<img src="{{ client.user.display_avatar }}"
2023-11-07 00:26:12 +00:00
alt="{{ _("Bot Logo") }}"
2022-05-08 14:02:19 +00:00
width="80"
2023-11-07 00:26:12 +00:00
height="80" />
2022-05-08 14:02:19 +00:00
<span id="dots">…</span>
2023-11-07 00:33:43 +00:00
<img src="{{ avatar.url }}" alt="{{ _("Avatar") }}" width="80" height="80" />
2022-05-08 14:02:19 +00:00
</div>
2022-09-09 09:22:12 +00:00
<h1>
<a href="{{ url_for(".index") }}">{{ client.user.display_name }}</a>
</h1>
2023-11-07 00:26:12 +00:00
<h2>{{ _("The discord scheduled event calendar generator") }}</h2>
2022-05-08 14:02:19 +00:00
<hr />
<ul id="providers">
<li>
<a class="button"
target="_blank"
2023-11-07 00:26:12 +00:00
href="https://calendar.google.com/calendar/u/0/r?cid=webcal://{{ request.host }}/{{ entity_id }}.ics">
2022-05-08 14:02:19 +00:00
<i class="fa fa-google"></i>
{{ _("Subscribe to") }} Google
</a>
</li>
<li>
<a class="button"
target="_blank"
2023-11-07 00:26:12 +00:00
href="https://outlook.live.com/owa?path=/calendar/action/compose&rru=addsubscription&url=webcal://{{ request.host }}/{{ entity_id }}.ics">
2022-05-08 14:02:19 +00:00
<i class="fa fa-windows"></i>
{{ _("Subscribe to") }} Outlook
</a>
</li>
<li>
2022-09-08 15:34:45 +00:00
{# djlint:off #}
2023-11-07 00:26:12 +00:00
<a class="button" target="_blank" href="webcal://{{ request.host }}/{{ entity_id }}.ics">
2022-05-08 14:02:19 +00:00
<i class="fa fa-apple"></i>
{{ _("Subscribe to") }} Apple
</a>
2022-09-08 15:34:45 +00:00
{# djlint:on #}
2022-05-08 14:02:19 +00:00
</li>
</ul>
<div class="hr-sect">{{ _("OR") }}</div>
<div>
<h3>{{ _("Use the direct link:") }}</h3>
2022-09-08 15:34:45 +00:00
{# djlint:off #}
2023-11-07 00:26:12 +00:00
<input type="text" readonly class="black_input" value="webcal://{{ request.host }}/{{ entity_id }}.ics"/>
2022-09-08 15:34:45 +00:00
{# djlint:on #}
2022-05-08 14:02:19 +00:00
</div>
</div>
{% endblock content %}