From 81a1802ae9bdd0aca461cbc38bb3bd7f934de8b3 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Sun, 24 Nov 2013 01:55:26 +0530 Subject: initial commit --- static/website/templates/base.html | 74 +++++++++++++++++++++++++++ static/website/templates/fetch_posts.html | 9 ++++ static/website/templates/fetch_tutorials.html | 9 ++++ static/website/templates/get_post.html | 12 +++++ static/website/templates/index.html | 12 +++++ static/website/templates/recent_posts.html | 5 ++ 6 files changed, 121 insertions(+) create mode 100644 static/website/templates/base.html create mode 100644 static/website/templates/fetch_posts.html create mode 100644 static/website/templates/fetch_tutorials.html create mode 100644 static/website/templates/get_post.html create mode 100644 static/website/templates/index.html create mode 100644 static/website/templates/recent_posts.html (limited to 'static/website/templates') diff --git a/static/website/templates/base.html b/static/website/templates/base.html new file mode 100644 index 0000000..dd81da9 --- /dev/null +++ b/static/website/templates/base.html @@ -0,0 +1,74 @@ +{% load static %} + + + Spoken-Tutorial Forums + + + + +
+
+ +
+
+ +
+
+
+ {% block content %} + {% endblock %} +
+ + +
+
+ + + + + + + diff --git a/static/website/templates/fetch_posts.html b/static/website/templates/fetch_posts.html new file mode 100644 index 0000000..d6d4e06 --- /dev/null +++ b/static/website/templates/fetch_posts.html @@ -0,0 +1,9 @@ +{% extends 'website/templates/base.html' %} +{% block content %} +{{ category }}, {{ tutorial }} +
+Number of posts: {{ posts|length }}
+{% for post in posts %} + {{ post.title }} +{% endfor %} +{% endblock %} diff --git a/static/website/templates/fetch_tutorials.html b/static/website/templates/fetch_tutorials.html new file mode 100644 index 0000000..524930f --- /dev/null +++ b/static/website/templates/fetch_tutorials.html @@ -0,0 +1,9 @@ +{% extends 'website/templates/base.html' %} +{% block content %} +{% for tut in tutorials %} + + {{tut.tutorial_name}} + +
+{% endfor %} +{% endblock %} diff --git a/static/website/templates/get_post.html b/static/website/templates/get_post.html new file mode 100644 index 0000000..359bcd2 --- /dev/null +++ b/static/website/templates/get_post.html @@ -0,0 +1,12 @@ +{% extends 'website/templates/base.html' %} +{% block content %} +

{{post.title}}

+

+ {{ post.body }} +

+ +Replies +{% for reply in replies %} + {{ reply.body }} +{% endfor %} +{% endblock %} diff --git a/static/website/templates/index.html b/static/website/templates/index.html new file mode 100644 index 0000000..b936643 --- /dev/null +++ b/static/website/templates/index.html @@ -0,0 +1,12 @@ +{% extends 'website/templates/base.html' %} +{% block content %} +{% for category in categories %} +
+ {{ category }} +
+ {% load count_tags %} + Count = {% category_post_count category %} +
+{% endfor %} +
+{% endblock %} diff --git a/static/website/templates/recent_posts.html b/static/website/templates/recent_posts.html new file mode 100644 index 0000000..3b6ad0e --- /dev/null +++ b/static/website/templates/recent_posts.html @@ -0,0 +1,5 @@ + -- cgit