sat_templates-0.7D/0002755000175500017550000000000013244061252014064 5ustar debacledebaclesat_templates-0.7D/i18n/0002755000175500017550000000000013243753417014655 5ustar debacledebaclesat_templates-0.7D/i18n/sat.po0000644000175500017550000000547413243753417016014 0ustar debacledebacle# Translations template for sat. # Copyright (C) 2017 ORGANIZATION # This file is distributed under the same license as the sat project. # FIRST AUTHOR , 2017. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: sat VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2017-07-13 19:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.4.0\n" #: default/base/base.html:40 msgid "Your answer has been recorded correctly." msgstr "" #: default/base/base.html:47 #, python-format msgid "Powered by %(app_name)s" msgstr "" #: default/blog/articles.html:15 msgid "show comments" msgstr "" #: default/blog/articles.html:16 msgid "hide comments" msgstr "" #: default/blog/item.html:12 #, python-format msgid "This message is not in %(language)s, click to display anyway" msgstr "" #: default/blog/item.html:18 default/blog/item.html:45 msgid "Click to reduce…" msgstr "" #: default/blog/item.html:28 #, python-format msgid "%(days)s days ago" msgstr "" #: default/blog/item.html:44 msgid "Click to expand…" msgstr "" #: default/error/401.html:4 msgid "Unauthorized" msgstr "" #: default/error/401.html:5 msgid "Sorry, you are not allowed to access this page." msgstr "" #: default/error/404.html:4 msgid "Not Found" msgstr "" #: default/error/404.html:5 msgid "Sorry, we can't find the resource you are trying to access." msgstr "" #: default/error/base.html:3 #, python-format msgid "Error %(error_code)s" msgstr "" #: default/error/base.html:5 msgid "An error occured while trying to access the resource." msgstr "" #: default/event/attendance.html:5 msgid "Please indicate if you plan to attend the event:" msgstr "" #: default/event/attendance.html:11 msgid "yes" msgstr "" #: default/event/attendance.html:11 msgid "no" msgstr "" #: default/event/attendance.html:11 msgid "maybe" msgstr "" #: default/event/attendance.html:14 msgid "How many people will come (including you)?" msgstr "" #: default/event/invitation.html:5 default/invitation/welcome.html:5 #, python-format msgid "Welcome %(name)s" msgstr "" #: default/event/invitation.html:6 msgid "You have been invited to participate to an event" msgstr "" #: default/event/invitation.html:13 #, python-format msgid "%(days_left)s days left" msgstr "" #: default/input/comment.html:12 default/input/field.html:30 msgid "Send" msgstr "" #: default/input/comment.html:18 msgid "Your comment" msgstr "" #: default/invitation/welcome.html:6 msgid "" "You have been invited to participate with the community, please choose an" " action below" msgstr "" #: default/session/disconnect.html:4 msgid "You have been disconnected, have a nice day!" msgstr "" sat_templates-0.7D/i18n/sk.po0000644000175500017550000000572413243753417015640 0ustar debacledebacle# Translations template for sat. # Copyright (C) 2017 ORGANIZATION # This file is distributed under the same license as the sat project. # FIRST AUTHOR , 2017. # strriga , 2017. # msgid "" msgstr "" "Project-Id-Version: sat VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2017-05-20 19:37+0200\n" "PO-Revision-Date: 2017-05-20 21:41+0200\n" "Last-Translator: strriga \n" "Language-Team: Slovak <>\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.4.0\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;X-" "Generator: Gtranslator 2.91.7\n" "X-Generator: Gtranslator 2.91.7\n" #: default/base/base.html:32 #, python-format msgid "Powered by %(app_name)s" msgstr "Powered by %(app_name)s" #: default/blog/articles.html:14 msgid "show comments" msgstr "zobraziť komentáre" #: default/blog/item.html:24 msgid "Click to to expand…" msgstr "Rozbaliť…" #: default/error/401.html:4 msgid "Unauthorized" msgstr "Neautorizované" #: default/error/401.html:5 msgid "Sorry, you are not allowed to access this page." msgstr "Prepáčte, k tejto stránke nmáte prístup." #: default/error/404.html:4 msgid "Not Found" msgstr "Nenájdené" #: default/error/404.html:5 msgid "Sorry, we can't find the resource you are trying to access." msgstr "Prepáčte, nie je možné nájsť zdroj." #: default/error/base.html:3 #, python-format msgid "Error %(error_code)s" msgstr "Chyba %(error_code)s" #: default/error/base.html:5 msgid "An error occured while trying to access the resource." msgstr "Počas prístupu ku zdroju sa vyskytla chyba." #: default/event/attendance.html:5 msgid "Please indicate if you plan to attend the event:" msgstr "Prosím, dajte vedieť, či sa plánujete zúčastniť udalosti:" #: default/event/attendance.html:11 msgid "yes" msgstr "áno" #: default/event/attendance.html:11 msgid "no" msgstr "nie" #: default/event/attendance.html:11 msgid "maybe" msgstr "možno" #: default/event/attendance.html:14 msgid "How many people will come (including you)?" msgstr "Koľko ľudí vrátane Vás" #: default/event/invitation.html:5 default/invitation/welcome.html:5 #, python-format msgid "Welcome %(name)s" msgstr "Vitajte %(name)s" #: default/event/invitation.html:6 msgid "You have been invited to participate to an event" msgstr "Boli ste pozvaný k účasti na udalosti" #: default/input/comment.html:11 msgid "Your comment" msgstr "Váš komentár" #: default/input/comment.html:15 default/input/field.html:20 msgid "Send" msgstr "Odoslať" #: default/invitation/welcome.html:6 msgid "" "You have been invited to participate with the community, please choose an " "action below" msgstr "Bol ste pozvaný k účasti so spoločnostou, prosím vyberte si akciu dole" #: default/session/disconnect.html:4 msgid "You have been disconnected, have a nice day!" msgstr "Bol ste odhlásený, pekný deň!" sat_templates-0.7D/i18n/sk/0002755000175500017550000000000013243753417015272 5ustar debacledebaclesat_templates-0.7D/i18n/sk/LC_MESSAGES/0002755000175500017550000000000013243753417017057 5ustar debacledebaclesat_templates-0.7D/i18n/sk/LC_MESSAGES/sat.mo0000644000175500017550000000405513243753417020205 0ustar debacledebaclel5-*B m0w;/ 1>,O0|V  (,- <I^ z@)-@P!a(K(     An error occured while trying to access the resource.Click to to expand…Error %(error_code)sHow many people will come (including you)?Not FoundPlease indicate if you plan to attend the event:Powered by %(app_name)sSendSorry, we can't find the resource you are trying to access.Sorry, you are not allowed to access this page.UnauthorizedWelcome %(name)sYou have been disconnected, have a nice day!You have been invited to participate to an eventYou have been invited to participate with the community, please choose an action belowYour commentmaybenoshow commentsyesProject-Id-Version: sat VERSION Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2017-05-20 19:37+0200 PO-Revision-Date: 2017-05-20 21:41+0200 Last-Translator: strriga Language-Team: Slovak <> Language: sk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.4.0 Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;X-Generator: Gtranslator 2.91.7 X-Generator: Gtranslator 2.91.7 Počas prístupu ku zdroju sa vyskytla chyba.Rozbaliť…Chyba %(error_code)sKoľko ľudí vrátane VásNenájdenéProsím, dajte vedieť, či sa plánujete zúčastniť udalosti:Powered by %(app_name)sOdoslaťPrepáčte, nie je možné nájsť zdroj.Prepáčte, k tejto stránke nmáte prístup.NeautorizovanéVitajte %(name)sBol ste odhlásený, pekný deň!Boli ste pozvaný k účasti na udalostiBol ste pozvaný k účasti so spoločnostou, prosím vyberte si akciu doleVáš komentármožnoniezobraziť komentáreánosat_templates-0.7D/i18n/fr.po0000644000175500017550000000744313243753417015632 0ustar debacledebacle# Translations template for sat. # Copyright (C) 2017 ORGANIZATION # This file is distributed under the same license as the sat project. # FIRST AUTHOR , 2017. # Goffi , 2017. # msgid "" msgstr "" "Project-Id-Version: sat VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2017-07-13 19:23+0200\n" "PO-Revision-Date: 2017-07-13 19:25+0200\n" "Last-Translator: Goffi \n" "Language-Team: fr <>\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.4.0\n" "X-Generator: Gtranslator 2.91.7\n" #: default/base/base.html:40 msgid "Your answer has been recorded correctly." msgstr "Votre réponse a été correctement enregistrée." #: default/base/base.html:47 #, python-format msgid "Powered by %(app_name)s" msgstr "Ce site utilise %(app_name)s" #: default/blog/articles.html:15 msgid "show comments" msgstr "voir les commentaires" #: default/blog/articles.html:16 msgid "hide comments" msgstr "cacher les commentaires" #: default/blog/item.html:12 #, python-format msgid "This message is not in %(language)s, click to display anyway" msgstr "" "Ce message n'est pas en %(language)s, cliquez pour l'afficher tout de même." #: default/blog/item.html:18 default/blog/item.html:45 msgid "Click to reduce…" msgstr "Cliquez pour réduire…" #: default/blog/item.html:28 #, python-format msgid "%(days)s days ago" msgstr "il y a %(days)s jours" #: default/blog/item.html:44 msgid "Click to expand…" msgstr "Cliquez pour agrandir…" #: default/error/401.html:4 msgid "Unauthorized" msgstr "Non autorisé" #: default/error/401.html:5 msgid "Sorry, you are not allowed to access this page." msgstr "Désolé, vous n'êtes pas autorisé à accéder à cette page." #: default/error/404.html:4 msgid "Not Found" msgstr "Non trouvé" #: default/error/404.html:5 msgid "Sorry, we can't find the resource you are trying to access." msgstr "" "Désolé, nous ne pouvons trouver la ressource à laquelle vous essayez " "d'accéder." #: default/error/base.html:3 #, python-format msgid "Error %(error_code)s" msgstr "Erreur %(error_code)s" #: default/error/base.html:5 msgid "An error occured while trying to access the resource." msgstr "Une erreur a eu lieu durant la tentative d'accès à la ressource." #: default/event/attendance.html:5 msgid "Please indicate if you plan to attend the event:" msgstr "Merci d'inquiter si vous comptez vous rendre à l'évènement :" #: default/event/attendance.html:11 msgid "yes" msgstr "oui" #: default/event/attendance.html:11 msgid "no" msgstr "non" #: default/event/attendance.html:11 msgid "maybe" msgstr "peut-être" #: default/event/attendance.html:14 msgid "How many people will come (including you)?" msgstr "Combien de personnes vont venir (y compris vous) ?" #: default/event/invitation.html:5 default/invitation/welcome.html:5 #, python-format msgid "Welcome %(name)s" msgstr "Bienvenue %(name)s" #: default/event/invitation.html:6 msgid "You have been invited to participate to an event" msgstr "Vous avez été invité à participer à un événement" #: default/event/invitation.html:13 #, python-format msgid "%(days_left)s days left" msgstr "il reste %(days_left)s jours" #: default/input/comment.html:12 default/input/field.html:30 msgid "Send" msgstr "Envoyer" #: default/input/comment.html:18 msgid "Your comment" msgstr "Votre commentaire" #: default/invitation/welcome.html:6 msgid "" "You have been invited to participate with the community, please choose an " "action below" msgstr "" "Vous avez été invité à participer avec la commauntué, merci de choisir une " "action ci-dessous" #: default/session/disconnect.html:4 msgid "You have been disconnected, have a nice day!" msgstr "Vous avez été déconnecté, bonne journée !" sat_templates-0.7D/i18n/babel.ini0000644000175500017550000000002213243753417016413 0ustar debacledebacle[jinja2: **.html] sat_templates-0.7D/i18n/fr/0002755000175500017550000000000013243753417015264 5ustar debacledebaclesat_templates-0.7D/i18n/fr/LC_MESSAGES/0002755000175500017550000000000013243753417017051 5ustar debacledebaclesat_templates-0.7D/i18n/fr/LC_MESSAGES/sat.mo0000644000175500017550000000520613243753417020176 0ustar debacledebacle%`as5* '01bz;/< (5,F0sV( $ 1?E HVtZBE^w4 @,S4?L  # 06 7g a 1 3 E ] h l      %(days)s days ago%(days_left)s days leftAn error occured while trying to access the resource.Click to expand…Click to reduce…Error %(error_code)sHow many people will come (including you)?Not FoundPlease indicate if you plan to attend the event:Powered by %(app_name)sSendSorry, we can't find the resource you are trying to access.Sorry, you are not allowed to access this page.This message is not in %(language)s, click to display anywayUnauthorizedWelcome %(name)sYou have been disconnected, have a nice day!You have been invited to participate to an eventYou have been invited to participate with the community, please choose an action belowYour answer has been recorded correctly.Your commenthide commentsmaybenoshow commentsyesProject-Id-Version: sat VERSION Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2017-07-13 19:23+0200 PO-Revision-Date: 2017-07-13 19:25+0200 Last-Translator: Goffi Language-Team: fr <> Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.4.0 X-Generator: Gtranslator 2.91.7 il y a %(days)s joursil reste %(days_left)s joursUne erreur a eu lieu durant la tentative d'accès à la ressource.Cliquez pour agrandir…Cliquez pour réduire…Erreur %(error_code)sCombien de personnes vont venir (y compris vous) ?Non trouvéMerci d'inquiter si vous comptez vous rendre à l'évènement :Ce site utilise %(app_name)sEnvoyerDésolé, nous ne pouvons trouver la ressource à laquelle vous essayez d'accéder.Désolé, vous n'êtes pas autorisé à accéder à cette page.Ce message n'est pas en %(language)s, cliquez pour l'afficher tout de même.Non autoriséBienvenue %(name)sVous avez été déconnecté, bonne journée !Vous avez été invité à participer à un événementVous avez été invité à participer avec la commauntué, merci de choisir une action ci-dessousVotre réponse a été correctement enregistrée.Votre commentairecacher les commentairespeut-êtrenonvoir les commentairesouisat_templates-0.7D/COPYING0000644000175500017550000010333013243753417015127 0ustar debacledebacle GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . sat_templates-0.7D/__init__.py0000644000175500017550000000000013243753417016173 0ustar debacledebaclesat_templates-0.7D/default/0002755000175500017550000000000013243753417015522 5ustar debacledebaclesat_templates-0.7D/default/session/0002755000175500017550000000000013243753417017205 5ustar debacledebaclesat_templates-0.7D/default/session/disconnect.html0000644000175500017550000000022213243753417022216 0ustar debacledebacle{% extends 'base/base.html' %} {% block body %}

{% trans %}You have been disconnected, have a nice day!{% endtrans %}

{% endblock body %} sat_templates-0.7D/default/login/0002755000175500017550000000000013243753417016632 5ustar debacledebaclesat_templates-0.7D/default/login/login.html0000644000175500017550000000502613243753417020631 0ustar debacledebacle{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% block title %}{{C.APP_NAME}} login{% endblock %} {% block body %}
{% block login_right_top %}{% endblock %} {% if login_error is defined %} {# error messages displayed in case of failing attempt to login #}

{% block login_error_message %} {% if login_error == S_C.PROFILE_AUTH_ERROR %} {%- trans %}Your login and/or password is incorrect. Please try again.{% endtrans -%} {% elif login_error == S_C.XMPP_AUTH_ERROR %} {%- trans %}Your XMPP account failed to connect. Did you enter the good password? If you have changed your XMPP password since your last connection on Libervia, please use another SàT frontend to update your profile.{% endtrans -%} {% elif login_error == S_C.NO_REPLY %} {%- trans %}Did not received a reply (the timeout expired or the connection is broken).{% endtrans -%} {% else %} {%- trans %}An unknown error occurred, please contact your service administrator.{% endtrans -%} {% endif %} {% endblock login_error_message %}

{% endif %}
{% block login_form %} {% call form.form() %} {{ field.meta('type', 'login') }} {{ field.text("login", _("Login"), required=true, value=login, )}} {{ field.password("password", _("Password"), required=not empty_password_allowed) }} {{ field.submit(_("Log in")) }} {% endcall %} {% endblock login_form %}
{% block login_right_bottom %} {% if register_url is defined %} {% endif %} {% endblock login_right_bottom %}
{% endblock body %} sat_templates-0.7D/default/login/register.html0000644000175500017550000000334413243753417021346 0ustar debacledebacle{% extends 'login/login.html' %} {% block title %}{{C.APP_NAME}} register new account{% endblock %} {% block login_error_message %} {% if login_error == S_C.ALREADY_EXISTS %} {%- trans %}This login already exists, please choose another one.{% endtrans -%} {% elif login_error == S_C.INVALID_INPUT %} {%- trans %}The data you entered are nod valid.{% endtrans -%} {% elif login_error == S_C.BAD_REQUEST %} {%- trans %}Bad request, please contact your service administrator{% endtrans -%} {% else %} {%- trans %}An unknown error occurred, please contact your service administrator.{% endtrans -%} {% endif %} {% endblock login_error_message %} {% block login_right_top %} {% if login_url is defined %} {% endif %} {% endblock login_right_top %} {% block login_form %} {% call form.form(class='register') %} {{ field.meta('type', 'register') }} {{ field.text("login", _("Login"), required=true, pattern=S_C.REG_LOGIN_RE, title=_("Login must be lower case, with only plain letters (a-z), numbers (0-9) or underscore(_)"), value=login, )}} {{ field.email("email", _("Email"), required=true, value=email, )}} {{ field.password("password", _("Password"), required=true, minlength=S_C.PASSWORD_MIN_LENGTH, value=password, )}} {{ field.submit(_("Register new account")) }} {% endcall %} {% endblock login_form %} {% block login_right_bottom %}{% endblock %} sat_templates-0.7D/default/login/logged.html0000644000175500017550000000134613243753417020763 0ustar debacledebacle{% set post_confirm_message=_("You have been logged correctly") %} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% block title %}{{C.APP_NAME}}{% endblock %} {% block confirm_message %} {% trans %}You have been logged correctly{% endtrans %} {% endblock confirm_message %} {% block body %}

You are logged under the account {{profile}}

{% call form.form() %} {{ field.meta('type', 'disconnect') }} {{ field.submit(_("Disconnect")) }} {% endcall %}
{% endblock body %} sat_templates-0.7D/default/forum/0002755000175500017550000000000013243753417016652 5ustar debacledebaclesat_templates-0.7D/default/forum/view_topics.html0000644000175500017550000000271613243753417022077 0ustar debacledebacle{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/field.html' as field with context%} {% import 'input/textbox.html' as textbox with context %} {% import 'input/navigation.html' as navigation with context %} {% import 'components/avatar.html' as avatar with context %} {% block body %} {% if not topics %}
{% trans %}There is not message yet in this forum.{% endtrans %} {% if profile %} {% trans %}You can start a topic of interest by filling this form.{% endtrans %} {% else %} {% trans %}You can login to create a new topic.{% endtrans %} {% endif %}
{% endif %} {% if profile %}
{% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %} {{ field.text("title", placeholder=_("Your topic (try to be short and explicit)"), required=True) }} {% endcall %}
{% endif %}
{% for topic in topics %} {% endfor %}
{{ navigation.prev_next(_("older topics"), _("newer topics")) }} {% endblock body %} sat_templates-0.7D/default/forum/overview.html0000644000175500017550000000150613243753417021406 0ustar debacledebacle{% extends 'base/base.html' %} {% macro generate_forums(forums_data) %} {% endmacro %} {% block body %}
{{ generate_forums(forums) }}
{% endblock body %} sat_templates-0.7D/default/forum/view.html0000644000175500017550000000224213243753417020510 0ustar debacledebacle{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% set dates_format='relative' if single else 'short' %} {% import 'blog/macros.html' as blog with context %} {% import 'input/textbox.html' as textbox with context %} {% block body %}
{{ blog.show_items(items, expanded=true) }}
{{- textbox.comment_or_login(service=service, node=node, placeholder=_("Enter your message here")) -}}
{% endblock body %} sat_templates-0.7D/default/merge-request/0002755000175500017550000000000013243753417020307 5ustar debacledebaclesat_templates-0.7D/default/merge-request/item.html0000644000175500017550000000530713243753417022136 0ustar debacledebacle{# display a single ticket @variable item(xmlui_item): ticket to display @variable comments(data_object.BlogItems): comments of the ticket @variable comments_service(unicode): service for adding comments @variable comments_node(unicode): node for adding comments #} {% set category_menu = [('merge-requests_list', url_tickets_list), ('merge-request_new', url_tickets_new)] %} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/xmlui.html' as xmlui with context %} {% import 'blog/macros.html' as blog with context %} {% import 'input/textbox.html' as textbox with context %} {% block title %}{{item|adv_format('[{value.widget_value.id}] {value.widget_value.title}') }}{% endblock %} {% block confirm_message %} {% trans %}Your comment has been sent{% endtrans %} {% endblock confirm_message %} {% block body %}
  • {% trans %}Description{% endtrans %}
  • {% trans %}Patches{% endtrans %}
{{ xmlui.generate(item, form=false, filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}}, )}}
{% if comments is defined %}
{{ blog.show_items(comments|reverse, expanded=true) }}
{% endif %} {% if comments_node is defined %}
{{- textbox.comment_or_login(service=comments_service, node=comments_node) -}}
{% endif %}
{% for patch in patches %}
{{patch.author}}

