2011-11-07 09:35:51 -08:00
|
|
|
{% load 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">
|
2012-04-20 08:39:40 -07:00
|
|
|
<link rel="apple-touch-icon" href="/media/img/mobile/apple-touch-icon-precomposed.png" />
|
2010-06-11 20:55:38 -04:00
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2012-01-16 17:55:13 -08:00
|
|
|
window.NEWSBLUR = {};
|
2010-06-11 20:55:38 -04:00
|
|
|
NEWSBLUR.Globals = {
|
2011-03-13 16:24:49 -04:00
|
|
|
'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" }},
|
2011-11-24 14:57:53 -05:00
|
|
|
'is_admin' : {{ user.is_staff|yesno:"true,false" }},
|
2011-12-19 09:24:40 -08:00
|
|
|
'is_staff' : {{ user.is_staff|yesno:"true,false" }},
|
2011-03-13 16:24:49 -04:00
|
|
|
'secret_token' : "{{ user.profile.secret_token }}",
|
|
|
|
'username' : "{{ user.username|safe }}",
|
2012-07-15 22:51:27 -07:00
|
|
|
{% if user.pk %}'user_id' : {{ user.pk }},{% endif %}
|
2011-05-07 21:12:13 -04:00
|
|
|
'email' : "{{ user.email|safe }}",
|
2012-04-06 18:28:26 -07:00
|
|
|
'MEDIA_URL' : "{{ MEDIA_URL }}",
|
|
|
|
'debug' : {{ debug|yesno:"true,false" }}
|
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 = {
|
2011-03-13 16:24:49 -04:00
|
|
|
'unread_view' : 0,
|
|
|
|
'lock_mouse_indicator' : 0,
|
2011-07-17 20:53:30 -07:00
|
|
|
'feed_pane_size' : {% firstof user_profile.feed_pane_size 240 %},
|
2012-03-19 16:35:56 -07:00
|
|
|
'hide_getting_started' : {{ user_profile.hide_getting_started|yesno:"true,false" }},
|
2012-03-19 14:15:38 -07:00
|
|
|
'has_setup_feeds' : {{ user_profile.has_setup_feeds|yesno:"true,false" }},
|
|
|
|
'has_found_friends' : {{ user_profile.has_found_friends|yesno:"true,false" }},
|
2011-12-24 00:30:37 -08:00
|
|
|
'has_trained_intelligence': {{ user_profile.has_trained_intelligence|yesno:"true,false" }},
|
2011-08-07 21:38:09 -07:00
|
|
|
'hide_mobile' : {{ user_profile.hide_mobile|yesno:"true,false" }},
|
2011-03-13 16:24:49 -04:00
|
|
|
'story_titles_pane_size' : 168,
|
2011-09-28 16:44:28 -07:00
|
|
|
'story_pane_anchor' : 'south',
|
2011-03-13 16:24:49 -04:00
|
|
|
'new_window' : 1,
|
|
|
|
'default_view' : 'page',
|
|
|
|
'hide_read_feeds' : 0,
|
2011-05-01 19:58:40 -04:00
|
|
|
'show_tooltips' : 1,
|
2011-04-25 20:53:29 -04:00
|
|
|
'feed_order' : 'ALPHABETICAL',
|
2012-02-29 17:18:55 -08:00
|
|
|
'ssl' : 0,
|
2012-02-17 18:36:33 -08:00
|
|
|
'open_feed_action' : 0,
|
2012-05-07 15:11:10 -07:00
|
|
|
'read_story_delay' : 0,
|
2011-05-07 17:58:53 -04:00
|
|
|
'hide_story_changes' : 1,
|
2011-03-13 16:24:49 -04:00
|
|
|
'feed_view_single_story' : 0,
|
2011-06-07 12:57:34 -04:00
|
|
|
'animations' : true,
|
2011-10-31 19:44:36 -07:00
|
|
|
'folder_counts' : false,
|
2011-09-21 17:49:26 -07:00
|
|
|
'send_emails' : {{ user_profile.send_emails|yesno:"true,false" }},
|
2011-03-13 16:24:49 -04:00
|
|
|
'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,
|
2011-05-03 11:40:38 -04:00
|
|
|
'story_share_readability' : false,
|
|
|
|
'story_share_email' : true
|
2010-06-11 20:55:38 -04:00
|
|
|
};
|
2010-06-29 20:16:09 -04:00
|
|
|
NEWSBLUR.URLs = {
|
2011-03-13 16:24:49 -04:00
|
|
|
'google-reader-authorize' : "{% url google-reader-authorize %}",
|
|
|
|
'opml-upload' : "{% url opml-upload %}",
|
|
|
|
'opml-export' : "{% url opml-export %}",
|
2012-02-13 11:07:32 -08:00
|
|
|
'domain' : "{% current_domain %}",
|
|
|
|
'favicon' : "/rss_feeds/icon/{id}"
|
2010-06-29 20:16:09 -04:00
|
|
|
};
|
2012-01-04 09:42:35 -08:00
|
|
|
NEWSBLUR.Models = {};
|
|
|
|
NEWSBLUR.Collections = {};
|
2012-03-07 17:34:22 -08:00
|
|
|
NEWSBLUR.Views = {};
|
2012-05-17 18:40:46 -07:00
|
|
|
NEWSBLUR.app = {};
|
2010-06-11 20:55:38 -04:00
|
|
|
</script>
|
|
|
|
|
2011-11-07 09:35:51 -08:00
|
|
|
{% include_stylesheets "common" %}
|
2009-06-16 03:08:55 +00:00
|
|
|
|
2010-11-13 15:23:21 -05:00
|
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', 'UA-8371683-2']);
|
|
|
|
_gaq.push(['_trackPageview']);
|
2012-07-12 20:14:38 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{% if not debug %}
|
|
|
|
<script type="text/javascript">
|
2010-11-13 15:23:21 -05:00
|
|
|
(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>
|
|
|
|
|
2011-04-02 21:34:40 -04:00
|
|
|
<body class="{% block bodyclass %}{% endblock %}">
|
2010-12-02 17:09:45 -05:00
|
|
|
|
2010-06-11 20:55:38 -04:00
|
|
|
{% block header %}{% endblock %}
|
2011-04-02 19:41:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
<div class="NB-splash-info NB-splash-top">
|
2011-04-02 21:34:40 -04:00
|
|
|
<a href="{% url index %}"><img class="NB-splash-title" src="{{ MEDIA_URL }}/img/logo_newsblur_blur.png" /></a>
|
2011-04-02 19:41:22 -04:00
|
|
|
<ul class="NB-splash-links">
|
|
|
|
<li class="NB-splash-link NB-first NB-splash-link-twitter"><a href="http://twitter.com/samuelclay">@samuelclay</a></li>
|
|
|
|
<li class="NB-splash-link NB-first NB-splash-link-twitter"><a href="http://twitter.com/newsblur">@newsblur</a></li>
|
|
|
|
<li class="NB-splash-link NB-splash-link-blog"><a href="http://blog.newsblur.com">The Blog</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="NB-splash-info NB-splash-bottom">
|
2011-04-02 21:34:40 -04:00
|
|
|
<a href="{% url index %}"><img class="NB-splash-title" src="{{ MEDIA_URL }}/img/logo_newsblur.png" /></a>
|
2011-04-02 19:41:22 -04:00
|
|
|
<ul class="NB-splash-links">
|
2011-04-02 22:28:04 -04:00
|
|
|
<li class="NB-splash-link"><a href="{% url faq %}">FAQ</a></li>
|
|
|
|
<li class="NB-splash-link"><a href="{% url about %}">About</a></li>
|
2011-04-02 19:41:22 -04:00
|
|
|
<li class="NB-splash-link NB-first NB-splash-link-github"><a href="http://github.com/samuelclay">GitHub</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul class="NB-splash-links NB-splash-links-2">
|
|
|
|
<li class="NB-splash-link"><a href="{% url api %}">API</a></li>
|
|
|
|
<li class="NB-splash-link"><a href="{% url press %}">Press</a></li>
|
2011-04-24 18:17:44 -04:00
|
|
|
<li class="NB-splash-link NB-splash-link-getsatisfaction"><a href="https://getsatisfaction.com/newsblur">Feedback</a></li>
|
2011-04-02 19:41:22 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2010-06-11 20:55:38 -04:00
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
2012-02-28 12:17:38 -08:00
|
|
|
{% block head_js %}
|
|
|
|
{% include_javascripts "common" %}
|
|
|
|
{% endblock head_js %}
|
2012-05-18 18:13:45 -07:00
|
|
|
|
|
|
|
<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 %});
|
2012-07-12 20:14:38 -07:00
|
|
|
|
2012-05-18 18:13:45 -07:00
|
|
|
</script>
|
|
|
|
|
2012-02-28 12:17:38 -08:00
|
|
|
{% block extra_head_js %}
|
|
|
|
{% endblock extra_head_js %}
|
|
|
|
|
2009-06-16 03:08:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|