display next refresh date

This commit is contained in:
Athou
2013-05-22 16:10:50 +02:00
parent 97c2c12fe2
commit 0fdb714641
4 changed files with 33 additions and 6 deletions

View File

@@ -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;

View File

@@ -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>