From 806108aca8fa91849bf10020934dd5d990d3bd50 Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 1 Apr 2016 02:14:45 +0530 Subject: disqus commenting app, which fetches, displays and notifies contributors --- commentingapp/templates/commenting.html | 53 +++++++++++++++++++++++++++++++++ commentingapp/templates/notified.html | 14 +++++++++ 2 files changed, 67 insertions(+) create mode 100644 commentingapp/templates/commenting.html create mode 100644 commentingapp/templates/notified.html (limited to 'commentingapp/templates') diff --git a/commentingapp/templates/commenting.html b/commentingapp/templates/commenting.html new file mode 100644 index 0000000..4fff5b8 --- /dev/null +++ b/commentingapp/templates/commenting.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} + + {% block title %} TBC Commenting {% endblock %} + +{% block content %} +

TBC Commenting

+
Hi {{user}}
+ + + {% if not url_context %} +

There are no new comments

+ {% else %} + +
+ {% csrf_token %} + + + + + + + + {% for urls in url_context %} + + + + + + + + + {% endfor %} +
Sr. no Url Comments
{{ forloop.counter }} {{ urls.url }} + {% for comments in urls.comments_set.all %} + {% if comments.is_notified == 0 %} +
  • + {{comments.comments}} +
  • + + {% endif %} + {% endfor %} + +
    + + +

    + +
    +{% endif %} + +{% endblock %} + diff --git a/commentingapp/templates/notified.html b/commentingapp/templates/notified.html new file mode 100644 index 0000000..c062d3f --- /dev/null +++ b/commentingapp/templates/notified.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block title %} Success {% endblock %} + +{% block content %} + + + +{% csrf_token %} +
    {{ notified_comments }}
    +

    +

    << Go back to Commenting Page

    + + +{% endblock %} -- cgit From 42bd8594b84a20b9be75c4bdadb490209e0fee81 Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 15 Apr 2016 13:50:51 +0530 Subject: added direct link to go disqus admin page --- commentingapp/templates/commenting.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commentingapp/templates') diff --git a/commentingapp/templates/commenting.html b/commentingapp/templates/commenting.html index 4fff5b8..81961a8 100644 --- a/commentingapp/templates/commenting.html +++ b/commentingapp/templates/commenting.html @@ -4,8 +4,8 @@ {% block content %}

    TBC Commenting

    -
    Hi {{user}}
    - +
    Hi {{user}}

    + Go to Disqus admin Page {% if not url_context %}

    There are no new comments

    -- cgit From 664919e0ac7c586b27f6eb862c885a75ab62d8ef Mon Sep 17 00:00:00 2001 From: mahesh Date: Fri, 15 Apr 2016 13:54:15 +0530 Subject: url link will open a new tab --- commentingapp/templates/commenting.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commentingapp/templates') diff --git a/commentingapp/templates/commenting.html b/commentingapp/templates/commenting.html index 81961a8..09ae53f 100644 --- a/commentingapp/templates/commenting.html +++ b/commentingapp/templates/commenting.html @@ -23,7 +23,7 @@ {% for urls in url_context %} {{ forloop.counter }} - {{ urls.url }} + {{ urls.url }}