summaryrefslogtreecommitdiff
path: root/static/website/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates/page.html')
-rw-r--r--static/website/templates/page.html115
1 files changed, 103 insertions, 12 deletions
diff --git a/static/website/templates/page.html b/static/website/templates/page.html
index aef4681..f9f3eb0 100644
--- a/static/website/templates/page.html
+++ b/static/website/templates/page.html
@@ -1,24 +1,31 @@
+
{% load static %}
<!doctype html>
<html>
<head>
<title>{{ page.heading }} | python.fossee.in</title>
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="{% static 'website/css/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'website/css/bootstrap-theme.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'website/css/lightbox.css'%}">
<link rel="stylesheet" type="text/css" href="{% static 'website/css/main.css'%}">
- <link rel="stylesheet" type="text/css" href="{% static 'website/css/nice-bar.css'%}">
+ <link rel="shortcut icon" type="image/png" href="{% static 'website/images/pylogo.png'%}"/>
+ <script type="text/javascript" src="{% static 'website/js/jquery.tablesorter.js' %}"></
</head>
<body>
+ <link rel="stylesheet" type="text/css" href="http://fossee.in/data/banner/css/nice-bar.css" />
+ <script type="text/javascript" src="http://fossee.in/data/banner/js/nice-bar.js"></script>
{% if permalink == 'home'%}
- <div class="nice-bar">
- <p class="nice-text">
- Developers required for <em>NMEICT/MHRD</em> funded FOSSEE project.
- <a class="nice-button" href="http://fossee.in/jobs">View more</a> details.
- <span class="nice-close">x</span>
- </p>
- </div>
- {% endif %}
+
+
+<!--<div class="nice-bar">
+<center>
+<a class="nice-text" href="https://docs.google.com/forms/d/e/1FAIpQLSfMg5E9EauODDxgsP1j67FK6MsESNp7qi4kN2VnrEAm57IznA/viewform" target="_blank"> <img src="http://fossee.in/data/banner/images/OM_webbnr3.png" > </a>
+ </center>
+
+</div>-->
+
+ {% endif %}
<div id="page-wrapper">
{% block page %}
@@ -28,7 +35,6 @@
<div id="branding" class="pull-left">
<img id="brand-logo" src="{% static 'website/images/pylogo.png' %}">
<a href="http://python.fossee.in" style="text-decoration: none; color: #424242">
- <img id="brand-logo" src="{% static 'images/pylogo.png' %}">
<span id="brand-text">Python</span>
</a>
</div>
@@ -101,13 +107,65 @@
{% endfor %}
</div> <!-- /sidebar -->
- <div id="content" class="col-lg-10 col-md-10 col-sm-10">
+ <!--------------------------- -->
+ {% if permalink == 'python-workshops' %}
+ <div id="content" class="col-lg-10 col-md-10 col-sm-10">
+
+ <h3>Python Workshops </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">
+ Python Workshop Statistics
+ </a>
+ </h4>
+ </div>
+ <div id="collapsestats" class="panel-collapse collapse in">
+ <div class="panel-body">
+ <p>
+ <table id= "statstable" class="tablesorter table table table-striped table-hover">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Start Date</th>
+ <th>Venue</th>
+ <th>No of Participants</th>
+ <th> </th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for b in obj %}
+ <tr>
+ <td>{{ b.w_name }}</td>
+ <td>{{ b.startdate }}</td>
+ <td>{{ b.venue }}</td>
+ <td>{{ b.no_of_participant }}</td>
+ <td><a href="http://fossee.in/events/view_details/{{ b.w_id }}" target="_blank">Details</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>
<p>
{{ page.content|safe }}
</p>
</div> <!-- /content -->
+ {% endif %}
+ <!--------------------------- -->
<div class="clearfix"></div>
</div> <!-- /content-inner -->
</div> <!-- /content-wrapper -->
@@ -172,7 +230,40 @@
<script src="{% static 'website/js/jquery.min.js' %}"></script>
<script src="{% static 'website/js/bootstrap.min.js' %}"></script>
<script src="{% static 'website/js/lightbox.min.js' %}"></script>
- <script src="{% static 'website/js/nice-bar.js' %}"></script>
+ <!--<script src="{% static 'website/js/nice-bar.js' %}"></script>-->
+<!-- Piwik -->
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.spoken-tutorial.org/";
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
+ _paq.push(['setSiteId', 14]);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
+ g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-60190813-1', 'auto');
+ ga('send', 'pageview');
+
+</script>
+<noscript><p><img src="http://analytics.spoken-tutorial.org/piwik.php?idsite=14" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
+<script type="text/javascript" src="{% static 'website/js/jquery.tablesorter.min.js' %}"></script>
+<script type="text/javascript">
+$(document).ready(function()
+ {
+ $("#statstable").tablesorter();
+ }
+);
+</script>
</body>
</html>