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>
|
2013-07-03 15:49:23 -07:00
|
|
|
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico" type="image/png" />
|
2012-10-05 07:40:11 -07:00
|
|
|
<link rel="icon" href="{{ MEDIA_URL }}img/favicon_32.png" sizes="32x32"/>
|
|
|
|
<link rel="icon" href="{{ MEDIA_URL }}img/favicon_64.png" sizes="64x64"/>
|
2012-04-20 08:39:40 -07:00
|
|
|
<link rel="apple-touch-icon" href="/media/img/mobile/apple-touch-icon-precomposed.png" />
|
2012-09-24 11:47:37 -07:00
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
2012-09-24 17:05:31 -07:00
|
|
|
<meta name="msapplication-TileImage" content="{{ MEDIA_URL }}img/logo_144.png" />
|
|
|
|
<meta name="msapplication-TileColor" content="#F7E5A8"/>
|
2012-12-10 17:05:39 -08:00
|
|
|
<meta name="apple-itunes-app" content="app-id=463981119">
|
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" }},
|
2014-05-12 12:14:06 -07:00
|
|
|
'premium_expire' : {% if user.profile.premium_expire %}new Date('{{ user.profile.premium_expire|date:"Y-m-d" }}'){% else %}null{% endif %},
|
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,
|
2014-11-20 19:35:26 -08:00
|
|
|
'lock_mouse_indicator' : 300,
|
2014-05-28 21:09:19 -07:00
|
|
|
'feed_pane_size' : {% firstof user_profile.feed_pane_size 258 %},
|
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" }},
|
2015-03-09 15:32:05 -07:00
|
|
|
'story_titles_pane_size' : 368,
|
|
|
|
'story_pane_anchor' : 'west',
|
2011-03-13 16:24:49 -04:00
|
|
|
'new_window' : 1,
|
2012-08-17 12:46:36 -07:00
|
|
|
'default_view' : 'feed',
|
2012-07-18 20:19:54 -07:00
|
|
|
'default_order' : 'newest',
|
|
|
|
'default_read_filter' : 'all',
|
2015-02-06 15:02:32 -08:00
|
|
|
'grid_columns' : 0,
|
2011-03-13 16:24:49 -04:00
|
|
|
'hide_read_feeds' : 0,
|
2011-05-01 19:58:40 -04:00
|
|
|
'show_tooltips' : 1,
|
2013-07-12 13:20:32 -07:00
|
|
|
'show_contextmenus' : 1,
|
2011-04-25 20:53:29 -04:00
|
|
|
'feed_order' : 'ALPHABETICAL',
|
2013-05-22 14:24:25 -07:00
|
|
|
'keyboard_verticalarrows' : 'story',
|
|
|
|
'keyboard_horizontalarrows': 'view',
|
2013-05-22 16:40:56 -07:00
|
|
|
'space_scroll_spacing' : 40,
|
|
|
|
'arrow_scroll_spacing' : 100,
|
2015-04-01 17:07:46 -07:00
|
|
|
'space_bar_action' : 'next_unread',
|
2012-02-29 17:18:55 -08:00
|
|
|
'ssl' : 0,
|
2015-05-18 17:29:20 -07:00
|
|
|
'open_feed_action' : 'newest',
|
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,
|
2014-01-30 16:39:10 -08:00
|
|
|
'dateformat' : "12",
|
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" }},
|
2013-01-23 11:06:28 -08:00
|
|
|
'email_cc' : true,
|
2011-03-13 16:24:49 -04:00
|
|
|
'view_settings' : {},
|
2013-02-11 13:17:49 -08:00
|
|
|
'story_layout' : 'split',
|
2011-03-13 16:24:49 -04:00
|
|
|
'collapsed_folders' : [],
|
|
|
|
'story_styling' : 'sans-serif',
|
2014-07-18 17:07:05 -07:00
|
|
|
'feed_size' : 'm',
|
|
|
|
'story_size' : 'm',
|
2014-04-08 16:49:11 -07:00
|
|
|
'story_line_spacing' : 'm',
|
2012-10-23 14:07:28 -07:00
|
|
|
'hide_public_comments' : false,
|
2014-04-17 10:25:30 -07:00
|
|
|
'story_button_placement' : "right",
|
2011-03-13 16:24:49 -04:00
|
|
|
'timezone' : "{{ user_profile.timezone }}",
|
2013-01-06 15:55:24 -08:00
|
|
|
'title_counts' : true,
|
2015-02-26 18:20:03 -08:00
|
|
|
'full_width_story' : false,
|
2013-02-05 12:52:32 -08:00
|
|
|
'truncate_story' : 'social',
|
2013-08-23 13:43:15 -07:00
|
|
|
'autoopen_folder' : false,
|
2014-04-07 16:55:08 -07:00
|
|
|
'show_content_preview' : true,
|
2015-03-09 12:52:00 -07:00
|
|
|
'mark_read_on_scroll_titles' : false,
|
2014-01-02 16:30:19 -08:00
|
|
|
'doubleclick_feed' : 'open',
|
|
|
|
'doubleclick_unread' : 'markread',
|
2015-02-10 18:03:16 -08:00
|
|
|
'mark_read_river_confirm' : true,
|
2014-09-09 15:01:12 -07:00
|
|
|
'markread_nextfeed' : 'nextfeed',
|
2011-03-13 16:24:49 -04:00
|
|
|
'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 = {
|
2013-03-20 15:05:52 -07:00
|
|
|
'google-reader-authorize' : "{% url "google-reader-authorize" %}",
|
|
|
|
'upload-avatar' : "{% url "upload-avatar" %}",
|
|
|
|
'opml-upload' : "{% url "opml-upload" %}",
|
|
|
|
'opml-export' : "{% url "opml-export" %}",
|
2012-02-13 11:07:32 -08:00
|
|
|
'domain' : "{% current_domain %}",
|
2013-01-03 10:33:22 -08:00
|
|
|
'favicon' : "/rss_feeds/icon/{id}",
|
2013-03-20 15:05:52 -07:00
|
|
|
'delete-account' : "{% url "profile-delete-account" %}"
|
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" %}
|
2014-04-07 19:52:26 -07:00
|
|
|
|
|
|
|
{% if user_profile.is_premium %}
|
|
|
|
{% if debug %}
|
2014-04-10 11:07:02 -07:00
|
|
|
<link rel="stylesheet" type="text/css" delay="//cloud.typography.com/6565292/731824/css/fonts.css" href="" />
|
2014-04-07 19:52:26 -07:00
|
|
|
{% else %}
|
2014-04-10 11:07:02 -07:00
|
|
|
<link rel="stylesheet" type="text/css" delay="//cloud.typography.com/6565292/711824/css/fonts.css" href="" />
|
2014-04-07 19:52:26 -07:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2010-11-13 15:23:21 -05:00
|
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', 'UA-8371683-2']);
|
2012-07-26 18:24:41 -07:00
|
|
|
_gaq.push(['_setDomainName', "{% current_domain %}"]);
|
2010-11-13 15:23:21 -05:00
|
|
|
_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>
|
|
|
|
|
2013-01-09 15:39:31 -08:00
|
|
|
<body class="{% block bodyclass %}{% endblock %} {% if user.is_staff %}NB-staff{% endif %} {% if user_profile.is_premium %}NB-premium{% endif %}">
|
2010-12-02 17:09:45 -05:00
|
|
|
|
2010-06-11 20:55:38 -04:00
|
|
|
{% block header %}{% endblock %}
|
2012-09-17 11:52:11 -07:00
|
|
|
|
|
|
|
<div class="NB-body-inner">
|
|
|
|
<div class="NB-splash-info NB-splash-top">
|
2013-03-20 15:05:52 -07:00
|
|
|
<a href="{% url "index" %}"><img class="NB-splash-title" src="{{ MEDIA_URL }}/img/logo_newsblur_blur.png" /></a>
|
2012-09-17 11:52:11 -07:00
|
|
|
</div>
|
2011-04-02 19:41:22 -04:00
|
|
|
|
2012-09-17 11:52:11 -07:00
|
|
|
{% block content %}{% endblock %}
|
2013-04-18 13:49:17 -07:00
|
|
|
|
|
|
|
{% block footer %}
|
|
|
|
{% render_footer "welcome" %}
|
|
|
|
{% endblock footer %}
|
2012-09-17 11:52:11 -07:00
|
|
|
|
2011-04-02 19:41:22 -04:00
|
|
|
</div>
|
|
|
|
|
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>
|