Skip to content
Snippets Groups Projects
Commit c5dc093d authored by Christopher Guindon's avatar Christopher Guindon
Browse files

[temp-fix] - wrong committer showing on homepage


Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>
parent e0959c3a
No related branches found
No related tags found
No related merge requests found
Pipeline #26867 passed
(function($, document) {
$.ajax({
url: "https://newsroom.eclipse.org/api/edition?options[orderby][nid]=DESC&pagesize=1",
url: "https://newsroom.eclipse.org/api/edition/39472",
type: 'GET',
dataType: 'json',
success: function(data, status) {
if (data.editions[0].featured_committer !== undefined && data.editions[0].featured_committer.length !== 0) {
if (data.featured_committer !== undefined && data.featured_committer.length !== 0) {
$(".featured-committer-project-section").css('display', 'block');
$(".featured-committer-section").css('display', 'block');
const committer = data.editions[0].featured_committer
const committer = data.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.editions[0].featured_project !== undefined && data.editions[0].featured_project.length !== 0) {
if (data.featured_project !== undefined && data.featured_project.length !== 0) {
$(".featured-committer-project-section").css('display', 'block');
$(".featured-project-section").css('display', 'block');
const project = data.editions[0].featured_project;
const project = data.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