diff options
author | Prashant S | 2017-04-19 12:29:19 +0530 |
---|---|---|
committer | GitHub | 2017-04-19 12:29:19 +0530 |
commit | 08a2e9f82f87b4789c6ac3ae56087236586cb7e2 (patch) | |
tree | 6655a1e7291dd42d15f8fb441a8f93520bf622c1 /static/website | |
parent | e9751c920991810b71d7a2dcb25842fe5c1a03ed (diff) | |
parent | 4c7fc05e5c05b8c4921539809c91a70bd45d2664 (diff) | |
download | pyfoss-08a2e9f82f87b4789c6ac3ae56087236586cb7e2.tar.gz pyfoss-08a2e9f82f87b4789c6ac3ae56087236586cb7e2.tar.bz2 pyfoss-08a2e9f82f87b4789c6ac3ae56087236586cb7e2.zip |
Merge pull request #2 from prashantsinalkar/master
added list of textbooks and simplified the code
Diffstat (limited to 'static/website')
-rw-r--r-- | static/website/templates/page.html | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/static/website/templates/page.html b/static/website/templates/page.html index f9f3eb0..2d41715 100644 --- a/static/website/templates/page.html +++ b/static/website/templates/page.html @@ -155,7 +155,51 @@ </div> </div> </div> - </div> <!-- /content --> + </div> + {% elif permalink == 'textbook-companions-for-academics' %} + <div id="content" class="col-lg-10 col-md-10 col-sm-10"> + + <h3>Textbook Companions (TBC) for Academics </h3> + <br> + <p> + {% if page.content %} + {{ page.content|safe }} + {% endif %} + </p> + <div class="panel panel-default"> + <div class="panel-heading"> + <h4 class="panel-title"> + <a data-toggle="collapse" data-parent="#accordion" href="#collapsestats"> + List of completed books + </a> + </h4> + </div> + <div id="collapsestats" class="panel-collapse collapse"> + <div class="panel-body"> + <p> + <table id= "tbctable" class="tablesorter table table table-striped table-hover"> + <thead> + <tr> + <th>Sr No.</th> + <th>Book</th> + + </tr> + </thead> + <tbody> + {% for b in obj %} + <tr> + <td>{{ forloop.counter }}</td> + <td><a href="http://tbc-python.fossee.in/book-details/{{ b.id }}" target="_blank">{{ b.title }} by {{ b.author }}</a></td> + </tr> + {% endfor %} + </tbody> + </table> + </p> + </div> + </div> + </div> + </div> + <!-- /content --> {% else %} <div id="content" class="col-lg-10 col-md-10 col-sm-10"> <h3>{{ page.heading }} </h3> @@ -260,7 +304,7 @@ <script type="text/javascript"> $(document).ready(function() { - $("#statstable").tablesorter(); + $("#tbctable").tablesorter(); } ); </script> |