summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/auth/login.html (renamed from apioforum/templates/auth/login.html.j2)2
-rw-r--r--apioforum/templates/auth/register.html (renamed from apioforum/templates/auth/register.html.j2)2
-rw-r--r--apioforum/templates/base.html (renamed from apioforum/templates/base.html.j2)0
-rw-r--r--apioforum/templates/view_forum.html (renamed from apioforum/templates/view_forum.html.j2)4
-rw-r--r--apioforum/templates/view_thread.html18
5 files changed, 22 insertions, 4 deletions
diff --git a/apioforum/templates/auth/login.html.j2 b/apioforum/templates/auth/login.html
index c8c67b4..c0a2eed 100644
--- a/apioforum/templates/auth/login.html.j2
+++ b/apioforum/templates/auth/login.html
@@ -1,4 +1,4 @@
-{% extends "base.html.j2" %}
+{% extends "base.html" %}
{% block header %}
<h1>{% block title %}login{% endblock %}</h1>
{% endblock %}
diff --git a/apioforum/templates/auth/register.html.j2 b/apioforum/templates/auth/register.html
index f7eab81..716fa1d 100644
--- a/apioforum/templates/auth/register.html.j2
+++ b/apioforum/templates/auth/register.html
@@ -1,4 +1,4 @@
-{% extends "base.html.j2" %}
+{% extends "base.html" %}
{% block header %}
<h1>{% block title %}register{% endblock %}</h1>
{% endblock %}
diff --git a/apioforum/templates/base.html.j2 b/apioforum/templates/base.html
index 6660686..6660686 100644
--- a/apioforum/templates/base.html.j2
+++ b/apioforum/templates/base.html
diff --git a/apioforum/templates/view_forum.html.j2 b/apioforum/templates/view_forum.html
index fe14652..2140c7a 100644
--- a/apioforum/templates/view_forum.html.j2
+++ b/apioforum/templates/view_forum.html
@@ -1,4 +1,4 @@
-{% extends 'base.html.j2' %}
+{% extends 'base.html' %}
{% block header %}<h1>{% block title %}apio forum george etc{%endblock%}</h1>{%endblock%}
{%block content%}
<p>the</p>
@@ -13,7 +13,7 @@
{%for thread in threads%}
<tr>
<td>#{{thread.id}}</td>
- <td><a href="#">{{thread.title}}</a></td>
+ <td><a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">{{thread.title}}</a></td>
<td>{{thread.creator}}</td>
<td>{{thread.created}}</td>
<td>{{thread.updated}}</td>
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html
new file mode 100644
index 0000000..34faeea
--- /dev/null
+++ b/apioforum/templates/view_thread.html
@@ -0,0 +1,18 @@
+{% extends 'base.html' %}
+{% block header %}
+<h1>{%block title %}thread{% endblock %}</h1>
+{% endblock %}
+
+{%block content%}
+<h2>{{thread.title}}</h2>
+<p>by {{thread.creator}}</p>
+<dl>
+{% for post in posts %}
+<dt>{{post.author}}</dt>
+<dd>{{post.content}}</dd>
+{% else %}
+<dt>there weren't</dt>
+<dd>any posts</dd>
+{% endfor %}
+</dl>
+{% endblock %}