mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
display next refresh date
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
var module = angular.module('commafeed.filters', []);
|
||||
|
||||
module.filter('entryDate', function() {
|
||||
return function(timestamp) {
|
||||
return function(timestamp, defaultValue) {
|
||||
if (!timestamp) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
var d = moment(timestamp);
|
||||
var now = moment();
|
||||
var formatted;
|
||||
|
||||
@@ -33,6 +33,13 @@
|
||||
<span>{{sub.lastRefresh|entryDate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.next_refresh}</label>
|
||||
<div class="controls horizontal-align">
|
||||
<span>{{sub.nextRefresh|entryDate:'${details.queued_for_refresh}' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">${details.feed_url}</label>
|
||||
|
||||
Reference in New Issue
Block a user