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 --> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 16 | <div class="help" style="color: #aaa"> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 17 | {{ blogger_info and blogger_info.full_name or full_name }} / {{ updated }}</div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 18 | <br> |
| 19 | {{ content_html }} |
| 20 | <!-- end blog content --> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 21 | {% if blogger_info %} |
| 22 | <hr /> |
Rushabh Mehta | 1dd3301 | 2013-03-08 11:00:18 +0530 | [diff] [blame^] | 23 | {% include "html/blogger.html" %} |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 24 | {% endif %} |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 25 | <hr> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 26 | <h3>{{ texts.comments }}</h3><br> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 27 | <div class="blog-comments"> |
| 28 | |
| 29 | {% if not comment_list %} |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 30 | <div class="no-comment"> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 31 | <p>{{ texts.first_comment }}</p> |
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 | {% endif %} |
| 34 | |
| 35 | {% include 'html/comment.html' %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 36 | </div> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 37 | <div><button class="btn add-comment">{{ texts.add_comment }}</button></div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 38 | <div style="display: none; margin-top: 10px;" |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 39 | id="comment-form"> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 40 | <div class="alert" style="display:none;"></div> |
| 41 | <form> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 42 | <fieldset> |
| 43 | <input name="comment_by_fullname" placeholder="Your Name" type="text"/><br> |
| 44 | <input name="comment_by" placeholder="Your Email Id" type="text"/><br> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 45 | <textarea name="comment" placeholder="Comment" style="width: 300px; height: 120px;"/> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 46 | </textarea><br> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 47 | <button class="btn btn-info" id="submit-comment">{{ texts.submit }}</button> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 48 | </fieldset> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 49 | </form> |
| 50 | </div> |
| 51 | </div> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 52 | {% include 'html/blog_footer.html' %} |
Anand Doshi | 72c945b | 2012-06-22 20:01:07 +0530 | [diff] [blame] | 53 | {% endblock %} |