Adding explainer for error-ridden feeds.

This commit is contained in:
Samuel Clay 2013-04-17 14:36:13 -07:00
parent af847330c6
commit cde8040c9b
3 changed files with 7 additions and 1 deletions

View file

@ -152,6 +152,7 @@ def load_feed_statistics(request, feed_id):
feed.active_premium_subscribers = original_active_premium_subscribers
feed.premium_subscribers = original_premium_subscribers
stats['premium_update_interval_minutes'] = premium_update_interval_minutes
stats['errors_since_good'] = feed.errors_since_good
# Stories per month - average and month-by-month breakout
average_stories_per_month, story_count_history = feed.average_stories_per_month, feed.data.story_count_history

View file

@ -6155,7 +6155,7 @@ form.opml_import_form input {
}
.NB-modal-statistics .NB-statistics-update-explainer {
clear: both;
margin: 12px 24px 0;
margin: 6px 24px 6px;
font-size: 10px;
color: #808080;
}

View file

@ -117,6 +117,11 @@ _.extend(NEWSBLUR.ReaderStatistics.prototype, {
$.make('b', 'Why so infrequently?'),
'This site has published zero stories in the past month or has averaged less than a single story a month. As soon as it starts publishing at least once a month, it will automatically fetch more frequently.'
])),
(data.errors_since_good &&
$.make('div', { className: 'NB-statistics-update-explainer' }, [
$.make('b', 'Why is the next update not at the normal rate?'),
'This site has is throwing exceptions and is not in a healthy state. Look at the bottom of this dialog to see the exact status codes for the feed. The more errors for the feed, the longer time taken between fetches.'
])),
(!NEWSBLUR.Globals.is_premium && $.make('div', { className: 'NB-statistics-premium-stats' }, [
$.make('div', { className: 'NB-statistics-update'}, [
$.make('div', { className: 'NB-statistics-label' }, [