diff --git a/run.py b/run.py
index 735dfdf..520e9ac 100644
--- a/run.py
+++ b/run.py
@@ -14,6 +14,7 @@ from stacosys.core.mailer import Mailer
from stacosys.interface import app
from stacosys.interface import api
from stacosys.interface import form
+from stacosys.interface import webadmin
from stacosys.interface import scheduler
@@ -106,7 +107,7 @@ def stacosys_server(config_pathname):
# inject config parameters into flask
app.config.update(SITE_REDIRECT=conf.get(ConfigParameter.SITE_REDIRECT))
- logger.info(f"start interfaces {api} {form}")
+ logger.info(f"start interfaces {api} {form} {webadmin}")
# start Flask
app.run(
diff --git a/stacosys/core/templater.py b/stacosys/core/templater.py
index d3d4564..9b00964 100644
--- a/stacosys/core/templater.py
+++ b/stacosys/core/templater.py
@@ -11,6 +11,7 @@ class Template(Enum):
NEW_COMMENT = "new_comment"
NOTIFY_MESSAGE = "notify_message"
RSS_TITLE_MESSAGE = "rss_title_message"
+ WEB_COMMENT_APPROVAL = "web_comment_approval"
class Templater:
diff --git a/stacosys/interface/webadmin.py b/stacosys/interface/webadmin.py
new file mode 100644
index 0000000..5f0ca50
--- /dev/null
+++ b/stacosys/interface/webadmin.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import logging
+import os
+from stacosys.core.templater import Templater, Template
+
+from flask import jsonify, request
+from flask import render_template
+
+from stacosys.db import dao
+from stacosys.interface import app
+
+logger = logging.getLogger(__name__)
+
+
+current_path = os.path.dirname(__file__)
+template_path = os.path.abspath(os.path.join(current_path, "../templates"))
+templater = Templater(template_path)
+
+@app.route("/web/comment", methods=["GET"])
+def web_comment_approval():
+ lang = "fr"
+ return templater.get_template(lang, Template.WEB_COMMENT_APPROVAL).render(
+ name="Yax")
+
+
+
diff --git a/stacosys/templates/fr/web_comment_approval.tpl b/stacosys/templates/fr/web_comment_approval.tpl
new file mode 100644
index 0000000..9f16c78
--- /dev/null
+++ b/stacosys/templates/fr/web_comment_approval.tpl
@@ -0,0 +1,41 @@
+
+
+
+
+
+Stacosys
+
+
+
+
+ Modération des commentaires
+
+
+
+
+
+
+ Auteur
+ Commentaire
+ Article
+ Actions
+
+
+
+
+ Gégé
+ Merci pour ce commentaire ! Malheureusement je n'ai pas utilisé Isso suffisamment longtemps pour être en capacité de vous aider avec MathJax. Suite à cet [évènement](https://blogduyax.madyanne.fr/2019/je-vous-lavais-bien-dit/) je suis revenu à [mon ancestral système de commentaires](https://blogduyax.madyanne.fr/2020/bilan-hebergement-2020/).
+ /2019/refonte-complete-du-blog/
+
+ Accepter
+ Rejeter
+
+
+
+
+
+
+
+
\ No newline at end of file