2011-11-07 09:35:51 -08:00
|
|
|
{% load utils_tags %}
|
2021-11-14 13:42:06 -05:00
|
|
|
{% load static %}
|
|
|
|
{% load pipeline %}
|
2020-06-17 06:44:16 -04:00
|
|
|
{% autoescape off %}
|
2025-01-07 17:50:52 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>
|
|
|
|
{% block title %}NewsBlur{% endblock %}
|
|
|
|
</title>
|
|
|
|
<link rel="shortcut icon"
|
|
|
|
href="{{ MEDIA_URL }}img/favicon.ico"
|
|
|
|
type="image/png" />
|
|
|
|
<link rel="icon" href="{{ MEDIA_URL }}img/favicon_32.png" sizes="32x32" />
|
|
|
|
<link rel="icon" href="{{ MEDIA_URL }}img/favicon_64.png" sizes="64x64" />
|
|
|
|
<link rel="apple-touch-icon"
|
|
|
|
href="/media/img/mobile/apple-touch-icon-precomposed.png" />
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
|
|
<meta name="msapplication-TileImage"
|
|
|
|
content="{{ MEDIA_URL }}img/logo_144.png" />
|
|
|
|
<meta name="msapplication-TileColor" content="#F7E5A8" />
|
|
|
|
<meta name="apple-itunes-app" content="app-id=463981119">
|
|
|
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
|
|
<!-- <link rel="mask-icon"
|
|
|
|
href="{{ MEDIA_URL }}img/favicon_monochrome.svg"
|
|
|
|
color="orange"> -->
|
|
|
|
<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" }},
|
2022-02-16 09:20:43 -05:00
|
|
|
'is_premium' : {{ user_profile.is_premium|yesno:"true,false" }},
|
|
|
|
'is_archive' : {{ user_profile.is_archive|yesno:"true,false" }},
|
|
|
|
'is_pro' : {{ user_profile.is_pro|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" }},
|
2022-02-16 09:20:43 -05:00
|
|
|
'premium_expire' : {% if user_profile.premium_expire %}new Date('{{ user_profile.premium_expire|date:"Y-m-d" }}'){% else %}null{% endif %},
|
|
|
|
'premium_renewal' : {{ user_profile.premium_renewal|yesno:"true,false" }},
|
2022-02-16 13:27:56 -05:00
|
|
|
'active_provider' : {% if user_profile.active_provider %}"{{ user_profile.active_provider }}"{% else %}null{% endif %},
|
2022-02-16 09:20:43 -05:00
|
|
|
'secret_token' : "{{ user_profile.secret_token }}",
|
2011-03-13 16:24:49 -04:00
|
|
|
'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 }}",
|
2022-01-18 12:40:49 -05:00
|
|
|
'debug' : {{ debug|yesno:"true,false" }},
|
|
|
|
'default_days_of_unread' : {% settings_value "DAYS_OF_UNREAD" %}
|
2010-06-11 20:55:38 -04:00
|
|
|
};
|
2010-08-17 20:59:47 -04:00
|
|
|
NEWSBLUR.Flags = {
|
|
|
|
};
|
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,
|
2021-04-15 19:12:51 -04:00
|
|
|
'feed_pane_size' : {% firstof user_profile.feed_pane_size 278 %},
|
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" }},
|
2022-04-26 17:38:06 -04:00
|
|
|
'story_titles_pane_size' : 420,
|
2015-03-09 15:32:05 -07:00
|
|
|
'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',
|
2024-11-19 22:10:05 -08:00
|
|
|
'default_stories_discover': 'feed',
|
2022-05-16 17:21:46 -04:00
|
|
|
'default_dashboard_count' : 5,
|
2015-02-06 15:02:32 -08:00
|
|
|
'grid_columns' : 0,
|
2020-10-28 11:51:42 -04:00
|
|
|
'grid_height' : 'm',
|
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,
|
2021-02-01 14:59:24 -05:00
|
|
|
'notification_title_only' : 0,
|
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',
|
2017-11-05 14:01:25 -08:00
|
|
|
'infrequent_stories_per_month': 30,
|
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-03-13 16:24:49 -04:00
|
|
|
'feed_view_single_story' : 0,
|
2023-11-16 08:46:31 -05:00
|
|
|
'show_discover' : true,
|
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',
|
2021-07-07 15:49:36 -04:00
|
|
|
'feed_font' : 'whitney',
|
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",
|
2022-02-16 17:11:08 -05:00
|
|
|
'days_of_unread' : {% firstof user_profile.days_of_unread 30 %},
|
2011-03-13 16:24:49 -04:00
|
|
|
'timezone' : "{{ user_profile.timezone }}",
|
2013-01-06 15:55:24 -08:00
|
|
|
'title_counts' : true,
|
2017-12-15 19:14:18 -08:00
|
|
|
'show_global_shared_stories': true,
|
|
|
|
'show_infrequent_site_stories': true,
|
2015-02-26 18:20:03 -08:00
|
|
|
'full_width_story' : false,
|
2022-02-28 12:31:23 -05:00
|
|
|
'story_position' : 'center',
|
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,
|
2021-04-06 19:24:54 -04:00
|
|
|
'image_preview' : 'small-left',
|
2015-03-09 12:52:00 -07:00
|
|
|
'mark_read_on_scroll_titles' : false,
|
2021-07-02 16:11:44 -04:00
|
|
|
'density' : 'comfortable',
|
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,
|
2024-08-04 19:09:43 -07:00
|
|
|
'story_share_copyurl' : true,
|
|
|
|
'story_share_copytext' : true,
|
2024-12-01 23:38:01 -05:00
|
|
|
'story_share_print' : true,
|
2020-06-11 19:25:03 -04:00
|
|
|
'story_share_email' : true,
|
2024-12-01 23:38:01 -05:00
|
|
|
'show_sideoption_email' : true,
|
|
|
|
'show_sideoption_save' : true,
|
|
|
|
'show_sideoption_train' : true,
|
|
|
|
'show_sideoption_share' : true,
|
|
|
|
'show_sideoption_related' : true,
|
2020-07-14 17:30:35 -04:00
|
|
|
'theme' : 'auto',
|
2021-04-06 15:04:44 -04:00
|
|
|
'highlights' : true,
|
|
|
|
'dashboard_columns' : 2
|
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
|
|
|
'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}",
|
2015-08-22 18:20:04 -07:00
|
|
|
'delete-account' : "{% url "profile-delete-account" %}",
|
2022-01-28 12:08:05 -05:00
|
|
|
'folder_rss' : "/reader/folder_rss/{user_id}/{secret_token}/{unread_filter}/{folder_title}",
|
|
|
|
'paypal_checkout_js' : 'https://www.paypal.com/sdk/js?vault=true&intent=subscription&client-id={% settings_value "PAYPAL_API_CLIENTID" %}',
|
2022-04-06 15:56:13 -04:00
|
|
|
'paypal_return' : "https://{% current_domain %}{% url "paypal-return" %}",
|
2025-01-07 17:50:52 -08:00
|
|
|
'paypal_archive_return' : "https://{% current_domain %}{% url "paypal-archive-return" %}",
|
|
|
|
'paypal_pro_return' : "https://{% current_domain %}{% url "paypal-pro-return" %}"
|
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 = {};
|
2025-01-07 17:50:52 -08:00
|
|
|
</script>
|
|
|
|
{% include_stylesheets "common" %}
|
|
|
|
{% if debug_assets %}
|
|
|
|
<link rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="https://cloud.typography.com/6565292/731824/css/fonts.css" />
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="https://cloud.typography.com/6565292/711824/css/fonts.css" />
|
|
|
|
{% endif %}
|
|
|
|
</head>
|
|
|
|
<body class="{% block bodyclass %}{% endblock %} {% if user.is_staff %}NB-staff{% endif %} {% if user_profile.is_premium %}NB-premium{% endif %}">
|
|
|
|
{% block header %}{% endblock %}
|
|
|
|
<div class="NB-body-inner">
|
|
|
|
<div class="NB-splash-info NB-splash-top">
|
|
|
|
<a href="{% url "index" %}">
|
|
|
|
<div class="NB-splash-title NB-splash-blurred-logo"></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{% block footer %}
|
|
|
|
{% render_footer "welcome" %}
|
|
|
|
{% endblock footer %}
|
2012-09-17 11:52:11 -07:00
|
|
|
</div>
|
2025-01-07 17:50:52 -08:00
|
|
|
{% block head_js %}
|
|
|
|
{% include_javascripts "common" %}
|
|
|
|
{% endblock head_js %}
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2012-05-18 18:13:45 -07:00
|
|
|
_.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
|
|
|
|
2025-01-07 17:50:52 -08:00
|
|
|
</script>
|
|
|
|
{% block extra_head_js %}
|
|
|
|
{% endblock extra_head_js %}
|
|
|
|
</body>
|
|
|
|
</html>
|
2020-06-17 06:44:16 -04:00
|
|
|
{% endautoescape %}
|