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" }},
|
2010-10-05 19:05:01 -04:00
|
|
|
'is_premium': {{ user.profile.is_premium|yesno:"true,false" }},
|
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 = {
|
|
|
|
'start_import_from_google_reader': {{ start_import_from_google_reader|yesno:"true,false" }}
|
|
|
|
};
|
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,
|
2010-09-05 18:08:08 -07:00
|
|
|
'view_settings': {},
|
|
|
|
'collapsed_folders': []
|
2010-06-11 20:55:38 -04:00
|
|
|
};
|
2010-06-29 20:16:09 -04:00
|
|
|
NEWSBLUR.URLs = {
|
2010-08-17 23:40:03 -04:00
|
|
|
'google-reader-authorize': "{% url google-reader-authorize %}"
|
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-06-11 20:55:38 -04:00
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
{% if request.user.is_authenticated %}
|
2010-07-06 14:57:32 -04:00
|
|
|
$.extend(NEWSBLUR.Preferences, {{ user.profile.preferences|safe }});
|
|
|
|
$.extend(NEWSBLUR.Preferences['view_settings'], {{ user.profile.view_settings|safe }});
|
2010-09-05 18:08:08 -07:00
|
|
|
$.extend(NEWSBLUR.Preferences['collapsed_folders'], {{ user.profile.collapsed_folders|safe }});
|
2010-06-11 20:55:38 -04:00
|
|
|
{% endif %}
|
|
|
|
</script>
|
2009-06-16 03:08:55 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2010-06-11 20:55:38 -04:00
|
|
|
{% block header %}{% endblock %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
2010-07-06 13:56:32 -04:00
|
|
|
{% if not debug %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
|
|
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
try {
|
|
|
|
var pageTracker = _gat._getTracker("UA-8371683-2");
|
|
|
|
pageTracker._trackPageview();
|
|
|
|
} catch(err) {}</script>
|
|
|
|
{% endif %}
|
2009-06-16 03:08:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|