Dashboard
+Your personal dashboard
+diff --git a/site.py b/site.py
index 4d63c8c..5869ec8 100644
--- a/site.py
+++ b/site.py
@@ -75,6 +75,13 @@ def settings():
database.tradd(twapi_login(session).me().id, request.form["trtoken"])
return render_template("settings.html", login = True, trlogin = is_trlogin(session), trloginfail = trloginfail)
+@app.route("/dashboard")
+def dashboard():
+ if not is_twlogin(session):
+ return redirect("/")
+
+ return render_template("dashboard.html", login = True, tweets = ["test1", "test2", "test3"], timeline = [{"id": 1, "text": "test1"}, {"id": 2, "text": "test2"}, {"id": 3, "text": "test3"}, {"id": 4, "text": "test4"}])
+
@app.route("/twpost")
def twpost():
if is_twlogin(session):
diff --git a/templates/dashboard.html b/templates/dashboard.html
new file mode 100644
index 0000000..5ebf1ce
--- /dev/null
+++ b/templates/dashboard.html
@@ -0,0 +1,64 @@
+{% extends "template.html" %}
+{% block content %}
+
+
+ Your personal dashboardDashboard
+
Manage your commissions was never so easy with with the Cyberplanificateur
diff --git a/templates/settings.html b/templates/settings.html index 8be1dbc..c4495bd 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -5,7 +5,7 @@Aliquam ut ex ut interdum donec amet imperdiet eleifend
+Account settings of Cyberplanificateur