changeset 87:3ee775795cd0

app: simple page so show a link to heavy web application (i.e. pyjamas version)
author Goffi <goffi@goffi.org>
date Fri, 05 Jan 2018 14:35:36 +0100
parents 92ca411ee635
children 3724228e60be
files default/app/app.html default/components/common.html default/static/app.css
diffstat 3 files changed, 45 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/app/app.html	Fri Jan 05 14:35:36 2018 +0100
@@ -0,0 +1,23 @@
+{% extends 'base/base.html' %}
+{% block body %}
+<article id="web_app_box" class="box">
+    <p>
+        {% trans app_name=C.APP_NAME %}
+            The following link allows you to access {{app_name}} web application, which is a more feature full way to use this software (but it is also a bit more heavy and complex to use).
+        {% endtrans %}
+    </p>
+    <p class="warning_text">
+        {% trans %}
+            Please note that current version of web application use legacy technologies and will be rewritten for next version of Salut à Toi (0.8). It does contain some bugs and it is under minimal maintenance.
+        {% endtrans %}
+    </p>
+    <p id="link_section">
+        <a href="/libervia.html">{% trans %}Click here to access the web application{% endtrans %}</a>.
+    </p>
+    <p>
+        {% trans %}
+            Next time you can go directly to the above URL.
+        {% endtrans %}
+    </p>
+</article>
+{% endblock body %}
--- a/default/components/common.html	Fri Jan 05 13:14:22 2018 +0100
+++ b/default/components/common.html	Fri Jan 05 14:35:36 2018 +0100
@@ -7,6 +7,7 @@
     'tickets_list': _('Tickets'),
     'ticket_new': _('Create new ticket'),
     'chat': _('Chat'),
+    'app': _('Application'),
 } %}
 
 {% macro menu(menus, class='') %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/static/app.css	Fri Jan 05 14:35:36 2018 +0100
@@ -0,0 +1,21 @@
+#body {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+}
+
+#web_app_box {
+    width: 80%;
+    padding: 2em;
+    text-align: justify;
+}
+
+#link_section {
+    font-weight: bold;
+    text-align: center;
+    font-size: 1.5rem;
+}
+
+article p:last-child {
+    text-align: center;
+}