mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
58 lines
1.8 KiB
HTML
58 lines
1.8 KiB
HTML
{% load compressed utils_tags %}
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<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" }},
|
|
'username': "{{ user.username|safe }}",
|
|
'MEDIA_URL': "{{ MEDIA_URL }}"
|
|
};
|
|
NEWSBLUR.Preferences = {
|
|
'unread_view': 0,
|
|
'lock_mouse_indicator': 0,
|
|
'view_settings': {}
|
|
};
|
|
NEWSBLUR.URLs = {
|
|
'opml-reader-authorize': "{% url opml-reader-authorize %}"
|
|
};
|
|
</script>
|
|
|
|
{% compressed_css 'all' %}
|
|
{% block head_js %}
|
|
{% compressed_js 'all' %}
|
|
{% endblock head_js %}
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
{% if request.user.is_authenticated %}
|
|
$.extend(NEWSBLUR.Preferences, {{ user.profile.preferences|safe }});
|
|
$.extend(NEWSBLUR.Preferences['view_settings'], {{ user.profile.view_settings|safe }});
|
|
{% endif %}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
{% block header %}{% endblock %}
|
|
{% block content %}{% endblock %}
|
|
|
|
{% 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 %}
|
|
</body>
|
|
</html>
|