mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Adding explainer for error-ridden feeds.
This commit is contained in:
parent
af847330c6
commit
cde8040c9b
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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' }, [
|
||||
|
|
Loading…
Add table
Reference in a new issue