summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtbc/templates/base.html23
1 files changed, 22 insertions, 1 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index a9061be..e17d9bb 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 %}
@@ -177,8 +182,24 @@
</center>
<div class="clearfix"></div>
{% endif %}
+ <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>
<div class="row-fluid">
- <center><h3>Recent Submissions</h3></center>
{% for item in items %}
<div class ="module-list">
<a href="{% url 'tbc:BookDetails' item.book.id %}"><img src="{% static 'uploads/' %}{{ item.image.image }}"></a>