Demo mode (VISA_DEMO=1) for demoapp.lannadesk.com
For a public demo: no login on any address, everyone is "Demo visitor" (actor demo), a note at the top of every page, the back office's and the client's (#demo-note), and the invented demo data added at start when the database is empty (the server drops it every night). Every file upload is refused with a message (documents, the office photo, the client's uploads; a contract version keeps its text without the file), a mail server in its settings is refused, so nothing leaves it, and it needs a place for the files and their key (the demo's own files and the signed copies). seed-demo also runs in it. Sign out leads home. Checked: config test (address, files, no mail), tests/demo.rs (the note, an upload refused and nothing kept, a version with text only, the journal's actor), a local run on an empty database (seeds itself: 27 documents, the clients and contracts) and screenshots light and dark, desk and phone (PROBLEMS: 0).
This commit is contained in:
1 parent
422ee2ec2c
commit
329b181c4f
13 files changed
+265
-26
No files matched your search
+6
-1
@@ -37,7 +37,11 @@
|
||||
<a href="/notifications"{% if nav == "notifications" %} class="on" aria-current="page"{% endif %}>Notifications</a>
|
||||
</nav>
|
||||
<div class="who">
|
||||
{% if user.local %}
|
||||
{% if demo %}
|
||||
<span class="k">Demo</span>
|
||||
<b>No login</b>
|
||||
<p>Everyone here is a demo visitor. The people, companies and contracts are invented.</p>
|
||||
{% elif user.local %}
|
||||
<span class="k">Local development</span>
|
||||
<b>No login</b>
|
||||
<p>VISA_INSECURE_NO_LOGIN is set; this only runs on a loopback address.</p>
|
||||
@@ -50,6 +54,7 @@
|
||||
</div>
|
||||
</aside>
|
||||
<main id="main">
|
||||
{% if demo %}<p class="demo-note" id="demo-note"><b>Demo.</b> Everything here is invented. Add, change and sign what you like: it all starts over every night. Uploads and mail are off.</p>{% endif %}
|
||||
{% block main %}{% endblock %}
|
||||
<footer class="ft">Lanna Desk {{ version }}{% if commit %}, commit {% if commit_url %}<a href="{{ commit_url }}">{{ commit }}</a>{% else %}{{ commit }}{% endif %}{% endif %}. Every view and change of a person's record is written to the Activity log. Dates are in Chiang Mai time.</footer>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user