1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
export default {
contentDependencies: ['generateAdditionalNamesBoxItem'],
extraDependencies: ['html', 'language'],
relations: (relation, additionalNames) => ({
items:
additionalNames
.map(entry => relation('generateAdditionalNamesBoxItem', entry)),
}),
generate: (relations, {html, language}) =>
html.tag('div', {id: 'additional-names-box'}, [
html.tag('p',
language.$('misc.additionalNames.title')),
html.tag('ul',
relations.items
.map(item => html.tag('li', item))),
]),
};
|