summaryrefslogtreecommitdiff
path: root/tbc/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/templates/base.html')
-rwxr-xr-xtbc/templates/base.html42
1 files changed, 38 insertions, 4 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index ec9806a..fbcfb05 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -53,6 +53,11 @@
input[type="password"] {
width: 100%;
}
+ .gsc-search-button,
+ .gsc-clear-button {
+ position: relative;
+ top: -2px;
+ }
</style>
{% block css %}
@@ -82,6 +87,7 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li><a href="{% url 'tbc:AboutPytbc' %}">TBC Coding Guidelines</a></li>
<li><a href="http://fossee.in" target="_blank">FOSSEE</a></li>
<li><a href="http://python.fossee.in" target="_blank">Python Team</a></li>
</ul>
@@ -222,7 +228,23 @@
<div class="clearfix"></div>
{% endif %}
<div class="row-fluid">
- <center><h3>Recent Submissions</h3></center>
+ <h3 style='float: left;margin-left: 50px; display: inline-block;'>Recent Submissions</h3>
+ <div style="float:right; margin-right: 50px; width: 400px;">
+ <script>
+ (function() {
+ var cx = '005232764670660293566:hel7xfbbpf0';
+ var gcse = document.createElement('script');
+ gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
+ '//www.google.com/cse/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+ })();
+ </script>
+ <gcse:search></gcse:search>
+ </div>
+ <div style="clear:both;"></div>
{% for item in items %}
<div class ="module-list">
<a href="{% url 'tbc:BookDetails' item.book.id %}"><img src="{% static 'uploads/' %}{{ item.image.image }}"></a>
@@ -262,8 +284,20 @@
ga('send', 'pageview');
</script>
<!-- / google analytics -->
- {% block script %}
- {% endblock %}
+ <!-- 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', 15]);
+ 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>
+<noscript><p><img src="http://analytics.spoken-tutorial.org/piwik.php?idsite=15" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
</body>
</html>
-