Skip to content

Commit

Permalink
updated-team-meeting-data-6920 (hackforla#7043)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencejihoonjung authored Jun 30, 2024
1 parent f7d8b24 commit dc11c65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _data/external/vrms_data.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion _includes/events-page/right-col-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h4 class="day-header-1 title7">{{day}}</h4>
</div>
{% endfor %}
</div>
<p>*This meeting is not weekly, check project link for more details.</p>
</div>

<script src="../../assets/js/right-col-content.js" type="module"></script>
<script src="../../assets/js/right-col-content.js" type="module"></script>
10 changes: 6 additions & 4 deletions assets/js/right-col-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ function insertEventSchedule(eventData, page) {
}
let eventHtml;
// insert the correct html for the current page
// &#42; is "*", which indicates a meeting that is not weekly
if (page === "events") {
eventHtml = `<li>${event.start} - ${event.end} </li><li><a href="${event.hflaWebsiteUrl}">${event.name}</a> ${event.meetingName}</li>`;
eventHtml = `<li>${event.start} - ${event.end} </li><li><a href="${event.hflaWebsiteUrl}">${event.name}</a> ${event.meetingName}${event.isWeekly === false ? '&#42;' : ''}</li>`;
} else {
if(event.dsc != "") event.meetingName += ", ";
eventHtml = `<li>${event.start} - ${event.end} <a href="${event.hflaWebsiteUrl}">${event.name}</a> ${event.meetingName} ${event.dsc}</li>`;
Expand Down Expand Up @@ -117,9 +118,10 @@ function insertEventSchedule(eventData, page) {
start: localeTimeIn12Format(item.startTime),
end: localeTimeIn12Format(item.endTime),
hflaWebsiteUrl: item.project.hflaWebsiteUrl,
githubUrl: item.project.githubUrl,
};
return rv_object;
githubUrl: item.project.githubUrl,
isWeekly: item.isWeekly,
};
return rv_object;
}
}

0 comments on commit dc11c65

Please sign in to comment.