2010-07-06 13:56:32 -04:00
|
|
|
{% load compressed utils_tags %}
|
2010-10-21 13:39:47 -04:00
|
|
|
<!DOCTYPE html>
|
2009-06-16 03:08:55 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2010-06-11 20:55:38 -04:00
|
|
|
<title>{% block title %}NewsBlur{% endblock %}</title>
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
|
|
<link rel="shortcut icon" HREF="/media/img/favicon.png">
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
var NEWSBLUR = {};
|
|
|
|
NEWSBLUR.Globals = {
|
|
|
|
'is_authenticated': {{ user.is_authenticated|yesno:"true,false" }},
|
|
|
|
'is_anonymous': {{ user.is_anonymous|yesno:"true,false" }},
|
2011-02-01 00:52:09 -05:00
|
|
|
'is_premium': {{ user.profile.is_premium|yesno:"true,false" }},
|
2011-01-20 19:14:54 -05:00
|
|
|
'secret_token': "{{ user.profile.secret_token }}",
|
2010-06-11 20:55:38 -04:00
|
|
|
'username': "{{ user.username|safe }}",
|
2010-10-05 19:05:01 -04:00
|
|
|
'google_favicon_url': 'http://www.google.com/s2/favicons?domain_url=',
|
2010-06-28 19:57:49 -04:00
|
|
|
'MEDIA_URL': "{{ MEDIA_URL }}"
|
2010-06-11 20:55:38 -04:00
|
|
|
};
|
2010-08-17 20:59:47 -04:00
|
|
|
NEWSBLUR.Flags = {
|
2010-11-24 15:01:35 -05:00
|
|
|
'start_import_from_google_reader': {{ start_import_from_google_reader|yesno:"true,false" }}
|
2010-08-17 20:59:47 -04:00
|
|
|
};
|
2010-06-11 20:55:38 -04:00
|
|
|
NEWSBLUR.Preferences = {
|
2010-07-06 14:57:32 -04:00
|
|
|
'unread_view': 0,
|
|
|
|
'lock_mouse_indicator': 0,
|
2010-08-13 19:50:56 -04:00
|
|
|
'feed_pane_size': 240,
|
|
|
|
'story_titles_pane_size': 168,
|
2011-02-26 17:50:13 -05:00
|
|
|
'new_window': 1,
|
2010-10-31 16:17:38 -04:00
|
|
|
'default_view': 'page',
|
2010-11-05 10:35:52 -04:00
|
|
|
'hide_read_feeds': 0,
|
2010-12-08 20:53:45 -05:00
|
|
|
'feed_view_single_story': 0,
|
2010-09-05 18:08:08 -07:00
|
|
|
'view_settings': {},
|
2010-10-30 00:27:52 -04:00
|
|
|
'collapsed_folders': [],
|
2010-11-25 15:34:06 -05:00
|
|
|
'story_styling': 'sans-serif',
|
2011-02-16 20:45:37 -05:00
|
|
|
'timezone': "{{ user_profile.timezone }}",
|
|
|
|
'story_share_twitter': true,
|
|
|
|
'story_share_facebook': true,
|
|
|
|
'story_share_readitlater': false,
|
|
|
|
'story_share_instapaper': true,
|
|
|
|
'story_share_readability': true
|
2010-06-11 20:55:38 -04:00
|
|
|
};
|
2010-06-29 20:16:09 -04:00
|
|
|
NEWSBLUR.URLs = {
|
2011-01-20 19:14:54 -05:00
|
|
|
'google-reader-authorize': "{% url google-reader-authorize %}",
|
2011-03-11 11:22:28 -05:00
|
|
|
'opml-upload': "{% url opml-upload %}",
|
|
|
|
'opml-export': "{% url opml-export %}",
|
2011-01-22 18:25:16 -05:00
|
|
|
'domain': "{% current_domain %}"
|
2010-06-29 20:16:09 -04:00
|
|
|
};
|
2010-06-11 20:55:38 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{% compressed_css 'all' %}
|
2010-07-05 17:11:04 -04:00
|
|
|
{% block head_js %}
|
|
|
|
{% compressed_js 'all' %}
|
|
|
|
{% endblock head_js %}
|
2010-10-22 10:22:19 -04:00
|
|
|
{% block extra_head_js %}
|
|
|
|
{% endblock extra_head_js %}
|
2010-06-11 20:55:38 -04:00
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2010-11-01 18:19:41 -04:00
|
|
|
$.extend(NEWSBLUR.Preferences, {% if user_profile.preferences %}{{ user_profile.preferences|safe }}{% else %}{}{% endif %});
|
|
|
|
$.extend(NEWSBLUR.Preferences['view_settings'], {% if user_profile.view_settings %}{{ user_profile.view_settings|safe }}{% else %}{}{% endif %});
|
|
|
|
$.extend(NEWSBLUR.Preferences['collapsed_folders'], {% if user_profile.collapsed_folders %}{{ user_profile.collapsed_folders|safe }}{% else %}[]{% endif %});
|
2010-06-11 20:55:38 -04:00
|
|
|
</script>
|
2009-06-16 03:08:55 +00:00
|
|
|
|
2010-11-13 15:23:21 -05:00
|
|
|
{% if not debug %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', 'UA-8371683-2']);
|
|
|
|
_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 %}
|
2009-06-16 03:08:55 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2010-12-02 17:09:45 -05:00
|
|
|
|
2010-06-11 20:55:38 -04:00
|
|
|
{% block header %}{% endblock %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
2010-12-02 17:09:45 -05:00
|
|
|
<!-- Start Quantcast tag -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
_qoptions={
|
|
|
|
qacct:"p-0dE65XaLY51Og"
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
|
|
|
|
<noscript>
|
|
|
|
<img src="http://pixel.quantserve.com/pixel/p-0dE65XaLY51Og.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
|
|
|
|
</noscript>
|
|
|
|
<!-- End Quantcast tag -->
|
|
|
|
|
2009-06-16 03:08:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|