{{patch.commit_msg}}

{{- patch.diff|highlight('diff') -}}
{% endfor %}
{% endblock body %} sat_templates-0.7D/default/merge-request/create.html0000644000175500017550000000060413243753417022436 0ustar debacledebacle{# creata a new ticket #} {% set category_menu = [('merge-requests_list', url_tickets_list)] %} {% extends 'base/base.html' %} {% block body %}

{% trans %}It is not yet possible to create a merge request from inside Libervia, please use

jp merge-request set
for now. Merge requests welcome ;){% endtrans %}

{% endblock body %} sat_templates-0.7D/default/chat/0002755000175500017550000000000013243753417016441 5ustar debacledebaclesat_templates-0.7D/default/chat/chat.html0000644000175500017550000000130313243753417020241 0ustar debacledebacle{{ script.include('chat') }} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% block title %}{{ target_jid }} - {{ super() }}{% endblock %} {% block body %}
{% if subject is defined %}
{{- subject|urlize(nofollow=true,target='_blank') -}}
{% endif %} {% for msg in messages %} {% include 'chat/message.html' %} {% endfor %}
{% endblock body %} {% block footer %}{% endblock footer %} sat_templates-0.7D/default/chat/message.html0000644000175500017550000000116513243753417020754 0ustar debacledebacle{% import 'components/avatar.html' as avatar with context %}

{%- if msg.type != C.MESS_TYPE_INFO %} {%- set author = identities[msg.from_].nick | default(msg.from_) -%} {{ avatar.avatar(msg.from_) }} {{author}} {{msg.timestamp|date_fmt('auto_day')}} {% endif -%} {{- msg.html or (msg.text|urlize(nofollow=true, target="_blank")) -}}

sat_templates-0.7D/default/chat/select.html0000644000175500017550000000124013243753417020601 0ustar debacledebacle{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% block body %}

{% trans %}Please select the chat room you want to enter{% endtrans %}

{% trans %}Or enter a room address{% endtrans %}

{% call form.form(class="room_jid_form") %} {{ field.text("jid", _("Room address (JID)"), required=true)}} {{ field.submit(_("Join")) }} {% endcall %} {% endblock body %} sat_templates-0.7D/default/app/0002755000175500017550000000000013243753417016302 5ustar debacledebaclesat_templates-0.7D/default/app/app.html0000644000175500017550000000165513243753417017755 0ustar debacledebacle{% extends 'base/base.html' %} {% block body %}

{% trans app_name=C.APP_NAME %} The following link allows you to access {{app_name}} web application, which is a more feature rich way to use this software (but it is also a bit more heavy and complex to use). {% endtrans %}

{% 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 %}

{% trans %} Next time you can go directly to the above URL. {% endtrans %}

{% endblock body %} sat_templates-0.7D/default/components/0002755000175500017550000000000013243753417017707 5ustar debacledebaclesat_templates-0.7D/default/components/common.html0000644000175500017550000000125413243753417022065 0ustar debacledebacle{# menu labels, map from menu names to labels #} {% set ml = { 'login': _('Session') if profile else _('Log in'), 'blog_view': _('Blog'), 'forums': _('Forums'), 'merge-requests_list': _('Merge requests'), 'merge-request_new': _('Create new merge request'), 'tickets_list': _('Tickets'), 'ticket_new': _('Create new ticket'), 'chat': _('Chat'), 'app': _('Application'), } %} {% macro menu(menus, class='') %} {% endmacro %} sat_templates-0.7D/default/components/avatar.html0000644000175500017550000000054613243753417022056 0ustar debacledebacle{% macro avatar(jid) %} {%- if identities is defined -%} {%- if identities[jid].avatar_basename is defined %} {% else %} {{author|first|upper}} {%- endif -%} {%- endif -%} {% endmacro %} sat_templates-0.7D/default/invitation/0002755000175500017550000000000013243753417017706 5ustar debacledebaclesat_templates-0.7D/default/invitation/welcome.html0000644000175500017550000000063313243753417022227 0ustar debacledebacle{% extends 'base/base.html' %} {% block body %}

{% trans %}Welcome {{name}}{% endtrans %}

{% trans %}You have been invited to participate with the community, please choose an action below{% endtrans %}

{% if include_url is defined %} {% endif %} {% endblock body %} sat_templates-0.7D/default/static/0002755000175500017550000000000013243753417017011 5ustar debacledebaclesat_templates-0.7D/default/static/event.css0000644000175500017550000000254313243753417020646 0ustar debacledebacle@import 'blog.css'; /* needed as blog/articles.html is included */ .invitation_header { text-align: center; font-variant: small-caps; border: none; } .instructions { font-style: italic; margin: 0; } #event_picture { max-width: 100%; border-radius: 2em; } #event_counter { font-weight: bold; font-size: 1.3em; text-align: center; width: 15em; margin: 1em auto; border: 2px solid #aab6c4; background-color: #f3e7e7; color: #2f3943; } .attendance { background-color: #9ca0a8; padding: 0 0.3em; max-width: 580px; margin: 0 auto; color: #3A3A3A; } .attending { width: 6em; margin: 0 auto; } .attending label { /* display: inline; */ margin: 0.8em 0; } .guests label { display: block; margin: 1em 0; } .guests input { width: 2.5em; margin: 0 1em; } .poll_instructions { font-weight: bold; font-size: 0.9em; font-size: 1.1em; text-align: center; } .guests label{ text-align: center; /* font-style: italic */ } .guests input { display: block; margin: 0 auto; } .submit { width: 15em; margin: 0 auto; padding: 1em 0; } .submit input { width: 100%; } @media (min-width: 500px) { .invitation_header { width: 94%; margin: 0 auto; border: solid 1px; border-color: #9ca0a8; } } sat_templates-0.7D/default/static/fonts/0002755000175500017550000000000013243753417020142 5ustar debacledebaclesat_templates-0.7D/default/static/fonts/sat_base_font/0002755000175500017550000000000013244061660022742 5ustar debacledebaclesat_templates-0.7D/default/static/fonts/sat_base_font/README.txt0000644000175500017550000000123713244061240024433 0ustar debacledebacleThis font is based on the Alegreya font by Juan Pablo del Peral (juan@huertatipografica.com.ar), it has been modified to be compressed using https://google-webfonts-helper.herokuapp.com, and put here for being embedded in Salut à Toi templates, to avoid privacy issues with third party website download. As the name is a reserved name and the compression make the font a derivative, this font has been renamed to "sat_base_font", according to the recommandation read at http://scripts.sil.org/cms/scripts/page.php?item_id=OFL-FAQ_web#1db14da7 Thanks to Juan Pable del Peral for his work! The license "SIL Open Font License, Version 1.1" only apply to this directory. sat_templates-0.7D/default/static/invitation.css0000644000175500017550000000052313243753417021705 0ustar debacledebacle#body { display: flex; flex-direction: column; } .invitation_header { flex: 1 } .invitation_header h1,p { text-align: center; } #include_main { flex: 9 } #include_main { width: 100%; margin: 0; border: none; } footer { /* footer should already be displayed in included page */ display: none; } sat_templates-0.7D/default/static/ticket.css0000644000175500017550000000556013243753417021012 0ustar debacledebacle@import 'blog.css'; /* needed as blog/articles.html is included */ .instructions { font-style: italic; text-align: center; } .instructions span { padding: 0.3em; } ul.xmlui_list { list-style: none; display: flex; flex-direction: column; padding: 0; } .xmlui_list li { display: inline-flex; background: #eee; padding: 0.5em; margin: 0.5em 0; border: 1px solid silver; } .xmlui_list li:hover { background: yellow; } .xmlui_list a { display: flex; width: 100%; text-decoration: none; color: inherit; } .xmlui_list a:visited { color: inherit; } .tickets a.status_closed { text-decoration: line-through; color: grey; } .xmlui_field__id { font-style: italic; padding-right: 1em; } .xmlui_field__title { padding-right: 1em; } .tickets a.severity_major .xmlui_field__title { font-weight: bold; color: red; } .tickets tbody tr.severity_major .td_title a::before { content: '⚠ '; color: red; } /* single ticket */ .ticket { padding: 20px; max-width: 500px; margin: 0 auto; } .view .xmlui_widget { width: auto; } .view div.xmlui_cont div.xmlui_cont { display: grid; grid-template-columns: min-content 1fr; } .view #label_wid_title, .view #label_wid_body, .view #label_wid_id, .view #label_wid_comments_uri, .view #wid_comments_uri { display: none } .view .xmlui_label { padding-right: 2em; } .view #wid_id { margin: 0; font-style: italic; grid-column-start: 1; grid-column-end: 3; text-align: right; } .view .xmlui_label { font-weight: bold; float: left; color: #808080cc; } .view #wid_title { font-weight: bold; display: block; text-align: center; grid-column-start: 1; grid-column-end: 3; } .view #wid_title::first-letter { text-transform: uppercase; } .view #wid_labels span, .xmlui_field__labels span { font-size: 0.8em; background: #eae3e3; font-variant: small-caps; border: 1px solid black; border-radius: 0.5em; padding: 0 2px; white-space: nowrap; } .view #wid_labels span.value_work_in_progress { background: yellow; } .view #wid_type { font-weight: bold; } .view #wid_type span.value_bug::after { content: ' 🐛'; color: red; } .view #wid_severity span.value_major { font-weight: bold; color: red; } .view #wid_severity span.value_major::after { content: '⚠ '; } .view #wid_body { white-space: pre-wrap; max-height: 500px; overflow: auto; resize: both; background-color: white; padding: 5px; text-align: justify; border: 1px solid black; border-radius: 5px; grid-column-start: 1; grid-column-end: 3; display: block; } .comment_post { margin-top: 3em; } @media (min-width: 800px) { ul.xmlui_list { padding: 0 2em; } .xmlui_list li { border-radius: 0.3em; } } sat_templates-0.7D/default/static/forum.css0000644000175500017550000000223013243753417020646 0ustar debacledebacle@import 'blog.css'; /* needed as blog/articles.html is included */ #forums { margin: 2em auto 0 auto; width: 90%; } ul.forum { box-sizing: border-box; list-style: none; display: flex; margin: 0 auto; } ul.forum>li { width: 100%; } ul.forum>li>a { border: 0.7rem solid #ddd; border-radius: 0.5em; display: block; padding: 1rem; margin-bottom: 1rem; text-decoration: none; color: inherit; } a.forum_actif:hover { background-color: #43d2f6; } p.forum_short-desc { color: #666; margin: 0; font-size: 0.8em; } #forum_topics { margin-top: 3em; } #forum_topics>div { box-sizing: border-box; width: 80%; margin: 0.5em auto; padding: 0.2em 2em; background: #eee; } #forum_topics>:hover { background-color: #43d2f6; } #forum_topics img.avatar { width: 1.5rem; vertical-align: middle; padding-right: 1em; } #forum_topics a { display: block; text-decoration: none; color: inherit; } .textbox input { width: 100%; box-sizing: border-box; } @media (min-width: 500px) { .textbox input { min-width: 26em; width: auto; } } sat_templates-0.7D/default/static/styles.css0000644000175500017550000001235513243753417021052 0ustar debacledebaclehtml { font-family: "sat-base-font"; } body { margin: 0; padding: 0; display: flex; height: 100vh; flex-direction: column; box-sizing: border-box; } #main_side_bar { } #main_area { flex: 1; display: flex; flex-direction: column; box-sizing: border-box; } #body { flex: 1; position: relative; } footer { text-align: center; font-size: 0.7em; font-weight: bold; } .box { background-color: #edf2ff; border-radius: 0; border-color: silver; } .title { font-weight: bold; text-align: center; } .post_confirm { text-align: center; background-color: lightgreen; padding: 1em; font-size: 1.2em; font-weight: bold; width: 60%; margin: 1.5em auto; } /*** Generic ***/ .button { padding: 0.5em 1em; background: #333; color: #ccc; border: 1px solid #555; border-radius: 0.8em; font-weight: bold; } .button:hover { background-color: #bc0000; } /*** Messages ***/ .message_info { max-width: 500px; margin: 0 auto; padding: 1em; text-align: justify; } .message_info pre { background: #ddd; padding: 1em; } /*** Menus ***/ .menu ul { display: flex; padding: 0; margin-top: 8px; list-style: none; } .menu a { display: block; color: inherit; text-decoration: none; font-variant: small-caps; } .main_menu { min-width: 200px; /* background-color: #eaeaea; */ background-color: #333; color: white; } .main_menu ul { flex-direction: row; flex-wrap: wrap; } .main_menu li { flex: 1; padding: 0; margin: 0 0.5em; } .main_menu a { display: inline; white-space: nowrap; } .main_menu a:hover { background-color: initial; text-shadow: 1px 1px 2px; font-weight: bold; } .category_menu ul { justify-content: center; } .category_menu li { margin: 0.5em; text-align: center; } .category_menu a { border: solid 1px; padding: 0.5em; border-radius: 0.2em; background: #eee; } /*** containers ***/ /* tabs */ .tab_container { max-width: 1000px; margin: 0 auto; } .tab_header { background-color: white; border-bottom: 1px solid lightgrey; } .tab_header ul { display: flex; margin: 0; padding: 0; list-style: none; background-color: white; } .tab_page { box-sizing: border-box; padding-top: 2em; border: 1px solid lightgrey; border-top: none; display: None; } .tab_page.clicked { display: block; } .tab_button { display: inline; color: grey; background-color: white; border-top: 1px solid lightgrey; border-left: 1px solid lightgrey; border-bottom: 1px solid lightgrey; padding: 0 1em; cursor: pointer; /* we go down by 1px to remove bottom border from .tab_header */ margin-bottom: -1px; } .tab_button.clicked { /* background: lightgrey; */ color: inherit; border-bottom: none; } li.tab_button:last-child { border-right: 1px solid lightgrey; } .tab_button input { display: None; } .tab_button label { margin: 1em; } .tab_button input:checked + label { font-weight: bold; } /*** Forms ***/ .form_submit { margin: 1em auto 0; display: block; } /* Textboxes */ form.textbox>* { display: block; margin: 1em auto; text-align: center; max-width: 100%; box-sizing: border-box; } form.textbox>textarea { text-align: left; } .log_request { text-align: center; } /*** Navigation ***/ .prev_next_links ul { list-style: none; display: flex; padding: 0 2em; margin: 0; } .prev_next_links li { flex: 1; } .prev_next_links li.older_items { text-align: right; } .prev_next_links img { display: block; } .prev_next_links .older_items img { display: block; margin-left: auto; margin-right: 0; } .prev_next_links a { display: inline-block; margin-top: 1em; padding: 0.2em; text-decoration: None; color: inherit; font-variant: small-caps; background: rgba(200,200,200,0.6); border-radius: 0.5em; } .prev_next_links a:hover { background-color: #ddd; } /*** XMLUI ***/ .xmlui_cont_vertical>* { display: block; box-sizing: border-box; } .xmlui_cont_vertical>.xmlui_widget { width: 100%; min-height: 1em; min-width: 1px; } label.xmlui_label { font-weight: bold; } td a { /* we use for non JS links in table * so we don't want specific color/text-decoration by default */ color: inherit; text-decoration: inherit; } /*** Notifications ***/ .notification.retry { position: fixed; top: 1rem; margin: auto; width: 80%; background: #DB1616; border: 3px solid silver; left: 10%; text-align: center; } #retry_counter { font-weight: bold; } #retry_now { color: blue; text-decoration: underline; cursor: pointer; } @media (min-width: 800px) { html { background-size: auto; } body { flex-direction: row; } #main_area { overflow: auto; } .box { border-radius: 1em; box-shadow: 10px 10px 16px -5px rgba(0,0,0,0.5); } .main_menu a { display: block; padding: 2em 0; } .main_menu ul { flex-direction: column; padding-left: 2em; } .prev_next_links ul { padding: 0 6em; } } sat_templates-0.7D/default/static/chat.js0000644000175500017550000000435613243753417020274 0ustar debacledebacle/* SàT Template: Chat page handling * * Copyright (C) 2017 Jérôme Poisson (goffi@goffi.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ var msgInput = document.getElementById('message_input'); var messages = document.getElementById('messages'); const messagesTransitionOri = messages.style.transition; msgInput.addEventListener('keypress', function(event) { if (event.which == 13 && !event.shiftKey) { if (messages.style.height !== '100%') { messages.style.transition = messagesTransitionOri; setTimeout(function() { messages.style.transition = 'initial'; messages.scrollTop = messages.scrollHeight; }, 1000); messages.style.height = "100%"; } if (!this.value.trim()) { return; } socket.send({'type': 'msg', 'body': this.value}); this.value = ''; event.preventDefault(); }} ); var mutationCb = function(mutationsList) { scrollPos = messages.scrollTop + messages.clientHeight; if (messages.lastChild.offsetTop - scrollPos - 10 <= 0) { // we auto scroll only if we are at the bottom of the page // else the use is probably checking history // Note thas this doesn't take margin into account, // we suppose margin to be 0 for messages children messages.scrollTop = messages.scrollHeight; } }; var observer = new MutationObserver(mutationCb); observer.observe(messages, { childList: true }); // we want to start with scrolling at bottom messages.scrollTop = messages.scrollHeight; messages.style.transition = 'initial'; sat_templates-0.7D/default/static/chat.css0000644000175500017550000000260013243753417020436 0ustar debacledebacle:root { --message_input-height: 2rem; } #main_area { overflow: hidden; } .chat_widget { position: absolute; height: 100%; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; } #messages { height: 100%; min-height: 150px; overflow: auto; box-sizing: border-box; resize: vertical; transition: height 0.6s; } #subject { padding: 1em; text-align: center; background: #eee; font-style: italic; } #messages > p { margin: 0; padding: 0.5em 0 0 0.5em; } #messages .msg_body { white-space: pre-wrap; } #message_input { width: 100%; height: 100%; padding-top: 0.5rem; margin: 0; box-sizing: border-box; resize: none; } .message_box { flex: 1 1 calc(var(--message_input-height)); position: relative; min-height: 1rem; box-sizing: border-box; } #messages > p.msg_info { white-space: pre-wrap; font-family: monospace; color: #049282; } .avatar { height: 2rem; width: 2rem; float: left; background: #ccc; border-radius: 0.2rem; margin-right: 0.3rem; margin-top: 0.3rem; } .generated { font-size: 1.5rem; text-align: center; background: #43d2f6; } .msg_header { display: block; font-size: 0.9em; } .author { font-weight: bold; } .date { color: #777; } @media (min-width: 800px) { #messages > p { padding-left: 1.5em; } } sat_templates-0.7D/default/static/app.css0000644000175500017550000000045313243753417020303 0ustar debacledebacle#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; } sat_templates-0.7D/default/static/login.css0000644000175500017550000000640113243753417020632 0ustar debacledebaclebody { background: #111; } footer { color: #999; } #login_container { display: flex; height: 100%; align-items: center; justify-content: center; } #login_box { display: flex; background: #111; color: #aaa; width: 600px; margin: auto; } #login_left { display: none; } #login_right { width: 100%; position: relative; } #login_form { margin-top: 60px; } #login_form label { font-weight: bold; display: block; text-align: center; } #login_form input:not(.form_submit) { display: block; margin: 0 auto; height: 25px; line-height: 25px; width: 200px; text-indent: 11px; background: #000; color: #ccc; border: 1px solid #555; border-radius: 15px 15px 15px 15px; } #login_form input:not(.form_submit):focus { box-shadow: 0 0 2px 2px #43d2f6; } #login_form input:hover { background-color: #222; } #login_form input:focus { border: 1px solid #999; outline: none; } #login_box .form_input { display: block; margin-bottom: 1em; } #login_form .form_submit, #logged .form_submit { /* FIXME: as above /media is not good. * url should be replaced by real gradient */ color: #fff; background: #222 url('/media/libervia/gradient.png') repeat-x; font-weight: bold; line-height: 1; text-shadow: 0 -1px 1px rgba(0,0,0,0.25); padding: 7px 10px 8px; border: 0; border-radius: 6px 6px 6px 6px; cursor: pointer; margin-top: 30px; } #login_error { position: absolute; margin: -90px 0 0; width: 100%; height: 150px; overflow: auto; font-size: 0.9em; font-weight: bold; color: lightcoral; text-align: center; } #login_error p { position: absolute; bottom: 0; margin-left: 46px; margin-right: 46px; } #create_account_link { width: 100%; margin-top: 3em; } #login_link { margin-top: 1em; } #create_account_link a, #login_link a { text-decoration: none; text-align: center; font-size: 0.8em; cursor: pointer; color: #fff; display: block; text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2); } .logged_box { margin: 3em; padding: 1em; text-align: center; font-style: italic; } .logged_profile { font-style: normal; font-weight: bold; } #login_form form.register input[type=submit] { margin-top: 0.5em; } @media (min-width: 600px) { body { background: transparent; } footer { color: black; } #login_left { display: inline; } #login_right { /* FIXME: there is not way to correctly select images from * media path at the moment */ background: url('/media/libervia/register_right.png'); } #login_error { width: auto; max-height: 50px; margin: 10px 46px 0; } #login_error p { position: static; margin: 0; } #login_form label { text-align: initial; position: relative; left: 50px; } #login_form label::after { content: ':' } #login_form input:not(.form_submit) { display: inline; margin: 0; position: relative; left: 50px; } #create_account_link { margin-top: 0; bottom: 0; position: absolute; } } sat_templates-0.7D/default/static/merge-request.css0000777000175500017550000000000013243753417024300 2ticket.cssustar debacledebaclesat_templates-0.7D/default/static/highlight.css0000644000175500017550000001110513243753417021466 0ustar debacledebacle/* This file as been generated from Pygments using * f.write(HtmlFormatter().get_style_defs('.highlight')) * where f was an open file. * It is used in Libervia for highlighting code or markup * If changes are needed, they should be done in a separate CSS file * so this one keep Pygments' defaults */ .highlight .hll { background-color: #ffffcc } .highlight { background: #f8f8f8; } .highlight .c { color: #408080; font-style: italic } /* Comment */ .highlight .err { border: 1px solid #FF0000 } /* Error */ .highlight .k { color: #008000; font-weight: bold } /* Keyword */ .highlight .o { color: #666666 } /* Operator */ .highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ .highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ .highlight .cp { color: #BC7A00 } /* Comment.Preproc */ .highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ .highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ .highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ .highlight .gd { color: #A00000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #FF0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .highlight .gi { color: #00A000 } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ .highlight .gt { color: #0044DD } /* Generic.Traceback */ .highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008000 } /* Keyword.Pseudo */ .highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #B00040 } /* Keyword.Type */ .highlight .m { color: #666666 } /* Literal.Number */ .highlight .s { color: #BA2121 } /* Literal.String */ .highlight .na { color: #7D9029 } /* Name.Attribute */ .highlight .nb { color: #008000 } /* Name.Builtin */ .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .highlight .no { color: #880000 } /* Name.Constant */ .highlight .nd { color: #AA22FF } /* Name.Decorator */ .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0000FF } /* Name.Function */ .highlight .nl { color: #A0A000 } /* Name.Label */ .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #19177C } /* Name.Variable */ .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #666666 } /* Literal.Number.Bin */ .highlight .mf { color: #666666 } /* Literal.Number.Float */ .highlight .mh { color: #666666 } /* Literal.Number.Hex */ .highlight .mi { color: #666666 } /* Literal.Number.Integer */ .highlight .mo { color: #666666 } /* Literal.Number.Oct */ .highlight .sa { color: #BA2121 } /* Literal.String.Affix */ .highlight .sb { color: #BA2121 } /* Literal.String.Backtick */ .highlight .sc { color: #BA2121 } /* Literal.String.Char */ .highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .highlight .s2 { color: #BA2121 } /* Literal.String.Double */ .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .highlight .sx { color: #008000 } /* Literal.String.Other */ .highlight .sr { color: #BB6688 } /* Literal.String.Regex */ .highlight .s1 { color: #BA2121 } /* Literal.String.Single */ .highlight .ss { color: #19177C } /* Literal.String.Symbol */ .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0000FF } /* Name.Function.Magic */ .highlight .vc { color: #19177C } /* Name.Variable.Class */ .highlight .vg { color: #19177C } /* Name.Variable.Global */ .highlight .vi { color: #19177C } /* Name.Variable.Instance */ .highlight .vm { color: #19177C } /* Name.Variable.Magic */ .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ sat_templates-0.7D/default/static/merge-request_item.css0000644000175500017550000000102313243753417023320 0ustar debacledebacle@import 'highlight.css'; .highlight { overflow: auto; } .box { border-radius: 0; box-shadow: none; } .ticket { max-width: none; } .xmlui_cont.xmlui_cont_vertical { max-width: 780px; margin: 0 auto; } .view #wid_body { border: 1px solid silver; } #tab_patches { overflow: auto; } #tab_patches header { border-top: 1px solid silver; } #tab_patches header label { font-weight: bold; } .commit_msg { font-style: italic; white-space: pre-wrap; } .diff { white-space: pre; } sat_templates-0.7D/default/static/websocket.js0000644000175500017550000001140413243753417021333 0ustar debacledebacle/* SàT templates: suit of templates for Salut à Toi Copyright (C) 2017 Jérôme Poisson (goffi@goffi.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ /* websocket handler */ //TODO: retry websocket instead of reload function WSHandler(url, token, debug=false) { var socket = new WebSocket(url, 'libervia_page_' + token ); var retried = 0; var errorHandler = function(error) { if (retried > 20) { console.error("Too many tries, can't start websocket"); alert("Dynamic connection with server can't be established, please try to reload this page in a while or contact your service administrator"); return; } var delay = Math.floor((Math.random() * 10) + 1) + 30 * Math.min(retried, 6); notifyRetry(delay, function() { retried++; socket = new WebSocket(url, 'libervia_page_' + token ); socket.addEventListener('error', errorHandler); }); }; socket.addEventListener('error', errorHandler); if (debug) { socket.addEventListener('message', function(event) { console.log('WS in <== ', JSON.parse(event.data)); }); } socket.addEventListener('message', function(event) { try {data = JSON.parse(event.data);} catch (e) { console.warn('invalid websocket message received: %s', e); return; } switch (data.type) { case 'reload': location.reload(true); break; case 'dom': selected_element = document.body.querySelector(data.selectors); switch (data.update_type) { case 'append': var template = document.createElement('template'); template.innerHTML = data.html; new_element = template.content.firstChild; selected_element.appendChild(new_element); break; default: console.warn('Unknown DOM update type: %s', data.update_type); } break; default: console.warn('Unknown data type: %s', data.type); } }); socket.addEventListener('open', function (event) { console.log('Websocket opened'); retried = 0; }.bind(this)); this.send = function(data) { if (debug) { console.log('WS out ==> ', data); } socket.send(JSON.stringify(data)); }; function notifyRetry(timeout, retryCb) { /* Show a notification dialog informing the user that server can't be reach * and call retryCb after timeout seconds. * A "retry now" link allows to retry immediately" * * @param timeout(int): delay before retrying, in seconds * @param retryCb(function): function to call when retrying */ var startTime = Date.now() / 1000; var retryIntervalID; var notif = document.createElement("div"); notif.setAttribute('class', 'notification retry'); //FIXME: we use English without translation for now, must be changed when we can use gettext in Libervia pages notif.innerHTML = "

Can't reach the server, retrying in seconds

retry now

"; document.body.appendChild(notif); var retryCounter = document.getElementById('retry_counter'); retryCounter.textContent = timeout; var retry = function () { clearInterval(retryIntervalID); notif.parentNode.removeChild(notif); retryCb(); }; var updateTimer = function () { var elapsed = Math.floor(Date.now() / 1000 - startTime); var remaining = timeout - elapsed; if (remaining < 0) { retry(); } else { retryCounter.textContent = remaining; } }; var retryNow = document.getElementById('retry_now'); retryNow.addEventListener('click', function(){ retry(); }); retryIntervalID = setInterval(updateTimer, 1000); } } sat_templates-0.7D/default/static/blog.css0000644000175500017550000001235313243753417020450 0ustar debacledebacle/*** articles ***/ article.box { position: relative; margin: 2% auto; border-style: solid none none; border-width: 1px; padding: 2%; min-height: 9em; max-height: 20em; overflow: hidden; transition: max-height 0.5s; } article video { max-width: 100%; height: auto; } .main_article article.box:not(.clicked) { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } /** header **/ header a { color: inherit; text-decoration: inherit; } header .metadata { text-align: right; } article .author { font-weight: bold; } article .author::after { content: ", "; } /*** labels ***/ .labels { text-align: right; } .labels a { text-decoration: none; color: inherit; } .labels span { font-variant: small-caps; font-size: 0.8rem; background-color: #ddd; border-radius: 0.4em; padding: 0 0.5em; transition: all 0.5s; } .labels a>span { cursor: pointer; } .labels a>span:hover { box-shadow: 0px 0px 6px 1px #000; } /** content **/ article div.content { text-align: justify; font-size: 0.9em; } article div.content.text { white-space: pre-wrap; } article img { max-width: 100%; margin: 0; } /** reduce/expand buttons **/ .expand_box { cursor: pointer; } .box_top { position: absolute; top: 0; left: 0; width: 100%; } .box_bottom { position: absolute; bottom: 0; left: 0; width: 100%; } .expand_box.box_bottom::before { /* we do a gradient to show that text can be expanded */ background-image: linear-gradient(to bottom,rgba(0,0,0,0),#ffffff); display: block; content: ""; width: 100%; height: 4em; border: none; } .expand_box p { background-color: white; margin: 0; text-align: center; font-weight: bold; font-size: 0.8em; border-style: solid none dotted none; border-width: 1px 0 1px; border-bottom-color: gray; } article .expand_box .hide { /* when not clicked, we only display .show */ display: none; } article .expand_box.box_top { /* top expand box only show a reduce button * so it should be displayed only when article is .clicked */ display: none; } /** other language **/ /* we hide everything just to display a message informing that * the item is in an other language, and asking to click * to display it */ article.other_lang>div.info { display: none; } article.other_lang.init>* { display: none; } article.other_lang.init>div.info { display: initial; } article.other_lang.init>div.expand_box.box_top { /* as we need to have the message clickable, we cheat and use * expand box on the whole surface but fully transparent */ display: initial; height: 100%; opacity: 0; } article.other_lang.init>div.info>p { margin: 0; padding: 0.2em; text-align: center; font-style: italic; } article.other_lang.init { border: none; border-radius: 0; padding: 0; min-height: 0; } /*** comments ***/ button.comments_btn { border: none; font-weight: bold; display: block; margin: 0 10% 0 auto; border-radius: 1em; background: #b8bcc4; color: #4d4d4d; } button.comments_btn:active { background: #4d4d4d; color: #b8bcc4; } button.comments_btn.clicked span.show { display: none; } button.comments_btn:not(.clicked) span.hide { display: none; } .comments_panel { max-height: 0; opacity: 0; transition: max-height 1s, opacity 2s; overflow: hidden; } .comments_panel.clicked { opacity: 1; } .comments article { background-color: #9ca0a8; border: none; max-height: none; } .comment_post { text-align: center; } .comment_post textarea { border-style: solid; border-width: 1px 0; border-color: black; max-width: 100%; } .comments_panel article .expand_box { /* no expand box in comments */ display: none; } /*** media queries ***/ @media (min-width: 500px) { /*** general ***/ #main_area { background-image: var(--bg-img); background-repeat: no-repeat; background-size: cover; } article.box { width: 80%; border-style: solid solid none solid; } .comments article.box { width: 30rem; margin: 2% auto; border: none; } .comment_post textarea { border-width: 1px; border-radius: 1em; border: solid 1px; padding: 0.5em; } footer span { background: rgba(200,200,200,0.6); border-radius: 0.5em 0.5em 0 0; padding: 0 0.5em; margin-top: 1em; } } /*** clicked ***/ .main_article article.clicked { border-bottom-style: solid; } .main_article article.clicked .expand_box.box_top { display: initial; } .main_article article.clicked .expand_box { opacity: 0; transition: opacity 0.5s; } .main_article article.clicked .expand_box p { background-color: transparent; border: none; } .main_article article.clicked .expand_box:hover { opacity: 1; color: grey; } .main_article article.clicked .expand_box::before { background-image: none; display: none; } .main_article article.clicked .expand_box .hide { display: inline; } .main_article article.clicked .expand_box .show { display: none; } sat_templates-0.7D/default/static/fonts.css0000644000175500017550000000572413243753417020662 0ustar debacledebacle/* generated from https://google-webfonts-helper.herokuapp.com */ /* *** sat_base_font *** */ /* sat_base_font-regular - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: normal; font-weight: 400; src: local('sat-base-font'), local('sat-base-font-Regular'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } /* sat_base_font-italic - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: italic; font-weight: 400; src: local('sat-base-font Italic'), local('sat-base-font-Italic'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } /* sat_base_font-700 - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: normal; font-weight: 700; src: local('sat-base-font Bold'), local('sat-base-font-Bold'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } /* sat_base_font-900 - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: normal; font-weight: 900; src: local('sat-base-font Black'), local('sat-base-font-Black'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } /* sat_base_font-700italic - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: italic; font-weight: 700; src: local('sat-base-font Bold Italic'), local('sat-base-font-BoldItalic'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } /* sat_base_font-900italic - latin-ext_latin */ @font-face { font-family: 'sat-base-font'; font-style: italic; font-weight: 900; src: local('sat-base-font Black Italic'), local('sat-base-font-BlackItalic'), url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-900italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('fonts/sat_base_font/sat_base_font-v7-latin-ext_latin-900italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } sat_templates-0.7D/default/static/chat_select.css0000644000175500017550000000161713243753417022004 0ustar debacledebacle#main_area { overflow: auto; } .instructions { text-align: center; font-style: italic; } .rooms_list { list-style: none; display: grid; text-align: center; padding: 0; } .rooms_list a { text-decoration: none; color: inherit; font-variant: small-caps; font-weight: bold; } .rooms_list li { margin-top: 1em; } .rooms_list li:first-child { margin-top: 0; } .rooms_list li:hover { background-color: #efefef; } #jid { margin: 0 1em; width: 15em; border-radius: 0.7em; outline: none; border: 1px solid black; padding: 0.4em; box-shadow: none; } .room_jid_form { text-align: center; } @media (min-width: 600px) { .instructions { padding-top: 3rem; } .rooms_list { grid-template-columns: 1fr 1fr 1fr; } .rooms_list li { margin-top: 0; } .room_jid_form .form_submit.button { display: inline; } } sat_templates-0.7D/default/static/common.js0000644000175500017550000001056313243753417020642 0ustar debacledebaclevar __session_storage_available; var __local_storage_available; function storageAvailable(type) { /* check if session or local storage is available * * @param type(string): "session" or "storage" * @return (boolean): true if requested storage is available */ console.assert(type == 'session' || type == 'storage', "bad storage type (%s)", type); const var_name = '__' + type + '_storage_available'; var available = window[var_name]; if (available === undefined) { // test method from https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API var storage = window[type + 'Storage']; try { x = '__storage_test__'; storage.setItem(x, x); storage.removeItem(x); available = true; } catch(e) { available = e instanceof DOMException && ( // everything except Firefox e.code === 22 || // Firefox e.code === 1014 || // test name field too, because code might not be present // everything except Firefox e.name === 'QuotaExceededError' || // Firefox e.name === 'NS_ERROR_DOM_QUOTA_REACHED') && // acknowledge QuotaExceededError only if there's something already stored storage.length !== 0; } if (!available) { console.warn("%s storage not available", type); } window[var_name] = available; } return available; } function toggle_clicked_class_tag(tag_name, class_name='clicked') { for (let elt of document.getElementsByTagName(tag_name)) { elt.classList.toggle(class_name); } } function toggle_clicked_class_sel(selectors, class_name='clicked') { for (let elt of document.querySelectorAll(selectors)) { elt.classList.toggle(class_name); } } function set_clicked_class_id(trigger_elem_id, target_elem_id=null, class_name='clicked') { if (target_elem_id === null) { target_elem_id = trigger_elem_id; } document.getElementById(trigger_elem_id).addEventListener( "click", function() { document.getElementById(target_elem_id).classList.toggle(class_name); } ); } function get_elt(arg) { if (typeof arg === 'string') { // we should have an id return document.getElementById(arg); } else { // we should have an element return arg; } } function clicked_cls(elt) { /* toggle "clicked" class on each click, and remove "init" class if present */ // init if (elt.classList.contains("init")) { elt.classList.remove("init"); } // clicked elt.classList.toggle("clicked"); } function clicked_mh_fix(arg) { /* toggle clicked, and fix max-height on transitionend * * needed to workaround transition issue with max-height:none * inspired from https://css-tricks.com/using-css-transitions-auto-dimensions, * thanks to Brandon Smith * * @param arg: element to toggle (id as string, or element itself) * */ elt = get_elt(arg); if (!elt.classList.contains("clicked")) { /* expand */ var fix_expand = function(event) { elt.removeEventListener("transitionend", fix_expand, false); if (elt.classList.contains("clicked")) { /* if event is clicked quicker than transition time, * this callback can be called on reduce */ elt.style.maxHeight = "none"; } }; elt.setAttribute('max_height_init', elt.clientHeight); elt.addEventListener("transitionend", fix_expand, false); clicked_cls(elt); elt.style.maxHeight = elt.scrollHeight + 'px'; } else { /* reduce */ var transition_save = elt.style.transition; elt.style.transition = ''; requestAnimationFrame(function() { elt.style.maxHeight = elt.scrollHeight + 'px'; elt.style.transition = transition_save; requestAnimationFrame(function() { elt.style.maxHeight = elt.getAttribute('max_height_init') + 'px'; elt.removeAttribute('max_height_init'); elt.style.maxHeight = null; }); }); clicked_cls(elt); } } sat_templates-0.7D/default/error/0002755000175500017550000000000013243753417016653 5ustar debacledebaclesat_templates-0.7D/default/error/401.html0000644000175500017550000000030513243753417020041 0ustar debacledebacle{% extends 'error/base.html' %} {% block body %}

{% trans %}Unauthorized{% endtrans %}

{% trans %}Sorry, you are not allowed to access this page.{% endtrans %}

{% endblock body %} sat_templates-0.7D/default/error/base.html0000644000175500017550000000040213243753417020445 0ustar debacledebacle{% extends 'base/base.html' %} {% block title %}{% trans %}Error {{error_code}}{% endtrans %}{% endblock %} {% block body %} {% trans %}An error occured while trying to access the resource.{% endtrans %} {% endblock body %} {% block footer %}{% endblock %} sat_templates-0.7D/default/error/404.html0000644000175500017550000000031613243753417020046 0ustar debacledebacle{% extends 'error/base.html' %} {% block body %}

{% trans %}Not Found{% endtrans %}

{% trans %}Sorry, we can't find the resource you are trying to access.{% endtrans %}

{% endblock body %} sat_templates-0.7D/default/base/0002755000175500017550000000000013243753417016434 5ustar debacledebaclesat_templates-0.7D/default/base/base.html0000644000175500017550000000534613243753417020242 0ustar debacledebacle{% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} {% import 'components/common.html' as component with context %} {{ script.include('common', '') }} {# common.js is a common script, so it's useful to import it here #} {% if norobots %} {% endif %} {% block title %}{{C.APP_NAME}}{% endblock %} {% if css_content is defined %} {% else %} {% for css_file in css_files %} {% endfor %} {% endif %} {% if dynamic_style is defined %} {# be extra careful about dynamic style, insure escaping if you use untrusted values ! #} {% endif %} {# JS handling #} {% if websocket is defined %} {{ script.include('websocket', '') }} {% endif %} {{ script.generate_scripts() }} {% if websocket is defined %} {% endif %} {% block favicon %} {% endblock favicon %} {% if main_menu is defined %} {% block main_menu %} {{ component.menu(main_menu, class="main_menu") }} {% endblock main_menu %} {% endif %}
{% if confirm %} {# confirmation message used when post data has been handled correctly #} {% block confirm %}
{% block confirm_message %} {% trans %}Your data has been sent correctly.{% endtrans %} {% endblock confirm_message %}
{% endblock confirm %} {% endif %}
{% block category_menu scoped %} {% if category_menu is defined %} {{ component.menu(category_menu, class="category_menu") }} {% endif %} {% endblock category_menu %} {% block body %} {% endblock body %}
{% block footer %}{% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}{% endblock %}
sat_templates-0.7D/default/ticket/0002755000175500017550000000000013243753417017005 5ustar debacledebaclesat_templates-0.7D/default/ticket/item.html0000644000175500017550000000314513243753417020632 0ustar debacledebacle{# display a single ticket @variable item(xmlui_item): ticket to display @variable comments(data_object.BlogItems): comments of the ticket @variable comments_service(unicode): service for adding comments @variable comments_node(unicode): node for adding comments #} {% set category_menu = [('tickets_list', url_tickets_list), ('ticket_new', url_tickets_new)] %} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/xmlui.html' as xmlui with context %} {% import 'blog/macros.html' as blog with context %} {% import 'input/textbox.html' as textbox with context %} {% block title %}{{item|adv_format('[{value.widget_value.id}] {value.widget_value.title}') }}{% endblock %} {% block confirm_message %} {% trans %}Your comment has been sent{% endtrans %} {% endblock confirm_message %} {% block body %}
{{ xmlui.generate(item, form=false, filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}}, )}}
{% if comments is defined %}
{{ blog.show_items(comments|reverse, expanded=true) }}
{% endif %} {% if comments_node is defined %}
{{- textbox.comment_or_login(service=comments_service, node=comments_node) -}}
{% endif %} {% endblock body %} sat_templates-0.7D/default/ticket/overview.html0000644000175500017550000000117313243753417021541 0ustar debacledebacle{# display the list of tickets #} {% set category_menu = [('ticket_new', url_tickets_new)] %} {% extends 'base/base.html' %} {% import 'input/xmlui.html' as xmlui with context %} {% block body %}
{{ xmlui.generate_list(tickets, (('id', _('Id')), ('title', _('Title')), ('labels', _('Labels'))), {'id': '[{value}]'}, item_class_fields=['status', 'priority', 'severity'], on_click=on_ticket_click) }}
{% endblock body %} sat_templates-0.7D/default/ticket/tickets.html0000644000175500017550000000044013243753417021335 0ustar debacledebacle{% extends 'base/base.html' %} {% import 'input/xmlui.html' as xmlui with context %} {% block body %}
{% for ticket in tickets %}
{{ xmlui.generate(ticket) }}
{% endfor %}
{% endblock body %} sat_templates-0.7D/default/ticket/create.html0000644000175500017550000000232113243753417021132 0ustar debacledebacle{# creata a new ticket #} {% set category_menu = [('tickets_list', url_tickets_list)] %} {% extends 'base/base.html' %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% import 'input/xmlui.html' as xmlui with context %} {% block body %}

{% trans app_name=C.APP_NAME%}This page allows you to report an issue or ask/suggest a new feature for {{app_name}}{% endtrans %}

{% call form.form() %} {{ xmlui.generate(new_ticket_xmlui, attributes = {'title': {'required': 'required', 'placeholder': _("Short description of your issue/request")}, 'body': {'required': 'required', 'placeholder': _("Please describe your issue/request with as much details as possible")}, 'labels': {'placeholder': _("You can enter one or several labels separated by commas")}, })}} {{ field.submit(_("Create ticket")) }} {% endcall %}
{% endblock body %} sat_templates-0.7D/default/blog/0002755000175500017550000000000013243753417016445 5ustar debacledebaclesat_templates-0.7D/default/blog/item.html0000644000175500017550000000753713243753417020303 0ustar debacledebacle{# display a blog item which can be expanded/retracted by clicking on it if the locale differs from item language, it will be totally reduced, and will need a click to be displayed @variable item(data_object.BlogItem): item to display @variable identities(data_object.Identities): identities which can be used to display info on item author @variable dates_format(unicode): format of the date to use (see date_fmt filter) #} {% block item %} {% if item.language and locale and locale.language != item.language %} {# we may display items in different language in a specific way #} {% set other_lang = " other_lang" %} {% endif %} {% if expanded %} {# FIXME: the style attribute is not nice, but due to the use of clicked_mh_fix. A cleaner way would be welcomed #}
{% else %}
{% endif %} {# following message is displayed if item lang is different from page locale #} {% if other_lang is defined %}

{% trans language=locale.language_name %}This message is not in {{language}}, click to display anyway{% endtrans %}

{% endif %} {# we put a reduce button at the top #}

{% trans %}Click to reduce…{% endtrans %}

{% block header %} {# title and publication date link to a HTTP page if items_http_uri is set #} {% set item_http_uri = items_http_uri.get(item.id) if items_http_uri is defined else none %}
{% block blog_title scoped %} {% set title = item.title_xhtml or item.title or '' %} {% if item_http_uri %} {{title}} {% else %} {{title}} {% endif %} {% endblock %}
{% block metadata scoped %} {% if item.tags %}
{% if tags_http_uri is defined %} {% for tag in item.tags %} {{tag}} {% endfor %} {% else %} {% for tag in item.tags %} {{tag}} {% endfor %} {% endif %}
{% endif %} {% endblock metadata %} {% endblock header %}
{% block content %} {{- item.content_xhtml or item.content|urlize or '' -}} {% endblock content %}
{# and the bottom button to expand/reduce the article #}

{% trans %}Click to expand…{% endtrans %} {% trans %}Click to reduce…{% endtrans %}

{% endblock item %} sat_templates-0.7D/default/blog/macros.html0000644000175500017550000000342213243753417020616 0ustar debacledebacle{% import 'input/textbox.html' as textbox with context %} {% macro show_items(items, comments=False, expanded=false, dates_fmt=none) %} {# show items and comments items if present after each item, then post form if allow_commenting is set @param items(BlogItems): items to show @param comments(bool): True items are comments if False, a div with "main_article" class will be added @param expanded(bool): initial state of items #} {% if dates_format is undefined %} {% set dates_format = dates_fmt or 'short' %} {% endif %} {% for item in items %} {% if not comments %}
{% endif %} {% include 'blog/item.html' %} {% if not comments %}
{% endif %} {# we recursively display comments for all comments nodes (usually there's only one) #} {% for comments_items in item.comments_items_list %}
{% if allow_commenting %}
{{- textbox.comment(service=comments_items.service, node=comments_items.node) -}}
{% endif %}
{{show_items(comments_items, comments=True)}}
{% endfor %} {% endfor %} {% endmacro %} sat_templates-0.7D/default/blog/atom.xml0000644000175500017550000000371013243753417020126 0ustar debacledebacle {% if title is defined %} {{title}} {% elif target_profile is defined %} {% trans name=target_profile%}{{name}}'s blog{% endtrans %} {% else %} {% trans app_name=C.APP_NAME%}{{app_name}} blog{% endtrans %} {% endif %} {{xmpp_uri}} {{updated|date_fmt('iso')}} {% for item in items %} {% if item.title_xhtml %} {{item.title_xhtml}} {% else %} {{item.title|default(item.content|truncate(80, True, '…'), True)}} {% endif %} {{item.uri}} {{item.updated|date_fmt('iso')}} {{item.published|date_fmt('iso')}} {{item.author}} xmpp:{{item.author_jid}} {% for tag in item.tags %} {% endfor %} {% if item.content_xhtml %}
{{item.content_xhtml}}
{% else %} {{item.content_txt}} {% endif %}
{% endfor %}
sat_templates-0.7D/default/blog/articles.html0000644000175500017550000000164213243753417021142 0ustar debacledebacle{% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% set single = items|length == 1 %} {% set dates_format='relative' if single else 'short' %} {% import 'blog/macros.html' as blog with context %} {% import 'input/navigation.html' as navigation with context %} {% block title scoped -%} {%- if single -%} {{- items[0].title|default(items[0].content, true)|truncate(60, True, '…') + ' - ' + C.APP_NAME -}} {%- else -%} {{C.APP_NAME}} {# {{- super() -}} FIXME: super() is failing if blog is embedded (i.e. base/base.html is not its direct parent) not sure what's the best way to avoid that, so just using C.APP_NAME for now #} {%- endif -%} {%- endblock title -%} {% block body %}
{{ blog.show_items(items, expanded=single) }}
{{ navigation.prev_next(_("newer articles"), _("older articles")) }} {% endblock body %} sat_templates-0.7D/default/event/0002755000175500017550000000000013243753417016643 5ustar debacledebaclesat_templates-0.7D/default/event/attendance.html0000644000175500017550000000155713243753417021645 0ustar debacledebacle{% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %}

{% trans %}Please indicate if you plan to attend the event:{% endtrans %}

{% call form.form() %} {{ field.meta("type", "attendance") }} {{ field.meta("service", event.invitees_service) }} {{ field.meta("node", event.invitees_node) }}
{{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
{{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }}
{{ field.submit() }}
{% endcall %}
sat_templates-0.7D/default/event/invitation.html0000644000175500017550000000144313243753417021715 0ustar debacledebacle{% extends 'base/base.html' %} {% block body %}

{% trans %}Welcome {{name}}{% endtrans %}

{% trans %}You have been invited to participate to an event{% endtrans %}

{% if event.image is defined %}

{% endif %}
{% if days_left is defined %} {% if days_left > 0 %}
{% trans %}{{days_left}} days left{% endtrans %}
{% else %}
{% trans %}the event is finished{% endtrans %}
{% endif %} {% endif %} {% include 'event/attendance.html' %} {% if items is defined %} {% include 'blog/articles.html' %} {% endif %} {% endblock body %} sat_templates-0.7D/default/input/0002755000175500017550000000000013243753417016661 5ustar debacledebaclesat_templates-0.7D/default/input/navigation.html0000644000175500017550000000144513243753417021710 0ustar debacledebacle{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %} {% endmacro %} sat_templates-0.7D/default/input/field.html0000644000175500017550000000415513243753417020635 0ustar debacledebacle{% macro choices(name, choices_list, checked=none) %} {% for choice, label in choices_list %}
{% endfor %} {% endmacro %} {% macro int(name, label="", init=0) %} {% endmacro %} {% macro text(name, label="", placeholder="", required=false) %} {# single line text field additional kwargs will be passed as attributes #} {% endmacro %} {% macro password(name, label="", required=false) %} {# password field additional kwargs will be passed as attributes #} {% endmacro %} {% macro email(name, label="", required=false) %} {# email field additional kwargs will be passed as attributes #} {% endmacro %} {% macro textarea(name, rows=10, cols=50, placeholder='', required=false) %} {% endmacro %} {% macro meta(name, value) %} {% endmacro %} {% macro submit(text=_("Send")) %} {% endmacro %} sat_templates-0.7D/default/input/textbox.html0000644000175500017550000000421313243753417021242 0ustar debacledebacle{% import 'input/form.html' as form with context %} {% import 'input/field.html' as field %} {% macro head(service, node, type="textbox") %} {# include data needed to identify the node to use for commenting #} {% endmacro %} {% macro submit(label=_("Send")) %} {% endmacro %} {% macro textbox(service, node, action='', placeholder='', submit_label=_("Send"), type="textbox") %} {# generic content area for comments/blog posts/etc. Only a body by default, but new elements can be added by using this macro with call #} {% set extra_content = caller() if caller is defined else '' %} {% call form.form(action=action, class="textbox") %} {{ head(service, node, type) }} {{ extra_content }} {{ field.textarea("body", placeholder=placeholder, required=True) }} {{ submit(label=submit_label) }} {% endcall %} {% endmacro %} {% macro comment(service, node, action='', placeholder=_("Your comment")) %} {{ textbox(service, node, action=action, placeholder=placeholder, type="comment") }} {% endmacro %} {% macro comment_or_login(service, node, action='', placeholder=none) %} {# show comment form a a message asking to log in login is checked using profile #} {% if profile %} {% if placeholder is none %} {{ comment(service, node, action) }} {% else %} {{ comment(service, node, action, placeholder=placeholder) }} {% endif %} {% else %}

{% trans %}You are not logged. You need to log in to comment.{% endtrans %}

{% if login_url is defined %} {% endif %}
{% endif %} {% endmacro %} sat_templates-0.7D/default/input/form.html0000644000175500017550000000042213243753417020506 0ustar debacledebacle{% macro form(action='', class='') %}
{% if csrf_token is defined %} {% endif %} {{ caller() }}
{% endmacro %} sat_templates-0.7D/default/input/xmlui.html0000644000175500017550000002166313243753417020713 0ustar debacledebacle{% import 'input/field.html' as field %} {# generate methods #} {% macro generate_container(cont, config) %} {% if cont.type == 'vertical' %} {{ vertical_container(cont, config) }} {% elif cont.type == 'pairs' %} {{ pairs_container(cont, config) }} {% elif cont.type == 'label' %} {{ label_container(cont, config) }} {% endif %} {% endmacro %} {% macro generate_widget(wid, config, id=none) %} {% if wid.type == 'text' %} {{ text_widget(wid, config, id=id) }} {% elif wid.type == 'label' %} {{ label_widget(wid, config) }} {% elif wid.type == 'string' %} {{ string_widget(wid, config, id=id) }} {% elif wid.type == 'jid' %} {# TODO: proper JID widget #} {{ string_widget(wid, config, id=id) }} {% elif wid.type == 'textbox' %} {{ textbox_widget(wid, config, id=id) }} {% elif wid.type == 'list' %} {{ list_widget(wid, config, id=id) }} {% endif %} {% endmacro %} {% macro generate_children(cont, config) %} {% for child in cont.children %} {% if child.category == 'container' %} {{ generate_container(child, config) }} {% else %} {{ generate_widget(child, config) }} {% endif %} {% endfor %} {% endmacro %} {% macro generate(xmlui, form=true, filters=none, attributes=none) %} {# generate HTML from XMLUI @param xmlui(template_xmlui.XMLUIPanel): xmlui to use @param form(bool): if true will generate form elements @param filters(dict,none): filters as expected by item_filter @param attributes(dict,none): extra attributes to put on named widgets #} {% set config = {'form':form, 'filters':filters or {}, 'attrs': attributes or {}} %} {{ generate_container(xmlui.main_cont, config) }} {% endmacro %} {% macro generate_table(xmlui_items, fields, formatters, tr_class_fields, on_click) %} {# generate a HTML table from requested widgets names @param xmlui_items(iterable[unicode]): list of xmlui to show (one per row) @param fields(tuple[unicode,unicode]): fields to show (name, label) @param formatters(dict): dictionary of templates to format values: field_name => template if no formatter is set (or None is used) for a field, it will be used unmodified. current xmlui items will be set as "item" key @param tr_class_fields(iterable[unicode]): name of fields to use as class class will be "{name}_{value}" where name is field name, and value field value all lowercase/stripped @param on_click(data_objects.OnClick): thing to do when clicking on a row #} {% if formatters is undefined %} {% set formatters = {} %} {% endif %} {% if on_click is undefined %} {% set on_click = {} %} {% endif %} {% for name,label in fields %} {% endfor %} {% for xmlui in xmlui_items %} {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %} {% for name,label in fields %} {% endfor %} {% endfor %}
{{ label }}
{% for value in xmlui.widgets[name].values %} {{ value|adv_format(formatters.get(name),item=xmlui.widget_value) }} {% endfor %}
{% endmacro %} {% macro generate_list(xmlui_items, fields, formatters, item_class_fields, on_click) %} {# generate a list of rendered XMLUI from requested widgets names very similar to generate_table but generate a list instead of a tabme @param xmlui_items(iterable[unicode]): list of xmlui to show @param fields(tuple[unicode,unicode]): fields to show (name, label) @param formatters(dict): dictionary of templates to format values: field_name => template if no formatter is set (or None is used) for a field, it will be used unmodified. current xmlui items will be set as "item" key for the template @param item_class_fields(iterable[unicode]): name of fields to use as class class will be "{name}_{value}" where name is field name, and value field value all lowercase/stripped @param on_click(data_objects.OnClick): thing to do when clicking on a row #} {% if formatters is undefined %} {% set formatters = {} %} {% endif %} {% if on_click is undefined %} {% set on_click = {} %} {% endif %} {% endmacro %} {# containers #} {% macro vertical_container(cont, config) %}
{{ generate_children(cont, config) }}
{% endmacro %} {% macro pairs_container(cont, config) %} {# TODO: proper impelmentation (do the same as vertical container for now #}
{{ generate_children(cont, config) }}
{% endmacro %} {% macro label_container(cont, config) %}
{% for child in cont.children %} {% if loop.index is odd %} {# label #} {% if child.type == 'label' %} {% set for_ = ('wid_' + (child.for_name or child.name or '_noname'))|next_gidx %} {{ label_widget(child, config, for=for_) }} {% endif %} {% else %} {# widget #} {% set id = ('wid_' + (child.name or '_noname'))|cur_gidx %} {{ generate_widget(child, config, id=id) }} {% endif %} {% endfor %}
{% endmacro %} {# widgets #} {% macro text_widget(wid, config, id=none) %}

{{- wid|item_filter(config.filters)|default('\u00A0',true) -}}

{% endmacro%} {% macro label_widget(wid, config, for=none) %} {% if config.form %} {% else %} {{wid|item_filter(config.filters)}} {% endif %} {% endmacro%} {% macro string_widget(wid, config, id=none) %} {% if config.form %} {% else %}
{{- wid|item_filter(config.filters)|default('\u00A0',true) -}}
{% endif %} {% endmacro%} {% macro textbox_widget(wid, config, id=none) %} {% if config.form %} {% else %}

{{- wid|item_filter(config.filters) -}}

{% endif %} {% endmacro%} {% macro list_widget(wid, config, id=none) %} {% if config.form %} {% else %}
{% for value,label in wid.items %} {{- label -}} {% endfor %}
{% endif %} {% endmacro%}