To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 44645200 authored by Alexander Dietmüller's avatar Alexander Dietmüller
Browse files

Frontend: Remove unused css classes

parent 262b0b5c
......@@ -2,46 +2,33 @@ import m from 'mithril';
import Pvk from './Pvk';
class PvkList {
module.exports = {
oninit() {
this.m = m;
Pvk.loadlist();
m.redraw();
}
},
view() {
return this.m(
'.pvk-list',
this.m(
'table',
m(
'thead',
m(
'tr',
m('th', 'Course'),
m('th', 'Department'),
m('th', 'Name'),
m('th', 'Starting time'),
m('th', 'Ending time'),
),
),
m(
'tbody',
Pvk.list.map(pvk => m(
'tr.pvk-list-item',
m('td.pvk-list-item-title', pvk.lecture.title),
m('td.pvk-list-item-department', pvk.lecture.department),
m('td.pvk-list-item-assistant-name', pvk.assistant.name),
pvk.datetimes.map(timeslot => [m('td.pvk-list-item-timeslot', timeslot.start),
m('td.pvk-list-item-timeslot', timeslot.end)]),
m(
'td.pvk-list-btn ',
m('button', 'add course'),
),
)),
),
),
);
}
}
export default new PvkList();
return m('table', [
m('thead', [
m('tr', [
m('th', 'Course'),
m('th', 'Department'),
m('th', 'Name'),
m('th', 'Starting time'),
m('th', 'Ending time'),
]),
]),
m('tbody', Pvk.list.map(pvk =>
m('tr', [
m('td', pvk.lecture.title),
m('td', pvk.lecture.department),
m('td', pvk.assistant.name),
pvk.datetimes.map(timeslot => [
m('td', timeslot.start),
m('td', timeslot.end),
]),
m('td', m('button', 'add course')),
]))),
]);
},
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment