@@ -65,15 +65,6 @@ export default class Info extends React.Component<Props> {
65
65
return ret ;
66
66
}
67
67
68
- private get tags ( ) {
69
- const tags = this . controller . tags ;
70
-
71
- return [
72
- ...tags . userTags . map ( ( tag ) => tag . name ) ,
73
- ...tags . mapperTags ,
74
- ] ;
75
- }
76
-
77
68
private get withEditDescription ( ) {
78
69
return this . controller . beatmapset . description . bbcode != null ;
79
70
}
@@ -196,13 +187,34 @@ export default class Info extends React.Component<Props> {
196
187
</ div >
197
188
</ div >
198
189
199
- { this . tags . length > 0 &&
190
+ { this . controller . tags . userTags . length > 0 &&
191
+ < div className = 'beatmapset-info__row beatmapset-info__row--value-overflow' >
192
+ < h3 className = 'beatmapset-info__header' >
193
+ { trans ( 'beatmapsets.show.info.user_tags' ) }
194
+ </ h3 >
195
+ < div className = 'beatmapset-info__value-overflow' >
196
+ { this . controller . tags . userTags . map ( ( tag , i ) => (
197
+ < React . Fragment key = { `${ tag . name } -${ i } ` } >
198
+ < a
199
+ className = 'beatmapset-info__link'
200
+ href = { route ( 'beatmapsets.index' , { q : tag . name } ) }
201
+ >
202
+ { tag . name }
203
+ </ a >
204
+ { ' ' }
205
+ </ React . Fragment >
206
+ ) ) }
207
+ </ div >
208
+ </ div >
209
+ }
210
+
211
+ { this . controller . tags . mapperTags . length > 0 &&
200
212
< div className = 'beatmapset-info__row beatmapset-info__row--value-overflow' >
201
213
< h3 className = 'beatmapset-info__header' >
202
- { trans ( 'beatmapsets.show.info.tags ' ) }
214
+ { trans ( 'beatmapsets.show.info.mapper_tags ' ) }
203
215
</ h3 >
204
216
< div className = 'beatmapset-info__value-overflow' >
205
- { this . tags . map ( ( tag , i ) => (
217
+ { this . controller . tags . mapperTags . map ( ( tag , i ) => (
206
218
< React . Fragment key = { `${ tag } -${ i } ` } >
207
219
< a
208
220
className = 'beatmapset-info__link'
0 commit comments