Skip to content

Commit

Permalink
fixed variable name in the project.html template
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Apr 23, 2022
1 parent 5b56add commit 671b81c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions freshermeat/templates/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h5>News</h5>
for (let k in filters) { url.searchParams.append(k, filters[k]); }
fetch(url)
.then(response => response.json())
.then(elem => {
.then(result => {
document.getElementById("project-news").innerHTML = "";
if (result.metadata.total == 0) {
$('#project-news').append('No known news.')
Expand All @@ -261,9 +261,9 @@ <h5>News</h5>
})
.map(function (release) {
var cardHTML = newsTemplate({
'news_url': elem.link,
'title': elem.title,
'published': moment(elem.published).fromNow()
'news_url': release.link,
'title': release.title,
'published': moment(release.published).fromNow()
});
$('#project-news').append(cardHTML);
});
Expand Down

0 comments on commit 671b81c

Please sign in to comment.