Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 1 | {% extends "app/website/templates/html/page.html" %} |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 2 | |
| 3 | {% block javascript %} |
Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 4 | {% include "app/website/templates/js/blog_page.js" %} |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 5 | {% endblock %} |
| 6 | |
| 7 | {% block css %} |
Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 8 | {% include "app/website/templates/css/blog_page.css" %} |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 9 | {% endblock %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 10 | |
| 11 | {% block content %} |
Rushabh Mehta | d6c8235 | 2013-04-18 17:43:21 +0530 | [diff] [blame] | 12 | <div class="col-span-12" itemscope itemtype="http://schema.org/BlogPost"> |
Rushabh Mehta | b33693d | 2013-03-11 17:57:57 +0530 | [diff] [blame] | 13 | <h2 itemprop="name headline">{{ 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 | b33693d | 2013-03-11 17:57:57 +0530 | [diff] [blame] | 17 | <span itemprop="author">{{ blogger_info and blogger_info.full_name or full_name }}</span> / |
| 18 | <span itemprop="dateCreated">{{ updated }}</span></div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 19 | <br> |
Rushabh Mehta | b33693d | 2013-03-11 17:57:57 +0530 | [diff] [blame] | 20 | <div itemprop="articleBody"> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 21 | {{ content_html }} |
Rushabh Mehta | b33693d | 2013-03-11 17:57:57 +0530 | [diff] [blame] | 22 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 23 | <!-- end blog content --> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 24 | {% if blogger_info %} |
| 25 | <hr /> |
Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 26 | {% include "app/website/templates/html/blogger.html" %} |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 27 | {% endif %} |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 28 | <hr> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 29 | <h3>{{ texts.comments }}</h3><br> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 30 | <div class="blog-comments"> |
| 31 | |
| 32 | {% if not comment_list %} |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 33 | <div class="no-comment"> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 34 | <p>{{ texts.first_comment }}</p> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 35 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 36 | {% endif %} |
| 37 | |
Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 38 | {% include 'app/website/templates/html/comment.html' %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 39 | </div> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 40 | <div><button class="btn add-comment">{{ texts.add_comment }}</button></div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 41 | <div style="display: none; margin-top: 10px;" |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 42 | id="comment-form"> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 43 | <div class="alert" style="display:none;"></div> |
| 44 | <form> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 45 | <fieldset> |
| 46 | <input name="comment_by_fullname" placeholder="Your Name" type="text"/><br> |
| 47 | <input name="comment_by" placeholder="Your Email Id" type="text"/><br> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 48 | <textarea name="comment" placeholder="Comment" style="width: 300px; height: 120px;"/> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 49 | </textarea><br> |
Rushabh Mehta | a2deb68 | 2013-03-08 10:44:25 +0530 | [diff] [blame] | 50 | <button class="btn btn-info" id="submit-comment">{{ texts.submit }}</button> |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame] | 51 | </fieldset> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 52 | </form> |
| 53 | </div> |
| 54 | </div> |
Rushabh Mehta | 3023a8f | 2013-04-03 16:34:23 +0530 | [diff] [blame] | 55 | {% include 'app/website/templates/html/blog_footer.html' %} |
Anand Doshi | 72c945b | 2012-06-22 20:01:07 +0530 | [diff] [blame] | 56 | {% endblock %} |