Divent/divent/templates/subscribe.html.j2

55 lines
2.2 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 }}"
alt="{{ _('Bot Logo') }}"
width="80"
height="80"/>
<span id="dots">…</span>
<img src="{{ guild.icon.url }}"
alt="{{ _('Guild Logo') }}"
width="80"
height="80"/>
</div>
2022-09-09 09:22:12 +00:00
<h1>
<a href="{{ url_for(".index") }}">{{ client.user.display_name }}</a>
</h1>
2022-05-08 14:02:19 +00:00
<h2>{{ _('The discord scheduled event calendar generator') }}</h2>
<hr />
<ul id="providers">
<li>
<a class="button"
target="_blank"
2022-11-06 23:52:27 +00:00
href="https://calendar.google.com/calendar/u/0/r?cid=webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.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"
2022-11-06 23:52:27 +00:00
href="https://outlook.live.com/owa?path=/calendar/action/compose&rru=addsubscription&url=webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.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 #}
<a class="button" target="_blank" href="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.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 #}
<input type="text" readonly class="black_input" value="webcal://{{ request.host }}/{{ guild.vanity_url_code|default(guild.id, True) }}.ics"/>
{# djlint:on #}
2022-05-08 14:02:19 +00:00
</div>
</div>
{% endblock content %}