1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
export default {
relations: (relation, track) => ({
trackList:
relation('generateNearbyTrackList',
track.referencedTracks,
track,
[]),
}),
generate: (relations, {html}) =>
html.tag('ul', {[html.onlyIfContent]: true}, [
// This code is kept here because it's probably the only
// detailed example of html.inside() lol
/*
html.inside(relations.previousProductionTrackList)
.map(li => html.inside(li))
.map(label =>
html.tag('li',
language.$('trackList.item.previousProduction',
{track: label}))),
*/
html.inside(relations.trackList),
]),
};
|