mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
add a demo feature (see #16)
This commit is contained in:
parent
5be9b2a0ce
commit
b941248662
2 changed files with 7 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<div class="slide">
|
<div class="slide">
|
||||||
<h1><span>Manage your shared <br>expenses easily</span></h1>
|
<h1><span>Manage your shared <br>expenses easily</span></h1>
|
||||||
<a href="about.html" class="about_link">Try out the demo</a>
|
<a href="{{ url_for("demo") }}" class="about_link">Try out the demo</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -123,6 +123,12 @@ def exit():
|
||||||
session.clear()
|
session.clear()
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("home"))
|
||||||
|
|
||||||
|
@app.route("/demo")
|
||||||
|
def demo():
|
||||||
|
project = Project.query.get("demo")
|
||||||
|
session[project.id] = project.password
|
||||||
|
return redirect(url_for("list_bills", project_id=project.id))
|
||||||
|
|
||||||
@app.route("/<project_id>/invite", methods=["GET", "POST"])
|
@app.route("/<project_id>/invite", methods=["GET", "POST"])
|
||||||
def invite():
|
def invite():
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue