Skip to content
Snippets Groups Projects
Commit 6a455e76 authored by marcantoinem's avatar marcantoinem
Browse files

feat: Add more B1 / B2 indicator

parent 1a94d33d
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ where
<div class="flex group-text w-full justify-between">
<span>{p.day.to_string()}</span>
<span class="period-group">{p.hours.to_string()}</span>
<span>{p.week_nb.to_string()}</span>
</div>
}
}).collect_view()}
......
......@@ -47,7 +47,7 @@ fn PeriodEvent<'a>(
course: &'a TakenCourse,
period_type: &'static str,
) -> impl IntoView {
let location = period.hours.to_string() + " - " + period.room.as_str();
let mut location = period.hours.to_string() + " - " + period.room.as_str();
let sigle = course.sigle.to_string() + " - " + period_type;
let mut class = match i % 8 {
0 => " color1".to_string(),
......@@ -60,8 +60,14 @@ fn PeriodEvent<'a>(
_ => " color8".to_string(),
};
match period.week_nb {
WeekNumber::B1 => class.push_str(" b1"),
WeekNumber::B2 => class.push_str(" b2"),
WeekNumber::B1 => {
class.push_str(" b1");
location.push_str(" B1");
}
WeekNumber::B2 => {
class.push_str(" b2");
location.push_str(" B2");
}
_ => (),
}
......
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