Added footer and google analytics
This commit is contained in:
parent
d9dee20758
commit
69d555352c
|
@ -0,0 +1,13 @@
|
|||
# coding: utf-8
|
||||
|
||||
# py3
|
||||
from __future__ import unicode_literals
|
||||
|
||||
# django
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
def debug(request):
|
||||
return {
|
||||
'DEBUG': settings.DEBUG,
|
||||
}
|
|
@ -77,6 +77,7 @@ TEMPLATES = [
|
|||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'amiibofindr.apps.amiibo.context_processors.collections',
|
||||
'amiibofindr.apps.core.context_processors.debug',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -35,6 +35,24 @@
|
|||
</div>
|
||||
</div>
|
||||
{% block main_content %}{% endblock %}
|
||||
<div class="ui page grid right aligned">
|
||||
<div class="sixteen wide column">
|
||||
<hr >
|
||||
<div class="">
|
||||
AmiiboFindr © 2015 | <a href="https://twitter.com/amiibofindr" target="_blank"><i class="ui icon twitter"></i>Twitter</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if not DEBUG %}
|
||||
<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','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-64407848-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{% endif %}
|
||||
<script type="text/javascript" src={% static "dist/app.js" %}></script>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in New Issue