From d81c23caed659d34747b82a03fcef1d1c5866cd0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 4 Oct 2018 00:24:50 +0200 Subject: [PATCH] vfargr --- telegrambot.py | 4 +++- templates/ritual.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 templates/ritual.html diff --git a/telegrambot.py b/telegrambot.py index 9b002a40..748f5d65 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -212,7 +212,9 @@ def cmd_diario(bot: Bot, update: Update): text=text) session.add(diario) session.commit() - bot.send_message(update.message.chat.id, f"✅ Aggiunto al diario!") + bot.send_message(update.message.chat.id, + f"✅ Riga [#{diario.id}](https://ryg.steffo.eu/diario#entry-{diario.id}) aggiunta al diario!", + parse_mode="Markdown", disable_web_page_preview=True) except Exception: raise finally: diff --git a/templates/ritual.html b/templates/ritual.html new file mode 100644 index 00000000..9aa465cf --- /dev/null +++ b/templates/ritual.html @@ -0,0 +1,29 @@ +{% extends 'base.html' %} + +{% block pagetitle %} + Rituale {{ n }} +{% endblock %} + +{% block body %} +

+ Rituale {{ n }} +

+
+
+ {% if n == 1 %} + {% elif n == 2 %} + {% elif n == 3 %} + {% elif n == 4 %} + {% elif n == 5 %} + {% elif n == 6 %} + {% elif n == 7 %} + {% elif n == 8 %} + {% elif n == 9 %} + {% elif n == 10 %} + {% endif %} +
+
+ +
+
+{% endblock %} \ No newline at end of file