snipt/templates/base.html

507 lines
25 KiB
HTML
Raw Normal View History

2013-05-08 14:44:11 -07:00
{% load snipt_tags intercom %}
2012-02-15 15:25:13 -08:00
2011-06-01 21:50:18 -07:00
<!DOCTYPE html>
<html lang="en" class="{% block html-class %}{% endblock %}" ng-app="Snipt">
2011-06-01 21:50:18 -07:00
<head>
2011-10-23 19:44:37 -07:00
2011-06-01 21:50:18 -07:00
<title>{% block page-title %}Snipt{% endblock %}</title>
2013-02-13 20:42:54 -08:00
2011-06-01 21:50:18 -07:00
<meta charset="utf-8" />
2013-07-23 08:48:05 -07:00
<meta name="google-site-verification" content="BantFMmY6nSP8wFvb_SDKwYZo08HglaCpNMXQqTyOuk" />
2013-02-13 20:42:54 -08:00
2012-05-31 22:21:28 -07:00
{% block page-description %}
<meta name="description" content="Long-term memory for coders. Share and store code snippets." />
{% endblock %}
2012-05-21 08:21:12 -07:00
2012-06-20 07:53:54 -07:00
{% if 'page' in request.GET %}
2012-06-05 20:06:58 -07:00
<meta name="robots" content="noindex, follow" />
{% endif %}
2012-05-21 08:21:12 -07:00
2013-02-18 06:37:22 -08:00
{% if debug %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.min.css" />
2013-02-18 06:37:22 -08:00
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/style.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/themes.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/chosen.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/ambiance.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/blackboard.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/cobalt.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/eclipse.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/elegant.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/erlang-dark.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/lesser-dark.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/monokai.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/neat.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/night.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/rubyblue.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/solarized.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/twilight.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/vibrant-ink.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/codemirror-themes/xq-dark.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/highlightjs-themes/tomorrow.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/blog-themes/default/style.css" />
{% else %}
2013-11-27 09:23:29 -08:00
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/snipt.css?107" />
2013-02-18 06:37:22 -08:00
{% endif %}
2012-02-18 11:42:30 -08:00
2012-04-13 20:30:23 -07:00
{% if has_snipts and not detail %}
2012-08-05 21:11:12 -07:00
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&amp;api_key={{ request.user.api_key.key }}{% endif %}" />
2012-04-13 20:30:23 -07:00
{% endif %}
2013-02-13 20:42:54 -08:00
<link rel="author" href="/humans.txt" />
{% block css %}{% endblock %}
2011-06-01 21:50:18 -07:00
<!--[if IE]>
<style type="text/css">
.group {
display: block;
zoom: 1;
}
</style>
<![endif]-->
<!--[if lt IE 9]>
2012-04-23 18:41:16 -07:00
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2011-06-01 21:50:18 -07:00
<![endif]-->
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
2013-05-08 21:55:21 -07:00
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
2013-02-19 20:25:32 -08:00
<!-- start Mixpanel -->
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==
typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g<i.length;g++)f(c,i[g]);
b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]);
mixpanel.init("f755aa7068c055698c49ff0307370fa6");
</script>
<!-- end Mixpanel -->
2011-06-01 21:50:18 -07:00
</head>
2012-07-19 08:36:39 -07:00
<body class="{% block body-class %}{% endblock %} {% if request.user.profile.is_pro %}is-pro{% endif %}">
2013-10-15 07:23:37 -07:00
<!-- AdPacks.com Ad Code -->
<script type="text/javascript">
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = '//s3.buysellads.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
<!-- End AdPacks.com Ad Code -->
2012-05-31 19:32:32 -07:00
{% block header %}
<header class="main">
<div class="inner">
<div class="shadey"></div>
2013-02-21 21:26:47 -08:00
<h1 class="main-logo"><a href="{% if request.user.is_authenticated %}/{{ request.user.username }}/{% else %}/{% endif %}">snip<span>t</span></a></h1>
<form class="search" action="/search/" method="get" ng-controller="HeaderSearchController">
2012-05-31 19:32:32 -07:00
<fieldset>
<div class="fields">
<input ng-model="search.query" type="text" class="search-query" name="q"
2013-05-09 09:37:19 -07:00
ng-init="search.query='{{ query|escapejs }}'"
placeholder="Search snipts" id="id_q"
value="{{ query }}" />
2012-05-31 19:32:32 -07:00
</div>
</fieldset>
</form>
<nav class="public">
<ul>
{% if not request.user.is_authenticated %}
<li>
<a href="/public/" {% if '/public/' in request.path or public %} class="active"{% endif %}>Public snipts</a>
</li>
<li>
<a href="/login/?next={{ request.path }}" {% if '/login/' in request.path %} class="active"{% endif %}>Log in</a>
</li>
<li>
<a href="/signup/" {% if '/signup/' in request.path %} class="active"{% endif %}>Sign up</a>
</li>
2012-05-15 18:09:32 -07:00
{% else %}
2012-05-31 19:32:32 -07:00
<li>
<a href="/{{ request.user.username }}/" {% if request.user.username in request.path %} class="active"{% endif %}>My snipts</a>
</li>
<li>
<a href="/public/" {% if '/public/' in request.path or public %} class="active"{% endif %}>Public snipts</a>
</li>
2012-06-19 19:11:53 -07:00
<li class="add-snipt">
<button class="btn btn-info btn-large" id="add-snipt">
Add {% if request.user.username == 'blog' %}Post{% else %}Snipt{% endif %}
<i class="icon-search icon-plus icon-white"></i>
</button>
2012-05-31 19:32:32 -07:00
</li>
2012-05-15 18:09:32 -07:00
{% endif %}
2013-09-05 10:28:35 -07:00
<li>
<a href="/jobs/" {% if '/jobs/' in request.path %} class="active"{% endif %}>Jobs</a>
</li>
2012-05-31 19:32:32 -07:00
</ul>
</nav>
2012-06-19 19:11:53 -07:00
{% if request.user.is_authenticated %}
<aside class="nav">
<a href="#" class="mini-profile">
2012-06-19 20:25:34 -07:00
<span class="avatar" style="background-image: url('https://secure.gravatar.com/avatar/{{ request.user.email|md5 }}?s=35');"></span>
2012-06-26 13:38:38 -07:00
<span class="info">
<span class="username">{{ request.user.username }}</span>
<i class="icon-cog icon-white"></i>
<span class="type">
{% if request.user.profile.is_pro %}
<span class="is-pro">Pro</span>
{% else %}
Basic member
{% endif %}
</span>
</span>
2012-06-19 19:11:53 -07:00
</a>
<ul>
<li>
<a href="/{{ request.user.username }}/">
<i class="icon-user icon-white"></i>
Profile
2012-06-26 13:38:38 -07:00
</a>
2012-06-19 19:11:53 -07:00
</li>
2013-08-13 11:20:46 -07:00
<li>
<a href="/account/stats/">
<i class="icon-star icon-white"></i>
Stats
</a>
</li>
2012-07-10 13:43:51 -07:00
<li>
<a href="/account/">
<i class="icon-cog icon-white"></i>
Account
2012-07-10 13:43:51 -07:00
</a>
</li>
2012-07-11 23:03:46 -07:00
{% if not request.user.profile.is_pro %}
<li>
<a href="/pro/">
<i class="icon-star-empty icon-white"></i>
Go Pro
2012-07-11 23:03:46 -07:00
</a>
</li>
2012-09-10 10:52:17 -07:00
{% endif %}
2012-06-21 11:16:19 -07:00
{% if request.user.is_superuser %}
<li>
<a href="/admin/">
2012-06-21 11:16:46 -07:00
<i class="icon-cog icon-white"></i>
2012-06-21 11:16:19 -07:00
Admin
</a>
</li>
{% endif %}
2012-06-19 19:11:53 -07:00
<li>
<a href="/logout/?next={{ request.path }}">
<i class="icon-off icon-white"></i>
Log out
</a>
</li>
</ul>
</aside>
2012-05-31 19:32:32 -07:00
{% endif %}
</div>
</header>
{% endblock %}
2012-02-12 18:13:13 -08:00
{% block sub-header %}
<header class="sub">
<div class="inner group">
<ul class="bcrumb">
<li class="prompt">/</li>
{% block breadcrumb %}{% endblock %}
</ul>
<div class="shortcuts">
2013-12-18 13:36:17 -08:00
Ctrl+h for KB shortcuts
2012-02-12 18:13:13 -08:00
</div>
2012-01-25 06:49:36 -08:00
</div>
2012-02-12 18:13:13 -08:00
</header>
{% endblock %}
2012-05-31 22:21:28 -07:00
{% block main %}
<section class="main group" id="main">
{% block aside %}
<aside class="main">
{% block ad %}
{% if not request.user.profile.is_pro %}
2013-11-18 11:40:46 -08:00
{% include 'ad-sidebar.html' %}
{% endif %}
{% endblock %}
2012-07-08 09:25:15 -07:00
{% block aside-top %}{% endblock %}
2012-07-03 14:53:30 -07:00
{% block aside-inner %}{% endblock %}
2013-11-27 09:22:40 -08:00
{% if not request.user.profile.is_pro %}
<section class="ad wide-sky">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-6776929316186576"
data-ad-slot="4793282062"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</section>
{% endif %}
2012-05-31 22:21:28 -07:00
<nav class="footer">
<ul>
<li class="api">
2013-01-21 15:00:10 -08:00
<a href="/api/" {% if '/api/' in request.path %}class="active"{% endif %}><span>API</span></a>
2012-05-31 22:21:28 -07:00
</li>
2013-01-16 20:34:48 -08:00
<li class="twitter">
2013-01-21 15:00:10 -08:00
<a href="https://twitter.com/#!/snipt"><span>@snipt</span></a>
2012-05-31 22:21:28 -07:00
</li>
2012-09-10 10:51:50 -07:00
{% if not request.user.profile.is_pro %}
<li class="pro">
2013-01-21 15:00:10 -08:00
<a href="/pro/"><span>Go Pro</span></a>
2012-09-10 10:51:50 -07:00
</li>
{% endif %}
2013-01-16 20:34:48 -08:00
<li class="blog">
2013-01-21 15:00:10 -08:00
<a href="https://blog.snipt.net/"><span>Snipt Blog</span></a>
2013-01-16 20:34:48 -08:00
</li>
2013-11-26 11:50:58 -08:00
<li class="blog">
<a href="/apps/" {% if '/apps/' in request.path %}class="active"{% endif %}><span>Snipt Apps</span></a>
</li>
2013-01-16 20:41:32 -08:00
<li class="blog">
2013-01-21 15:00:10 -08:00
<a href="/blogging/" {% if '/blogging/' in request.path %}class="active"{% endif %}><span>Blogging on Snipt</span></a>
2012-05-31 22:21:28 -07:00
</li>
2013-01-13 20:00:03 -08:00
<li class="roadmap">
2013-01-21 15:00:10 -08:00
<a href="https://github.com/nicksergeant/snipt/"><span>Open source on GitHub</span></a>
2013-01-13 20:00:03 -08:00
</li>
<li class="roadmap">
2013-01-21 15:00:10 -08:00
<a href="https://github.com/nicksergeant/snipt/issues?state=open"><span>Bugs & feature requests</span></a>
2013-01-13 20:00:03 -08:00
</li>
2013-03-25 19:23:55 -07:00
<li class="roadmap">
<a href="http://getsentry.com/"><span>Shipped with confidence</span></a>
</li>
2012-05-31 22:21:28 -07:00
</ul>
</nav>
2013-01-21 16:08:08 -08:00
<div class="linode">
<a href="http://www.linode.com/" title="Linode - Xen VPS Hosting. Deploy and Manage Linux Virtual Servers in the Linode Cloud." target="blank">
<span>Proudly hosted on</span>
</a>
</div>
2012-05-31 22:21:28 -07:00
</aside>
2012-05-31 19:32:32 -07:00
{% endblock %}
<div class="inner">
{% block content %}{% endblock %}
{% block rochester-made %}
<div class="rochester-made">
2012-07-08 19:59:35 -07:00
<a href="http://rochestermade.com/" title="Proudly made in Rochester, NY, USA">
<img src="{{ STATIC_URL }}img/rochester-made.png" alt="" />
</a>
</div>
{% endblock %}
</div>
2012-05-31 22:21:28 -07:00
<div class="left-y ruler"></div>
<div class="right-y ruler"></div>
</section>
{% endblock %}
2013-02-13 20:42:54 -08:00
{% block main-edit %}
<section class="main group hidden" id="main-edit"></section>
{% endblock %}
2012-05-31 22:21:28 -07:00
{% block keyboard-shortcuts %}
<div class="modal hide" id="keyboard-shortcuts">
<div class="modal-header">
<a href="#" class="close">×</a>
<h3><span>Keyboard shortcuts</span></h3>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr>
2013-12-18 13:36:17 -08:00
<td>&lt;ctrl-h&gt;</td>
2012-05-31 22:21:28 -07:00
<td>Show / hide keyboard shortcuts</td>
</tr>
<tr>
<td>/</td>
<td>Focus search field</td>
</tr>
<tr>
<td>esc</td>
<td>Unfocus search field / deselect snipt</td>
</tr>
<tr>
<td>j</td>
<td>Next snipt</td>
</tr>
<tr>
<td>k</td>
<td>Previous snipt</td>
</tr>
<tr>
<td>o / return</td>
<td>Go to snipt</td>
</tr>
<tr>
<td>u</td>
<td>Go to snipt's author</td>
</tr>
<tr>
<td>e</td>
<td>Expand / collapse snipt</td>
</tr>
<tr>
<td>v</td>
<td>Embed snipt</td>
</tr>
<tr>
<td>c</td>
<td>Copy snipt</td>
</tr>
<tr>
<td>&lt;ctrl-e&gt;</td>
<td>Edit snipt</td>
</tr>
<tr>
<td>&lt;ctrl-delete&gt; or &lt;ctrl-backspace&gt;</td>
<td>Delete snipt</td>
</tr>
<tr>
2012-06-05 17:56:52 -07:00
<td>&lt;ctrl-n&gt; or &lt;alt+n&gt;</td>
2012-05-31 22:21:28 -07:00
<td>Add new snipt</td>
</tr>
<tr>
<td>&lt;ctrl-s&gt;</td>
<td>Save snipt</td>
</tr>
<tr>
<td>&lt;ctrl-c&gt;</td>
<td>Save snipt and close</td>
</tr>
<tr>
<td>n</td>
<td>Next page</td>
</tr>
<tr>
<td>p</td>
<td>Previous page</td>
</tr>
<tr>
<td>g</td>
<td>Scroll to top of page</td>
</tr>
<tr>
<td>G</td>
<td>Scroll to bottom of page</td>
</tr>
</tbody>
</table>
</div>
2012-01-25 06:49:36 -08:00
</div>
2012-05-31 22:21:28 -07:00
{% endblock %}
2012-07-08 20:44:47 -07:00
2013-02-10 19:16:15 -08:00
{% block extra-scripts %}{% endblock %}
2013-02-18 13:54:41 -08:00
2012-07-08 20:44:47 -07:00
{% block inline-js %}
2012-07-17 22:15:16 -07:00
<script type="text/javascript">
{% block js %}
2012-07-17 22:15:16 -07:00
window.user = '{{ request.user.username }}';
2013-03-24 15:41:57 -07:00
window.user_id = {% firstof request.user.id 'null' %};
window.user_ip = '{{ request.META.REMOTE_ADDR }}';
2013-03-24 15:41:57 -07:00
window.user_profile_id = {% firstof request.user.profile.id 'null' %};
window.user_email = '{{ request.user.email }}';
2012-07-17 22:15:16 -07:00
{% if public %}
window.pub = {{ public|lower }};
{% else %}
window.pub = null;
{% endif %}
2012-07-17 22:15:16 -07:00
window.api_key = '{{ request.user.api_key.key }}';
2012-07-17 22:15:16 -07:00
{% endblock %}
2012-07-31 18:39:40 -07:00
{% if request.user.profile.is_pro %}
window.user_is_pro = true;
{% else %}
window.user_is_pro = false;
{% endif %}
2013-08-13 11:20:46 -07:00
window.default_editor = '{{ request.user.profile.get_default_editor_display|lower }}';
window.editor_theme = '{{ request.user.profile.editor_theme }}';
2012-07-17 22:15:16 -07:00
</script>
2012-07-08 20:44:47 -07:00
{% endblock %}
{% if debug %}
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/underscore.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/json2.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/backbone.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/plugins/jquery.hotkeys.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/plugins/jquery.infieldlabel.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/plugins/jquery.chosen.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/codemirror.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/libs/highlight.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/application.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/modules/site.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/modules/snipt.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/account.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/snipts.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/search.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/src/jobs.js"></script>
{% else %}
2013-10-21 13:07:58 -07:00
<script type="text/javascript" src="{{ STATIC_URL }}js/snipt-all.min.js?67"></script>
{% endif %}
2012-09-17 19:41:12 -07:00
{% if has_snipts and detail %}
2012-09-17 17:31:45 -07:00
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
{% endif %}
2013-02-13 20:42:54 -08:00
{% block snipt-templates %}
<div class="hidden" id="templates">
{% include 'snipts/snipt-js-template.html' %}
{% include 'snipts/snipt-edit-js-template.html' %}
</div>
{% endblock %}
2012-04-04 14:35:38 -07:00
{% if request.user.is_authenticated %}
2012-04-16 15:52:49 -07:00
{% if not debug %}
2012-06-04 17:59:05 -07:00
{% block intercom %}
<script id="IntercomSettingsScriptTag">
var intercomSettings = {
app_id: 'sajf131y',
user_id: {{ request.user.id }},
user_hash: '{{ request.user.id|intercom_sha_256 }}',
2012-06-04 17:59:05 -07:00
email: '{{ request.user.email }}',
created_at: {{ request.user.date_joined|date:"U" }},
custom_data: {
'snipts count': {% snipts_count_for_user %},
2013-02-22 08:35:40 -08:00
'profile link': 'https://snipt.net/{{ request.user.username }}/',
2013-02-22 08:43:14 -08:00
'is pro': window.user_is_pro,
2013-02-22 08:44:03 -08:00
'blog domain': '{{ request.user.profile.blog_domain }}'
2013-11-21 12:57:51 -08:00
},
widget: {
activator: '#IntercomDefaultWidget'
2012-06-04 17:59:05 -07:00
}
};
</script>
<script>
(function() {
function async_load() {
var s = document.createElement('script');
s.type = 'text/javascript'; s.async = true;
2013-05-29 10:27:55 -07:00
s.src = 'https://static.intercomcdn.com/intercom.v1.js';
2012-06-04 17:59:05 -07:00
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent) {
window.attachEvent('onload', async_load);
} else {
window.addEventListener('load', async_load, false);
}
})();
2013-01-21 07:20:06 -08:00
</script>
2012-06-04 17:59:05 -07:00
{% endblock %}
2012-04-16 15:52:49 -07:00
{% endif %}
2012-07-08 20:44:47 -07:00
{% endif %}
2013-02-07 07:58:26 -08:00
{% include 'analytics.html' %}
2012-08-09 12:58:25 -07:00
2013-02-13 20:42:54 -08:00
{% block preload %}
<div class="hidden">
<img src="{{ STATIC_URL }}img/header-fixed-save.gif" alt="" />
<img src="{{ STATIC_URL }}img/chosen-sprite.png" alt="" />
<img src="{{ STATIC_URL }}img/aside-nav-open-bottom-bg.gif" alt="" />
<img src="{{ STATIC_URL }}img/aside-nav-open-top-bg.gif" alt="" />
2013-02-13 20:42:54 -08:00
</div>
{% endblock %}
2012-07-08 20:44:47 -07:00
2011-06-01 21:50:18 -07:00
</body>
</html>