diff templates/default/presentation/presentation.html @ 3:b7e8db97b3b0

presentation: added installation section, with links to Flatpak and Android packages
author Goffi <goffi@goffi.org>
date Fri, 28 Jun 2019 17:12:40 +0200
parents b7045cd85da9
children dc880664a8ec
line wrap: on
line diff
--- a/templates/default/presentation/presentation.html	Tue May 28 09:24:40 2019 +0200
+++ b/templates/default/presentation/presentation.html	Fri Jun 28 17:12:40 2019 +0200
@@ -1,7 +1,7 @@
 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
 
 {% block body %}
-{{ icon_defs('chat', 'lock-filled', 'blog', 'exchange', 'picture', 'calendar', 'clipboard', 'desktop', 'mobile', 'globe', 'terminal', 'shield', 'ok', 'brush', 'unlink', 'heart-filled', 'group') }}
+{{ icon_defs('chat', 'lock-filled', 'blog', 'exchange', 'picture', 'calendar', 'clipboard', 'desktop', 'mobile', 'globe', 'terminal', 'shield', 'ok', 'brush', 'unlink', 'heart-filled', 'group', 'box') }}
 <div class="box box--zero box--center">
     <h1>
         <img class="img--inline-bottom img--very-small" src="{{media_path}}icons_svg/sat.svg">
@@ -116,4 +116,85 @@
     </ul>
 </div>
 
+
+<div class="box box--zero box--large box--center">
+    <h2 class="heading__subtitle heading--paper">
+        {% trans %}installation{% endtrans %}
+    </h2>
+    <h3 class="heading--paper">GNU/Linux</h3>
+    <p>{% trans %}If you are on GNU/Linux the recommended way to install SàT is to use your distribution official packages. Please check your distribution to see if Salut à Toi is available (and request it if it's not). SàT is available at least on Arch Linux and Debian and its derivated.{% endtrans %}</p>
+    <p>{% trans flatpak='<a href="https://flatpak.org/" target="_blank" rel="noreferrer noopener">Flatpak</a>'|safe %}If SàT is not available or the version is too old, you can use {{flatpak}} (which may be installed by default on some recent distributions) to install it, see below.{% endtrans %}</p>
+    <h3 class="heading--paper">Flatpak</h3>
+    <p class="text--warning">
+        {% trans %}
+            Those packages are development preview, they are not stable and bugs and crashes may happen
+        {% endtrans %}
+    </p>
+    <ul class="grid">
+        {% for url, name, description in (
+            ("https://salut-a-toi.org/flatpak/org.salutatoi.Cagou_dev.flatpakref",
+             "Cagou", _("Desktop")),
+
+            ("https://salut-a-toi.org/flatpak/org.salutatoi.Primitivus_dev.flatpakref",
+             "Primitivus", _("Text User Interface")),
+
+            ("https://salut-a-toi.org/flatpak/org.salutatoi.Jp_dev.flatpakref",
+             "jp", _("Command Line Interface")),
+             ) %}
+            <li class='grid__item grid__item--medium grid__item--selectable'>
+                <a href="{{url}}" target="_blank">
+                    {{ icon('box', cls='icon--block icon--medium') }}
+                    <span>
+                        {% trans %}Click here to install {% endtrans %}
+                        <span class="text--emphasis">{{name}}</span> ({{description}})
+                    </span>
+                </a>
+            </li>
+        {% endfor %}
+    </ul>
+    <div class="box">
+        <p>{% trans %}If the links above are not working, you can use the following commands (supposing that Flatpak is already installed):{% endtrans %}</p>
+        <pre>flatpak install --user https://salut-a-toi.org/flatpak/org.salutatoi.Cagou_dev.flatpakref</pre>
+        <pre>flatpak install --user https://salut-a-toi.org/flatpak/org.salutatoi.Primitivus_dev.flatpakref</pre>
+        <pre>flatpak install --user https://salut-a-toi.org/flatpak/org.salutatoi.Jp_dev.flatpakref</pre>
+    </div>
+    <h3 class="heading--paper">Android</h3>
+    <p class="text--warning">
+        {% trans %}
+            This package is a development preview, it is not stable and bugs and crashes may happen
+        {% endtrans %}
+    </p>
+    <ul class="grid">
+        <li class='grid__item grid__item--medium grid__item--selectable'>
+            <a href="https://ftp.goffi.org/cagou/cagou.apk" target="_blank">
+                {{ icon('box', cls='icon--block icon--medium') }}
+                <span>
+                    {% trans %}Click here to install {% endtrans %}
+                    <span class="text--emphasis">
+                        {% trans %}Cagou for Android{% endtrans%}</span>
+                    </span>
+                </span>
+            </a>
+        </li>
+    </ul>
+    <h3 class="heading--paper">
+        {% trans %}
+            Source Code
+        {% endtrans %}
+    </h3>
+    <p>{% trans doc_url_open='<a href="/documentation">'|safe,
+                doc_url_close='</a>'|safe %}If you have some technical ability, you can also install directly from source code, please check {{doc_url_open}}documentation{{doc_url_close}} for details {% endtrans %}</p>
+    <h3 class="heading--paper">
+        {% trans %}
+            Other
+        {% endtrans %}
+    </h3>
+    <p>{% trans %}Please note that:{% endtrans %}</p>
+    <ul>
+        <li>{% trans %}Libervia, the web frontend, must be installed from source code, please check documentation for more details{% endtrans %}</li>
+        <li>{% trans %}There are Docker images, but outdated, so we don't list them here. We'll update them as soon as possible.{% endtrans %}</li>
+        <li>{% trans %}Salut à Toi may be installable on many platforms, contact us if you want to see it on a specific one{% endtrans %}</li>
+    </ul>
+</div>
+
 {% endblock body %}