From 3a680b5d2442268ab117c0f98f21a039d4544bd8 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Wed, 11 Dec 2013 15:31:24 +0530 Subject: base one --- static/website/templates/base.html | 14 ++++++++--- static/website/templates/get-question.html | 23 +++++------------- static/website/templates/index.html | 30 +++++++++++++++++++++-- static/website/templates/notifications.html | 33 +++++++++++++++++++++++++ static/website/templates/notify.html | 7 ++++++ static/website/templates/user-questions.html | 36 ++++++++++++++++++++++++++++ static/website/templates/user-replies.html | 36 ++++++++++++++++++++++++++++ 7 files changed, 157 insertions(+), 22 deletions(-) create mode 100644 static/website/templates/notifications.html create mode 100644 static/website/templates/notify.html create mode 100644 static/website/templates/user-questions.html create mode 100644 static/website/templates/user-replies.html (limited to 'static/website/templates') diff --git a/static/website/templates/base.html b/static/website/templates/base.html index 5e397e8..c71e3ef 100644 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -39,9 +39,17 @@ {{ user }} diff --git a/static/website/templates/get-question.html b/static/website/templates/get-question.html index 5e68aed..bd63d02 100644 --- a/static/website/templates/get-question.html +++ b/static/website/templates/get-question.html @@ -2,13 +2,13 @@ {% load static %} {% load widget_tweaks %} {% block content %} -
+
-
+
{{ question.body|safe }}

@@ -48,7 +48,7 @@ {% ifequal question.uid|stringformat:'s' user.id|stringformat:'s' %} Edit - Save + Save {% endifequal %} @@ -65,7 +65,7 @@
{% for reply in replies %} -
+
{{ reply.body|safe }} @@ -78,7 +78,7 @@ {% ifequal reply.uid|stringformat:'s' user.id|stringformat:'s' %} Edit - Save + Save {% endifequal %}
@@ -111,16 +111,5 @@ {% endblock %} {% block javascript %} - {% if user.is_authenticated %} - {% ifequal question.user|stringformat:"s" user|stringformat:"s" %} - - {% else %} - - - {% endifequal %} - {% endif %} + {% endblock %} diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 43d98f0..ef840bc 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -1,5 +1,6 @@ {% extends 'website/templates/base.html' %} {% block content %} +{% load count_tags %}

Recent Questions

{% for question in questions %}
@@ -39,9 +40,34 @@ - - {{ question.user }} + + + + {{ question.date_created }} + + + + + {{ question.user }} +
{% endfor %} + + {% if total > 10 %} + + {% endif %} + {% endblock %} diff --git a/static/website/templates/notifications.html b/static/website/templates/notifications.html new file mode 100644 index 0000000..aa3adce --- /dev/null +++ b/static/website/templates/notifications.html @@ -0,0 +1,33 @@ +{% extends 'website/templates/base.html' %} +{% load notify %} +{% block content%} +

Notifications

+ + Clear All + +
+ {% for notification in notifications %} + {% get_notification notification.id %} + {% endfor %} +{% endblock %} + +{% block javascript %} + +{% endblock %} diff --git a/static/website/templates/notify.html b/static/website/templates/notify.html new file mode 100644 index 0000000..7251f1b --- /dev/null +++ b/static/website/templates/notify.html @@ -0,0 +1,7 @@ + diff --git a/static/website/templates/user-questions.html b/static/website/templates/user-questions.html new file mode 100644 index 0000000..e3d2ab6 --- /dev/null +++ b/static/website/templates/user-questions.html @@ -0,0 +1,36 @@ +{% extends 'website/templates/base.html' %} +{% load count_tags %} +{% block content %} +

My Questions

+ {% for question in questions %} +
+ + {{ question.title }} + +
+ + + Asked on: + {{ question.date_created }} + + +
+ {% endfor %} + + {% if total > 10 %} + + {% endif %} + +{% endblock %} diff --git a/static/website/templates/user-replies.html b/static/website/templates/user-replies.html new file mode 100644 index 0000000..c31b854 --- /dev/null +++ b/static/website/templates/user-replies.html @@ -0,0 +1,36 @@ +{% extends 'website/templates/base.html' %} +{% load count_tags %} +{% block content %} +

My Replies

+ {% for reply in replies%} +
+ + {{ reply.body|safe }} + +
+ + + Replied on: + {{ reply.date_created }} + + +
+ {% endfor %} + + {% if total > 10 %} + + {% endif %} + +{% endblock %} -- cgit