2012-07-30 09:51:02 -07:00
{% load snipt_tags %}
<!DOCTYPE html>
< html lang = "en" class = "{% block html-class %}{% endblock %}" >
< head >
2012-09-18 09:44:00 -07:00
< title >
{% block page-title %}
2013-01-15 21:09:54 -08:00
//
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
{% else %}
{{ blog_user.username }}
{% endif %}
{% endblock %}
< / title >
2012-07-30 09:51:02 -07:00
< meta charset = "utf-8" / >
2013-01-15 21:09:54 -08:00
2012-07-30 09:51:02 -07:00
{% if 'page' in request.GET %}
< meta name = "robots" content = "noindex, follow" / >
{% endif %}
2013-01-20 09:21:07 -08:00
{% if blog_user.profile.gittip_username %}
< script type = "text/javascript" charset = "utf-8" >
2013-01-15 22:17:21 -08:00
window.gittip_username = '{{ blog_user.profile.gittip_username }}';
2013-01-20 09:21:07 -08:00
< / script >
{% endif %}
2012-08-28 08:35:04 -07:00
2013-02-05 12:26:18 -08:00
< link rel = "stylesheet" type = "text/css" href = "{{ STATIC_URL }}css/pro.css?20" / >
2012-07-30 09:51:02 -07:00
2012-09-18 09:55:22 -07:00
< link rel = "shortcut icon" href = "/static/images/blog-favicon.ico" >
2013-01-19 21:08:45 -08:00
{% if custom_css %}
< style type = "text/css" >
{{ custom_css.code }}
< / style >
{% endif %}
2012-07-30 09:51:02 -07:00
{% if has_snipts and not detail %}
< link rel = "alternate" type = "application/rss+xml" title = "RSS" href = "{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}" / >
{% endif %}
<!-- [if IE]>
< style type = "text/css" >
.group {
display: block;
zoom: 1;
}
< / style >
<![endif]-->
<!-- [if lt IE 9]>
< script src = "https://html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
< / head >
< body class = "{% block body-class %}{% endblock %}" >
< div class = "frame" >
2012-08-20 18:48:37 -07:00
< div class = "left-y ruler" > < / div >
< div class = "right-y ruler" > < / div >
2012-07-30 09:51:02 -07:00
{% block header %}
< header class = "main" >
2012-08-20 18:48:37 -07:00
< a href = "/" class = "logo" >
< span class = "avatar" style = "background-image: url('https://secure.gravatar.com/avatar/{{ blog_user.email|md5 }}?s=80');" > < / span >
< / a >
< div class = "bio" >
< a class = "name" href = "/" >
2013-01-15 21:09:54 -08:00
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
2012-07-30 09:51:02 -07:00
{% else %}
{{ blog_user.username }}
{% endif %}
< / a >
2013-01-15 22:17:21 -08:00
{% if header %}
{{ header.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
2012-08-20 18:48:37 -07:00
< / div >
2012-07-30 09:51:02 -07:00
< / header >
{% endblock %}
2012-08-21 21:24:27 -07:00
< section class = "main group" >
< section class = "content group" >
2012-08-27 20:57:40 -07:00
{% block content %}{% endblock %}
2012-08-21 21:24:27 -07:00
< / section >
< aside class = "main" >
2013-01-15 22:17:21 -08:00
{% if sidebar %}
{{ sidebar.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
2013-01-15 22:21:09 -08:00
{% if normal_snipts %}
< section class = "module snipts" >
< h1 > Recent snipts< / h1 >
< ul >
{% for snipt in normal_snipts %}
< li > < a href = "{{ snipt.get_full_absolute_url }}" > {{ snipt.title }}< / a > < / li >
{% endfor %}
< / ul >
< / section >
{% endif %}
2012-08-21 21:24:27 -07:00
< / aside >
< / section >
2012-07-30 09:51:02 -07:00
< / div >
2013-02-07 07:44:49 -08:00
< script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" > < / script >
< script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" > < / script >
2013-02-07 07:45:32 -08:00
< script type = "text/javascript" src = "{{ STATIC_URL }}js/pro.js?1" > < / script >
2013-02-07 07:44:49 -08:00
2012-07-30 09:51:02 -07:00
{% if not debug %}
< script type = "text/javascript" >
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4ed65ee7f5a1f530f1000001');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
< / script >
2013-02-05 06:59:43 -08:00
< script type = "text/javascript" >
var _gaq = _gaq || [];
2013-02-07 07:51:20 -08:00
_gaq.push(['_setAccount', 'UA-514462-44']);
2013-02-05 06:59:43 -08:00
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
2013-02-07 07:51:20 -08:00
{% if blog_user.profile.google_analytics_tracking_id %}
< script type = "text/javascript" >
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ blog_user.profile.google_analytics_tracking_id }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
{% endif %}
{% if blog_user.profile.gauges_site_id %}
< script type = "text/javascript" >
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '{{ blog_user.profile.gauges_site_id }}');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
< / script >
{% endif %}
2013-02-05 06:59:43 -08:00
{% endif %}
2012-07-30 09:51:02 -07:00
< / body >
< / html >