mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
98 lines
3.4 KiB
HTML
98 lines
3.4 KiB
HTML
{% load compressed utils_tags %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<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" }},
|
|
'is_premium': {{ user.profile.is_premium|yesno:"true,false" }},
|
|
'secret_token': "{{ user.profile.secret_token }}",
|
|
'username': "{{ user.username|safe }}",
|
|
'google_favicon_url': 'http://www.google.com/s2/favicons?domain_url=',
|
|
'MEDIA_URL': "{{ MEDIA_URL }}"
|
|
};
|
|
NEWSBLUR.Flags = {
|
|
'start_import_from_google_reader': {{ start_import_from_google_reader|yesno:"true,false" }}
|
|
};
|
|
NEWSBLUR.Preferences = {
|
|
'unread_view': 0,
|
|
'lock_mouse_indicator': 0,
|
|
'feed_pane_size': 240,
|
|
'story_titles_pane_size': 168,
|
|
'new_window': 1,
|
|
'default_view': 'page',
|
|
'hide_read_feeds': 0,
|
|
'feed_view_single_story': 0,
|
|
'view_settings': {},
|
|
'collapsed_folders': [],
|
|
'story_styling': 'sans-serif',
|
|
'timezone': "{{ user_profile.timezone }}",
|
|
'story_share_twitter': true,
|
|
'story_share_facebook': true,
|
|
'story_share_readitlater': false,
|
|
'story_share_instapaper': true,
|
|
'story_share_readability': true
|
|
};
|
|
NEWSBLUR.URLs = {
|
|
'google-reader-authorize': "{% url google-reader-authorize %}",
|
|
'opml-upload': "{% url opml-upload %}",
|
|
'opml-export': "{% url opml-export %}",
|
|
'domain': "{% current_domain %}"
|
|
};
|
|
</script>
|
|
|
|
{% compressed_css 'all' %}
|
|
{% block head_js %}
|
|
{% compressed_js 'all' %}
|
|
{% endblock head_js %}
|
|
{% block extra_head_js %}
|
|
{% endblock extra_head_js %}
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
$.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 %});
|
|
</script>
|
|
|
|
{% 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 %}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{% block header %}{% endblock %}
|
|
{% block content %}{% endblock %}
|
|
|
|
<!-- 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 -->
|
|
|
|
</body>
|
|
</html>
|