summaryrefslogtreecommitdiff
path: root/commentingapp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'commentingapp/templates')
-rw-r--r--commentingapp/templates/commenting.html53
-rw-r--r--commentingapp/templates/notified.html14
2 files changed, 67 insertions, 0 deletions
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 %}
+ <h3><center> TBC Commenting </center></h3>
+ <h5> Hi <u> <b>{{user}} </b> </u> </h5>
+
+
+ {% if not url_context %}
+ <center><h4> There are no new comments </h4></center>
+ {% else %}
+
+ <form name = "Send Email" action = "{% url 'commentingapp.views.commenting' %}" method = "POST">
+ {% csrf_token %}
+ <table id = "comment-table" border = 2 align = "center" style="empty-cells:hide;">
+ <tr>
+ <th> Sr. no </th>
+ <th > Url </th>
+ <th colspan = ""> Comments </th>
+ </tr>
+
+ {% for urls in url_context %}
+ <tr>
+ <td colspan = ""> {{ forloop.counter }}</td>
+ <td id = "urls" colspan = ""><a href = "{{ urls.url }}"> {{ urls.url }} </a> </td>
+ <ul>
+ <td >
+ {% for comments in urls.comments_set.all %}
+ {% if comments.is_notified == 0 %}
+ <li>
+ {{comments.comments}}
+ </li>
+ <input type = "checkbox" name = "comment" value = "{{ urls.url }}, {{comments.comments}}"></input>
+ {% endif %}
+ {% endfor %}
+
+ </td>
+ </tr>
+ </ul>
+
+
+ {% endfor %}
+ </table>
+
+
+ <p> <input class = "btn" type = "submit" value = "Submit" style = "center"> </input></p>
+
+ </form>
+{% 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 %}
+
+<body>
+
+{% csrf_token %}
+<h5> {{ notified_comments }} </h5>
+<p></p>
+<p> <a href = "{% url 'commentingapp.views.commenting' %}"> << Go back to Commenting Page </a></p>
+
+</body>
+{% endblock %}