mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00

* master: (29 commits) Adding new preference for wrapping story content either at 700px or edge of screen. Bumping Android to v4.2.1. Work around API change that throws out hidden stories and vends blank pages. (#664) Fixing duplicate Pocket share extension message. Don't cache super-small images. Don't use cache filenames that are impossible to debug. Fix image prefetch for protocol-hopping redirects. Keep action replays around until there is less risk of them being needed. Overhaul and simplify nextUnread search algo. (#640) Ensure recounts don't get stuck behind story page requests. Updating push logging message when skipping. v4.2.0 of android app. New maintenance message. Updating fabfile to handle psycopg2/pgbouncer. Tweak load throb anim speed for stock devices. Tweak and comment new story list loading indicator. Move story list loader to correct position. (#582) New loading-progress animation for story lists. (#582) Chopping off milliseconds in push delta. Chopping off milliseconds in push delta. ...
168 lines
7.2 KiB
HTML
168 lines
7.2 KiB
HTML
{% load utils_tags %}
|
|
<!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">
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
window.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" }},
|
|
'is_admin' : {{ user.is_staff|yesno:"true,false" }},
|
|
'is_staff' : {{ user.is_staff|yesno:"true,false" }},
|
|
'premium_expire' : {% if user.profile.premium_expire %}new Date('{{ user.profile.premium_expire|date:"Y-m-d" }}'){% else %}null{% endif %},
|
|
'secret_token' : "{{ user.profile.secret_token }}",
|
|
'username' : "{{ user.username|safe }}",
|
|
{% if user.pk %}'user_id' : {{ user.pk }},{% endif %}
|
|
'email' : "{{ user.email|safe }}",
|
|
'MEDIA_URL' : "{{ MEDIA_URL }}",
|
|
'debug' : {{ debug|yesno:"true,false" }}
|
|
};
|
|
NEWSBLUR.Flags = {
|
|
'start_import_from_google_reader': {{ start_import_from_google_reader|yesno:"true,false" }}
|
|
};
|
|
NEWSBLUR.Preferences = {
|
|
'unread_view' : 0,
|
|
'lock_mouse_indicator' : 300,
|
|
'feed_pane_size' : {% firstof user_profile.feed_pane_size 258 %},
|
|
'hide_getting_started' : {{ user_profile.hide_getting_started|yesno:"true,false" }},
|
|
'has_setup_feeds' : {{ user_profile.has_setup_feeds|yesno:"true,false" }},
|
|
'has_found_friends' : {{ user_profile.has_found_friends|yesno:"true,false" }},
|
|
'has_trained_intelligence': {{ user_profile.has_trained_intelligence|yesno:"true,false" }},
|
|
'story_titles_pane_size' : 168,
|
|
'story_pane_anchor' : 'south',
|
|
'new_window' : 1,
|
|
'default_view' : 'feed',
|
|
'default_order' : 'newest',
|
|
'default_read_filter' : 'all',
|
|
'grid_columns' : 0,
|
|
'hide_read_feeds' : 0,
|
|
'show_tooltips' : 1,
|
|
'show_contextmenus' : 1,
|
|
'feed_order' : 'ALPHABETICAL',
|
|
'keyboard_verticalarrows' : 'story',
|
|
'keyboard_horizontalarrows': 'view',
|
|
'space_scroll_spacing' : 40,
|
|
'arrow_scroll_spacing' : 100,
|
|
'ssl' : 0,
|
|
'open_feed_action' : 0,
|
|
'read_story_delay' : 0,
|
|
'hide_story_changes' : 1,
|
|
'feed_view_single_story' : 0,
|
|
'animations' : true,
|
|
'dateformat' : "12",
|
|
'folder_counts' : false,
|
|
'send_emails' : {{ user_profile.send_emails|yesno:"true,false" }},
|
|
'email_cc' : true,
|
|
'view_settings' : {},
|
|
'story_layout' : 'split',
|
|
'collapsed_folders' : [],
|
|
'story_styling' : 'sans-serif',
|
|
'feed_size' : 'm',
|
|
'story_size' : 'm',
|
|
'story_line_spacing' : 'm',
|
|
'hide_public_comments' : false,
|
|
'story_button_placement' : "right",
|
|
'timezone' : "{{ user_profile.timezone }}",
|
|
'title_counts' : true,
|
|
'full_width_story' : false,
|
|
'truncate_story' : 'social',
|
|
'autoopen_folder' : false,
|
|
'show_content_preview' : true,
|
|
'doubleclick_feed' : 'open',
|
|
'doubleclick_unread' : 'markread',
|
|
'mark_read_river_confirm' : true,
|
|
'markread_nextfeed' : 'nextfeed',
|
|
'story_share_twitter' : true,
|
|
'story_share_facebook' : true,
|
|
'story_share_readitlater' : false,
|
|
'story_share_instapaper' : true,
|
|
'story_share_readability' : false,
|
|
'story_share_email' : true
|
|
};
|
|
NEWSBLUR.URLs = {
|
|
'google-reader-authorize' : "{% url "google-reader-authorize" %}",
|
|
'upload-avatar' : "{% url "upload-avatar" %}",
|
|
'opml-upload' : "{% url "opml-upload" %}",
|
|
'opml-export' : "{% url "opml-export" %}",
|
|
'domain' : "{% current_domain %}",
|
|
'favicon' : "/rss_feeds/icon/{id}",
|
|
'delete-account' : "{% url "profile-delete-account" %}"
|
|
};
|
|
NEWSBLUR.Models = {};
|
|
NEWSBLUR.Collections = {};
|
|
NEWSBLUR.Views = {};
|
|
NEWSBLUR.app = {};
|
|
</script>
|
|
|
|
{% include_stylesheets "common" %}
|
|
|
|
{% if user_profile.is_premium %}
|
|
{% if debug %}
|
|
<link rel="stylesheet" type="text/css" delay="//cloud.typography.com/6565292/731824/css/fonts.css" href="" />
|
|
{% else %}
|
|
<link rel="stylesheet" type="text/css" delay="//cloud.typography.com/6565292/711824/css/fonts.css" href="" />
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-8371683-2']);
|
|
_gaq.push(['_setDomainName', "{% current_domain %}"]);
|
|
_gaq.push(['_trackPageview']);
|
|
</script>
|
|
|
|
{% if not debug %}
|
|
<script type="text/javascript">
|
|
(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 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" %}"><img class="NB-splash-title" src="{{ MEDIA_URL }}/img/logo_newsblur_blur.png" /></a>
|
|
</div>
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{% block footer %}
|
|
{% render_footer "welcome" %}
|
|
{% endblock footer %}
|
|
|
|
</div>
|
|
|
|
{% block head_js %}
|
|
{% include_javascripts "common" %}
|
|
{% endblock 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>
|
|
|
|
{% block extra_head_js %}
|
|
{% endblock extra_head_js %}
|
|
|
|
</body>
|
|
</html>
|