Skip to content
Snippets Groups Projects
Commit 88828317 authored by Christopher Guindon's avatar Christopher Guindon Committed by Olivier Goulet
Browse files

Revert "[temp-fix] - wrong committer showing on homepage"

This reverts commit c5dc093d
parent 4fc25daa
No related branches found
No related tags found
1 merge request!82Revert "[temp-fix] - wrong committer showing on homepage"
Pipeline #29904 passed
(function($, document) {
$.ajax({
url: "https://newsroom.eclipse.org/api/edition/39472",
url: "https://newsroom.eclipse.org/api/edition?options[orderby][nid]=DESC&pagesize=1",
type: 'GET',
dataType: 'json',
success: function(data, status) {
if (data.featured_committer !== undefined && data.featured_committer.length !== 0) {
if (data.editions[0].featured_committer !== undefined && data.editions[0].featured_committer.length !== 0) {
$(".featured-committer-project-section").css('display', 'block');
$(".featured-committer-section").css('display', 'block');
const committer = data.featured_committer
const committer = data.editions[0].featured_committer
var image = "<div class='col-xs-8 padding-0 eclipsefdn-user-display-circle'><img class='img img-responsive' src=" + committer.picture + "></div>"
var content = " <div class='col-xs-16'>" +
"<h3 class='h4'><strong>" + committer.name + "</strong></h3>" +
......@@ -24,12 +24,12 @@
$('#commiters-container').append(result);
}
if (data.featured_project !== undefined && data.featured_project.length !== 0) {
if (data.editions[0].featured_project !== undefined && data.editions[0].featured_project.length !== 0) {
$(".featured-committer-project-section").css('display', 'block');
$(".featured-project-section").css('display', 'block');
const project = data.featured_project;
const project = data.editions[0].featured_project;
var project_id = project.id;
var project_id = project_id.replace(/\./g, "_");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment