Skip to content
Snippets Groups Projects
Commit bca3b944 authored by Olivier Goulet's avatar Olivier Goulet
Browse files

Merge branch 'revert-c5dc093d' into 'main'

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

See merge request !82
parents 4fc25daa 88828317
No related branches found
No related tags found
1 merge request!82Revert "[temp-fix] - wrong committer showing on homepage"
Pipeline #29906 passed
(function($, document) { (function($, document) {
$.ajax({ $.ajax({
url: "https://newsroom.eclipse.org/api/edition/39472", url: "https://newsroom.eclipse.org/api/edition?options[orderby][nid]=DESC&pagesize=1",
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
success: function(data, status) { 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-project-section").css('display', 'block');
$(".featured-committer-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 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'>" + var content = " <div class='col-xs-16'>" +
"<h3 class='h4'><strong>" + committer.name + "</strong></h3>" + "<h3 class='h4'><strong>" + committer.name + "</strong></h3>" +
...@@ -24,12 +24,12 @@ ...@@ -24,12 +24,12 @@
$('#commiters-container').append(result); $('#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-committer-project-section").css('display', 'block');
$(".featured-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;
var project_id = project_id.replace(/\./g, "_"); 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