Skip to content

Commit 0495e21

Browse files
committed
content: chronology labels in contribution lists
1 parent 4f248d1 commit 0495e21

5 files changed

+14
-3
lines changed

src/content/dependencies/generateContributionList.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export default {
88
.map(contrib => relation('linkContribution', contrib)),
99
}),
1010

11-
generate: (relations, {html}) =>
11+
slots: {
12+
chronologyKind: {type: 'string'},
13+
},
14+
15+
generate: (relations, slots, {html}) =>
1216
html.tag('ul',
1317
{[html.onlyIfContent]: true},
1418

@@ -20,5 +24,6 @@ export default {
2024
showContribution: true,
2125
showChronology: true,
2226
preventWrapping: false,
27+
chronologyKind: slots.chronologyKind,
2328
})))),
2429
};

src/content/dependencies/generateContributionTooltipChronologySection.js

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default {
5050
'flash',
5151
'track',
5252
'trackArt',
53+
'trackContribution',
5354
'wallpaperArt'),
5455
},
5556
},

src/content/dependencies/generateFlashInfoPage.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ export default {
147147
title: language.$('releaseInfo.contributors'),
148148
}),
149149

150-
relations.contributorContributionList,
150+
relations.contributorContributionList.slots({
151+
chronologyKind: 'flash',
152+
}),
151153
]),
152154

153155
relations.artistCommentarySection,

src/content/dependencies/generateTrackInfoPage.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ export default {
217217
title: language.$('releaseInfo.contributors'),
218218
}),
219219

220-
relations.contributorContributionList,
220+
relations.contributorContributionList.slots({
221+
chronologyKind: 'trackContribution',
222+
}),
221223
]),
222224

223225
html.tags([

src/strings-default.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ misc:
500500
flash: "flash"
501501
track: "track"
502502
trackArt: "track art"
503+
trackContribution: "track contribution"
503504
wallpaperArt: "wallpaper art"
504505

505506
# chronology:

0 commit comments

Comments
 (0)