Merge pull request #814 from Robbt/add-podcast-import-date

Add podcast import date column to podcast page
This commit is contained in:
Kyle Robbertze 2019-05-05 17:00:19 +02:00 committed by GitHub
commit 889a3cff06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,9 @@ class Rest_PodcastController extends Zend_Rest_Controller
$stationPodcastId = Application_Model_Preference::getStationPodcastId(); $stationPodcastId = Application_Model_Preference::getStationPodcastId();
$result = PodcastQuery::create() $result = PodcastQuery::create()
// Don't return the Station podcast - we fetch it separately // Don't return the Station podcast - we fetch it separately
->filterByDbId($stationPodcastId, Criteria::NOT_EQUAL); ->filterByDbId($stationPodcastId, Criteria::NOT_EQUAL)
->leftJoinImportedPodcast()
->withColumn('auto_ingest_timestamp');
$total = $result->count(); $total = $result->count();
if ($limit > 0) { $result->setLimit($limit); } if ($limit > 0) { $result->setLimit($limit); }
$result->setOffset($offset) $result->setOffset($offset)

View File

@ -1365,7 +1365,8 @@ var AIRTIME = (function(AIRTIME) {
/* Creator */ { "sTitle" : $.i18n._("Creator") , "mDataProp" : "creator" , "sClass" : "library_creator" , "sWidth" : "160px" }, /* Creator */ { "sTitle" : $.i18n._("Creator") , "mDataProp" : "creator" , "sClass" : "library_creator" , "sWidth" : "160px" },
/* Website */ { "sTitle" : $.i18n._("Description") , "mDataProp" : "description" , "bVisible" : false , "sWidth" : "150px" }, /* Website */ { "sTitle" : $.i18n._("Description") , "mDataProp" : "description" , "bVisible" : false , "sWidth" : "150px" },
/* Year */ { "sTitle" : $.i18n._("Owner") , "mDataProp" : "owner" , "bVisible" : false , "sWidth" : "60px" }, /* Year */ { "sTitle" : $.i18n._("Owner") , "mDataProp" : "owner" , "bVisible" : false , "sWidth" : "60px" },
/* URL */ { "sTitle" : $.i18n._("Feed URL") , "mDataProp" : "url" , "bVisible" : false , "sWidth" : "60px" } /* URL */ { "sTitle" : $.i18n._("Feed URL") , "mDataProp" : "url" , "bVisible" : false , "sWidth" : "60px" },
/* Import Date */ { "sTitle" : $.i18n._("Import Date") ,"mDataProp" : "auto_ingest_timestamp", "bVisible" : true , "sWidth" : "60px" },
], ],
ajaxSourceURL = baseUrl+"rest/podcast", ajaxSourceURL = baseUrl+"rest/podcast",
podcastToolbarButtons = AIRTIME.widgets.Table.getStandardToolbarButtons(); podcastToolbarButtons = AIRTIME.widgets.Table.getStandardToolbarButtons();