×
`;
}
};
Template.Popup = class {
static list_item(i, list_tile_color, unique, department, number, profname, list_sub_color, line) {
return `
${department} ${number} with ${profname} (${unique})
►
${line}
`;
}
static conflict_message(conflict_message) {
return `
${conflict_message}>`;
}
static line(line) {
let { days, start_time, end_time, location_link, location_full } = line;
return `${days}:
${start_time} to ${end_time}
${location_full}
`;
}
};
Template.Import = class {
static import_button() {
return `
`;
}
static waitlist_import_button() {
return `
`;
}
static store_waitlist_message() {
return `
`;
}
};
Template.Options = class {
static options_row(key, enabled) {
let button_text = enabled ? "Turn Off" : "Turn On";
let button_color = enabled ? Colors.closed : Colors.open;
let label_text = capitalizeString(key.replace(/([A-Z]+)*([A-Z][a-z])/g, "$1 $2"));
return `
${label_text}
`;
}
static contributor_card(username, name, image_url, profile_url) {
return `

${name ? `
${name}
` : ""}
${username}
`;
}
};