diff --git a/lib/WebGUI/Asset/Wobject/Matrix.pm b/lib/WebGUI/Asset/Wobject/Matrix.pm index fe3feec4f..fa591356c 100644 --- a/lib/WebGUI/Asset/Wobject/Matrix.pm +++ b/lib/WebGUI/Asset/Wobject/Matrix.pm @@ -906,6 +906,16 @@ sub view { $var{'ratings.details.url'} = $self->getUrl("func=viewRatingDetails"); my $data = WebGUI::SQL->quickHashRef("select lastUpdated, productName, listingId from Matrix_listing where assetId=".quote($self->getId)." and status='approved' order by lastUpdated desc limit 1"); + my @lastUpdated; + my $sth = WebGUI::SQL->read("select listingId,lastUpdated,productName from Matrix_listing order by lastUpdated desc limit 20"); + while (my ($listingId, $lastUpdated, $productName) = $sth->array) { + push(@lastUpdated, { + url => $self->formatURL("viewDetail",$listingId), + name=>$productName, + lastUpdated=>WebGUI::DateTime::epochToHuman($lastUpdated,"%z") + }); + } + $var{'last_updated_loop'} = \@lastUpdated; $var{'best.updated.url'} = $self->formatURL("viewDetail",$data->{listingId}); $var{'best.updated.date'} = WebGUI::DateTime::epochToHuman($data->{lastUpdated},"%z");; $var{'best.updated.name'} = $data->{productName}; diff --git a/lib/WebGUI/i18n/English/Asset_Matrix.pm b/lib/WebGUI/i18n/English/Asset_Matrix.pm index ded2eae03..a7d390d9d 100644 --- a/lib/WebGUI/i18n/English/Asset_Matrix.pm +++ b/lib/WebGUI/i18n/English/Asset_Matrix.pm @@ -483,6 +483,25 @@ our $I18N = { best.updated.name
The name of the listing that was most recently updated.

+ +

+ last_update_loop
+ A loop containing the 20 most recently updated listings. +

+

+ url
+ The URL to view this listing. +

+

+ name
+ The name of the product. +

+

+ lastUpdated
+ The date this listing was updated. +

+
+

user.count