Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 1 | {% extends "html/page.html" %} |
| 2 | |
| 3 | {% block javascript %} |
| 4 | {% include "js/blog_page.js" %} |
| 5 | {% endblock %} |
| 6 | |
| 7 | {% block css %} |
| 8 | {% include "css/blog_page.css" %} |
| 9 | {% endblock %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 10 | |
| 11 | {% block content %} |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame^] | 12 | <div class="span12"> |
| 13 | <h2>{{ title }}</h2> |
Anand Doshi | 72c945b | 2012-06-22 20:01:07 +0530 | [diff] [blame] | 14 | |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame^] | 15 | <!-- begin blog content --> |
| 16 | <div class="help">By {{ full_name }} on {{ updated }}</div> |
| 17 | <br> |
| 18 | {{ content_html }} |
| 19 | <!-- end blog content --> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 20 | |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame^] | 21 | <hr> |
| 22 | <h3>Comments</h3><br> |
| 23 | <div class="blog-comments"> |
| 24 | |
| 25 | {% if not comment_list %} |
| 26 | <div class="alert no-comment"> |
| 27 | <p>Be the first one to comment</p> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 28 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame^] | 29 | {% endif %} |
| 30 | |
| 31 | {% include 'html/comment.html' %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 32 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame^] | 33 | <div><button class="btn add-comment">Add Comment</button></div> |
| 34 | <div style="display: none; margin-top: 10px;" |
| 35 | id="comment-form" class="well"> |
| 36 | <div class="alert" style="display:none;"></div> |
| 37 | <form> |
| 38 | <p> |
| 39 | <input name="comment_by_fullname" placeholder="Your Name" /> |
| 40 | </p> |
| 41 | <p> |
| 42 | <input name="comment_by" placeholder="Your Email Id" /> |
| 43 | </p> |
| 44 | <p> |
| 45 | <textarea name="comment" placeholder="Comment" style="width: 300px; height: 120px;"/> |
| 46 | </textarea> |
| 47 | </p> |
| 48 | <p> |
| 49 | <button class="btn btn-info" id="submit-comment">Submit</button> |
| 50 | </form> |
| 51 | </div> |
| 52 | </div> |
Anand Doshi | 72c945b | 2012-06-22 20:01:07 +0530 | [diff] [blame] | 53 | {% endblock %} |