You've already forked snikket-web-portal
@@ -27,7 +27,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ play_store_url }}"><img alt='{% trans %}Get it on Google Play{% endtrans %}' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' class="play"/></a></li>
|
<li><a href="{{ play_store_url }}"><img alt='{% trans %}Get it on Google Play{% endtrans %}' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' class="play"/></a></li>
|
||||||
{%- if apple_store_url -%}
|
{%- if apple_store_url -%}
|
||||||
<li><a href="{{ apple_store_url }}"><img alt='{% trans %}Download on the App Store{% endtrans %}' src="{{ apple_store_badge() }}" class="apple"></a></li>
|
<li><a href="{{ apple_store_url }}" class="popover" data-popover-id="apple-popover"><img alt='{% trans %}Download on the App Store{% endtrans %}' src="{{ apple_store_badge() }}" class="apple"></a></li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</ul>
|
</ul>
|
||||||
{%- call standard_button("qrcode", "#qr-modal", class="primary", onclick="open_modal(this); return false;") -%}
|
{%- call standard_button("qrcode", "#qr-modal", class="primary", onclick="open_modal(this); return false;") -%}
|
||||||
@@ -84,10 +84,50 @@
|
|||||||
{%- endcall -%}
|
{%- endcall -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{%- if apple_store_url -%}
|
||||||
|
<div id="apple-popover" class="modal" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;" onclick="close_modal(this); return false;">
|
||||||
|
<div role="document" class="elevated box el-2" onclick="event.stopPropagation();">
|
||||||
|
<header class="modal-title">
|
||||||
|
{#- -#}
|
||||||
|
<span>{% trans %}Install on iOS{% endtrans %}</span>
|
||||||
|
{#- -#}
|
||||||
|
{%- call action_button("close", "#", onclick="close_modal(this.parentNode.parentNode.parentNode); return false;", class="tertiary") -%}
|
||||||
|
{% trans %}Close{% endtrans %}
|
||||||
|
{%- endcall -%}
|
||||||
|
</header>
|
||||||
|
<p>{% trans %}After downloading Snikket from the app store, you have to return to this invite link and tap on "Open the app" to proceed.{% endtrans %}</p>
|
||||||
|
<ol>
|
||||||
|
<li><p>{% trans %}First download Snikket from the app store using the button below:{% endtrans %}</p>
|
||||||
|
<p><a href="{{ apple_store_url }}"><img alt='{% trans %}Download on the App Store{% endtrans %}' src="{{ apple_store_badge() }}" class="apple"></a></p>
|
||||||
|
<li><p>{% trans %}After the installation is complete, you can return to this page and tap the "Open the app" button to continue with the setup:{% endtrans %}</p>
|
||||||
|
<p>
|
||||||
|
{%- call standard_button("exit_to_app", invite.xmpp_uri, class="primary") -%}
|
||||||
|
{% trans %}Open the app{% endtrans %}
|
||||||
|
{%- endcall -%}
|
||||||
|
</p></li>
|
||||||
|
</ol>
|
||||||
|
{#- -#}
|
||||||
|
{%- call standard_button("close", "#", onclick="close_modal(this.parentNode.parentNode); return false;", class="secondary") -%}
|
||||||
|
{% trans %}Close{% endtrans %}
|
||||||
|
{%- endcall -%}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{%- endif -%}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
var catch_popover = function() {
|
||||||
|
open_modal(this);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var onload = function() {
|
var onload = function() {
|
||||||
apply_qr_code(document.getElementById("qr-invite-page"));
|
apply_qr_code(document.getElementById("qr-invite-page"));
|
||||||
apply_qr_code(document.getElementById("qr-uri"));
|
apply_qr_code(document.getElementById("qr-uri"));
|
||||||
|
var popover_as = document.getElementsByClassName("popover");
|
||||||
|
for (var i = 0; i < popover_as.length; ++i) {
|
||||||
|
var a = popover_as[i];
|
||||||
|
a.onclick = catch_popover;
|
||||||
|
a.href = "#" + a.dataset.popoverId;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PROJECT VERSION\n"
|
"Project-Id-Version: PROJECT VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2021-03-20 12:56+0100\n"
|
"POT-Creation-Date: 2021-03-20 16:15+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -796,6 +796,7 @@ msgstr ""
|
|||||||
#: snikket_web/templates/invite_register.html:16
|
#: snikket_web/templates/invite_register.html:16
|
||||||
#: snikket_web/templates/invite_reset_view.html:21
|
#: snikket_web/templates/invite_reset_view.html:21
|
||||||
#: snikket_web/templates/invite_view.html:40
|
#: snikket_web/templates/invite_view.html:40
|
||||||
|
#: snikket_web/templates/invite_view.html:105
|
||||||
msgid "Open the app"
|
msgid "Open the app"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -974,6 +975,7 @@ msgid "Get it on Google Play"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: snikket_web/templates/invite_view.html:30
|
#: snikket_web/templates/invite_view.html:30
|
||||||
|
#: snikket_web/templates/invite_view.html:101
|
||||||
msgid "Download on the App Store"
|
msgid "Download on the App Store"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1001,6 +1003,8 @@ msgstr ""
|
|||||||
|
|
||||||
#: snikket_web/templates/invite_view.html:54
|
#: snikket_web/templates/invite_view.html:54
|
||||||
#: snikket_web/templates/invite_view.html:83
|
#: snikket_web/templates/invite_view.html:83
|
||||||
|
#: snikket_web/templates/invite_view.html:95
|
||||||
|
#: snikket_web/templates/invite_view.html:111
|
||||||
msgid "Close"
|
msgid "Close"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1031,6 +1035,26 @@ msgid ""
|
|||||||
"'Scan' button at the top."
|
"'Scan' button at the top."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: snikket_web/templates/invite_view.html:92
|
||||||
|
msgid "Install on iOS"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: snikket_web/templates/invite_view.html:98
|
||||||
|
msgid ""
|
||||||
|
"After downloading Snikket from the app store, you have to return to this "
|
||||||
|
"invite link and tap on \"Open the app\" to proceed."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: snikket_web/templates/invite_view.html:100
|
||||||
|
msgid "First download Snikket from the app store using the button below:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: snikket_web/templates/invite_view.html:102
|
||||||
|
msgid ""
|
||||||
|
"After the installation is complete, you can return to this page and tap "
|
||||||
|
"the \"Open the app\" button to continue with the setup:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: snikket_web/templates/library.j2:18
|
#: snikket_web/templates/library.j2:18
|
||||||
msgid "Copy link"
|
msgid "Copy link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user