hr-design-system-handlebars 1.119.5 → 1.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/assets/index.css +6 -3
- package/dist/views/components/page/components/commentinfo.hbs +1 -1
- package/dist/views/components/page/components/metadata_wrapper.hbs +55 -0
- package/dist/views/components/page/components/metadatabox.hbs +4 -11
- package/dist/views/components/social_sharing/social_sharing_ticker_item.hbs +1 -1
- package/dist/views/components/ticker/ticker_item/content_footer_ticker_item.hbs +32 -0
- package/dist/views_static/components/page/components/commentinfo.hbs +1 -1
- package/dist/views_static/components/page/components/metadata_wrapper.hbs +55 -0
- package/dist/views_static/components/page/components/metadatabox.hbs +4 -11
- package/dist/views_static/components/social_sharing/social_sharing_ticker_item.hbs +1 -1
- package/dist/views_static/components/ticker/ticker_item/content_footer_ticker_item.hbs +32 -0
- package/package.json +1 -1
- package/src/assets/fixtures/content/content_footer/content_footer.json +14 -12
- package/src/assets/fixtures/page/metadatabox.inc.json +87 -40
- package/src/assets/fixtures/page/metadatabox.json +10 -1
- package/src/assets/fixtures/page/story/story.inc.json +37 -48
- package/src/assets/fixtures/ticker/ticker_item/content_footer_ticker_item.inc.json +147 -0
- package/src/assets/fixtures/ticker/ticker_item/content_footer_ticker_item.json +77 -0
- package/src/stories/views/components/page/components/commentinfo.hbs +1 -1
- package/src/stories/views/components/page/components/metadata_wrapper.hbs +55 -0
- package/src/stories/views/components/page/components/metadatabox.hbs +4 -11
- package/src/stories/views/components/page/components/metadatabox.stories.js +16 -5
- package/src/stories/views/components/page/fixtures/metadatabox.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_audio.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_livestream.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_video.json +1 -1
- package/src/stories/views/components/social_sharing/social_sharing_ticker_item.hbs +1 -1
- package/src/stories/views/components/ticker/ticker_item/content_footer_ticker_item.hbs +32 -0
- package/src/stories/views/components/ticker/ticker_item/content_footer_ticker_item.mdx +29 -0
- package/src/stories/views/components/ticker/ticker_item/content_footer_ticker_item.stories.js +123 -0
- package/src/stories/views/components/ticker/ticker_item/fixtures/content_footer_ticker_item.json +1 -0
- package/dist/views/components/content/content_footer/content_footer_ticker_item.hbs +0 -57
- package/dist/views/components/page/components/author.hbs +0 -48
- package/dist/views_static/components/content/content_footer/content_footer_ticker_item.hbs +0 -57
- package/dist/views_static/components/page/components/author.hbs +0 -48
- package/src/stories/views/components/content/content_footer/content_footer_ticker_item.hbs +0 -57
- package/src/stories/views/components/page/components/author.hbs +0 -48
|
@@ -2,8 +2,33 @@
|
|
|
2
2
|
"topline": "Quer über den großen Sylter Deich",
|
|
3
3
|
"title": "Zwei flinke Boxer jagen die quirlige Eva und ihren Mops",
|
|
4
4
|
"shorttext": "Vogel Quax zwickt Johnys Pferd Bim. Sylvia wagt quick den Jux bei Pforzheim. Polyfon zwitschernd aßen Mäxchens Vögel Rüben, Joghurt und Quark. Fix quäkt Jürgen blöd vom Paß. Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich. Falsches Üben von Xylophonmusik quält jeden größeren Zwerg.",
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
"editorialData": {
|
|
6
|
+
"hasOneAuthor": true,
|
|
7
|
+
"hasAuthors": true,
|
|
8
|
+
"hasMultipleAuthors": false,
|
|
9
|
+
"firstAuthorItem": {
|
|
10
|
+
"hasProfileLink": true,
|
|
11
|
+
"from": "Von",
|
|
12
|
+
"authorName": "Steffen Rebhahn",
|
|
13
|
+
"delimiter": "",
|
|
14
|
+
"link": {
|
|
15
|
+
"url": "/author-url",
|
|
16
|
+
"isTargetBlank": false
|
|
17
|
+
},
|
|
18
|
+
"textAfterAuthor": "(Redaktion hessenschau.de)",
|
|
19
|
+
"profileImage": {
|
|
20
|
+
"@->jsoninclude": "page/story/story_images.inc.json",
|
|
21
|
+
"@->contentpath": "author",
|
|
22
|
+
"@->replaceToken": [
|
|
23
|
+
{
|
|
24
|
+
"@->token": "image",
|
|
25
|
+
"@->value": "mitarbeiter-portraet-steffen-rebhahn-106"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
|
|
7
32
|
"hasDwellTime": true,
|
|
8
33
|
"isArchiveContent": false,
|
|
9
34
|
"displayPageLead": {
|
|
@@ -17,7 +42,7 @@
|
|
|
17
42
|
"@->token": "image",
|
|
18
43
|
"@->value": "connichi-106"
|
|
19
44
|
}
|
|
20
|
-
]
|
|
45
|
+
]
|
|
21
46
|
},
|
|
22
47
|
"documentModificationDate": {
|
|
23
48
|
"isModificationDate": false,
|
|
@@ -30,54 +55,18 @@
|
|
|
30
55
|
"htmlDateTime": "2024-02-15T19:30+0200",
|
|
31
56
|
"date": "15.02.24",
|
|
32
57
|
"time": "19:30"
|
|
33
|
-
},
|
|
58
|
+
},
|
|
34
59
|
"userComments": {
|
|
35
60
|
"HasOneComment": false,
|
|
36
61
|
"quantity": "117"
|
|
37
62
|
},
|
|
38
63
|
"byline": "Bylinetext",
|
|
39
|
-
|
|
40
|
-
"authorImage": {
|
|
41
|
-
"@->jsoninclude": "page/story/story_images.inc.json",
|
|
42
|
-
"@->contentpath": "author",
|
|
43
|
-
"@->replaceToken": [
|
|
44
|
-
{
|
|
45
|
-
"@->token": "image",
|
|
46
|
-
"@->value": "mitarbeiter-portraet-steffen-rebhahn-106"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"authorUrl": "/author-url",
|
|
51
|
-
"webviewAuthorUrl": "webview-author-url",
|
|
52
|
-
"authorItems": [
|
|
53
|
-
{
|
|
54
|
-
"hasProfileLink": false,
|
|
55
|
-
"from": "Von",
|
|
56
|
-
"textAfterAuthor": "Horst Schlämmer",
|
|
57
|
-
"delimiter": ", "
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"hasProfileLink": false,
|
|
61
|
-
"from": "",
|
|
62
|
-
"textAfterAuthor": "Karl Dall",
|
|
63
|
-
"delimiter": " und "
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"hasProfileLink": true,
|
|
67
|
-
"from": "",
|
|
68
|
-
"authorName": "Peter Lustig",
|
|
69
|
-
"delimiter": "",
|
|
70
|
-
"link": {
|
|
71
|
-
"url": "/author-url",
|
|
72
|
-
"isTargetBlank": false
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
],
|
|
64
|
+
|
|
76
65
|
"copytextParagraph": {
|
|
77
66
|
"@->jsoninclude": "content/copytext/copytext.json",
|
|
78
67
|
"@->contentpath": "copytextParagraph"
|
|
79
68
|
},
|
|
80
|
-
"source": ["Horst Schlämmer","hessenschau.de"],
|
|
69
|
+
"source": ["Horst Schlämmer", "hessenschau.de"],
|
|
81
70
|
"geotag": [
|
|
82
71
|
{
|
|
83
72
|
"url": "/Frankfurt-url",
|
|
@@ -98,7 +87,7 @@
|
|
|
98
87
|
{
|
|
99
88
|
"url": "/Hanau-url",
|
|
100
89
|
"title": "Hanau"
|
|
101
|
-
}
|
|
90
|
+
}
|
|
102
91
|
],
|
|
103
92
|
"topictags": [
|
|
104
93
|
{
|
|
@@ -128,9 +117,9 @@
|
|
|
128
117
|
{
|
|
129
118
|
"url": "/Gesundheit-url",
|
|
130
119
|
"title": "Gesundheit"
|
|
131
|
-
}
|
|
120
|
+
}
|
|
132
121
|
],
|
|
133
|
-
"socialSharing": {
|
|
122
|
+
"socialSharing": {
|
|
134
123
|
"facebookLink": "/facebookLink-url",
|
|
135
124
|
"whatsappLink": "/whatsappLink-url",
|
|
136
125
|
"mailtoLink": "/mailtoLink-url",
|
|
@@ -141,14 +130,14 @@
|
|
|
141
130
|
"name": "hessenschau",
|
|
142
131
|
"link": {
|
|
143
132
|
"url": "/Program-url",
|
|
144
|
-
"isTargetBlank": true
|
|
133
|
+
"isTargetBlank": true
|
|
145
134
|
},
|
|
146
135
|
"displayWithTime": true,
|
|
147
136
|
"date": {
|
|
148
137
|
"htmlDateTime": "2024-02-15T19:30+0200",
|
|
149
138
|
"date": "15.02.24",
|
|
150
139
|
"dateSeparatorTime": "19:30"
|
|
151
|
-
}
|
|
140
|
+
}
|
|
152
141
|
},
|
|
153
142
|
"relatedContentSsi": {
|
|
154
143
|
"relatedContent": {
|
|
@@ -160,4 +149,4 @@
|
|
|
160
149
|
"secondLevelId": "2",
|
|
161
150
|
"pageName": "bla"
|
|
162
151
|
}
|
|
163
|
-
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default": {
|
|
3
|
+
"programReferenceAlt": {
|
|
4
|
+
"hasReference": true,
|
|
5
|
+
"programLabel": "hr-fernsehen, hessenschau",
|
|
6
|
+
"link": {
|
|
7
|
+
"url": "/programReference-url",
|
|
8
|
+
"isTargetBlank": false
|
|
9
|
+
},
|
|
10
|
+
"name": "Testtitel",
|
|
11
|
+
"displayWithTime": true,
|
|
12
|
+
"date": {
|
|
13
|
+
"htmlDateTime": "2025-10-09T16:45+0200",
|
|
14
|
+
"htmlDate": "09.10.2025",
|
|
15
|
+
"date": "09.10.25",
|
|
16
|
+
"time": "16:45",
|
|
17
|
+
"dateSeparatorTime": "09.10.25, 16:45"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"editorialData": {
|
|
21
|
+
"hasOneAuthor": true,
|
|
22
|
+
"hasAuthors": true,
|
|
23
|
+
"hasMultipleAuthors": false,
|
|
24
|
+
"firstAuthorItem": {
|
|
25
|
+
"hasProfileLink": true,
|
|
26
|
+
"from": "Von",
|
|
27
|
+
"authorName": "Steffen Rebhahn",
|
|
28
|
+
"delimiter": "",
|
|
29
|
+
"link": {
|
|
30
|
+
"url": "/author-url",
|
|
31
|
+
"isTargetBlank": false
|
|
32
|
+
},
|
|
33
|
+
"textAfterAuthor": "(Redaktion hessenschau.de)",
|
|
34
|
+
"profileImage": {
|
|
35
|
+
"@->jsoninclude": "page/story/story_images.inc.json",
|
|
36
|
+
"@->contentpath": "author",
|
|
37
|
+
"@->replaceToken": [
|
|
38
|
+
{
|
|
39
|
+
"@->token": "image",
|
|
40
|
+
"@->value": "mitarbeiter-portraet-steffen-rebhahn-106"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"hasDwellTime": true,
|
|
47
|
+
"socialSharing": {
|
|
48
|
+
"facebookLink": "/facebookLink-url",
|
|
49
|
+
"whatsappLink": "/whatsappLink-url",
|
|
50
|
+
"mailtoLink": "/mailtoLink-url",
|
|
51
|
+
"copyToClipboardLink": "/copyToClipboard-url"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"with_guest_author": {
|
|
55
|
+
"programReferenceAlt": {
|
|
56
|
+
"hasReference": true,
|
|
57
|
+
"programLabel": "hr-fernsehen, hessenschau",
|
|
58
|
+
"link": {
|
|
59
|
+
"url": "/programReference-url",
|
|
60
|
+
"isTargetBlank": false
|
|
61
|
+
},
|
|
62
|
+
"name": "Testtitel",
|
|
63
|
+
"displayWithTime": true,
|
|
64
|
+
"date": {
|
|
65
|
+
"htmlDateTime": "2025-10-09T16:45+0200",
|
|
66
|
+
"htmlDate": "09.10.2025",
|
|
67
|
+
"date": "09.10.25",
|
|
68
|
+
"time": "16:45",
|
|
69
|
+
"dateSeparatorTime": "09.10.25, 16:45"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"editorialData": {
|
|
73
|
+
"hasOneAuthor": true,
|
|
74
|
+
"hasAuthors": true,
|
|
75
|
+
"hasMultipleAuthors": false,
|
|
76
|
+
"firstAuthorItem": {
|
|
77
|
+
"hasProfileLink": false,
|
|
78
|
+
"from": "Von",
|
|
79
|
+
"delimiter": "",
|
|
80
|
+
"textAfterAuthor": "Gast Autor"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"hasDwellTime": true,
|
|
84
|
+
"socialSharing": {
|
|
85
|
+
"facebookLink": "/facebookLink-url",
|
|
86
|
+
"whatsappLink": "/whatsappLink-url",
|
|
87
|
+
"mailtoLink": "/mailtoLink-url",
|
|
88
|
+
"copyToClipboardLink": "/copyToClipboard-url"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
"with_multiple_authors": {
|
|
93
|
+
"hasDwellTime": true,
|
|
94
|
+
"editorialData": {
|
|
95
|
+
"hasOneAuthor": false,
|
|
96
|
+
"hasAuthors": true,
|
|
97
|
+
"hasMultipleAuthors": true,
|
|
98
|
+
"authorItems": [
|
|
99
|
+
{
|
|
100
|
+
"hasProfileLink": false,
|
|
101
|
+
"from": "Von",
|
|
102
|
+
"textAfterAuthor": "Horst Schlämmer",
|
|
103
|
+
"delimiter": ", "
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"hasProfileLink": false,
|
|
107
|
+
"from": "",
|
|
108
|
+
"textAfterAuthor": "Karl Dall",
|
|
109
|
+
"delimiter": " und "
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"hasProfileLink": true,
|
|
113
|
+
"from": "",
|
|
114
|
+
"authorName": "Peter Lustig",
|
|
115
|
+
"delimiter": "",
|
|
116
|
+
"link": {
|
|
117
|
+
"url": "/author-url",
|
|
118
|
+
"isTargetBlank": false
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"programReferenceAlt": {
|
|
124
|
+
"hasReference": true,
|
|
125
|
+
"programLabel": "hr-fernsehen, hessenschau",
|
|
126
|
+
"link": {
|
|
127
|
+
"url": "/programReference-url",
|
|
128
|
+
"isTargetBlank": false
|
|
129
|
+
},
|
|
130
|
+
"name": "Testtitel",
|
|
131
|
+
"displayWithTime": true,
|
|
132
|
+
"date": {
|
|
133
|
+
"htmlDateTime": "2025-10-09T16:45+0200",
|
|
134
|
+
"htmlDate": "09.10.2025",
|
|
135
|
+
"date": "09.10.25",
|
|
136
|
+
"time": "16:45",
|
|
137
|
+
"dateSeparatorTime": "09.10.25, 16:45"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"socialSharing": {
|
|
141
|
+
"facebookLink": "/facebookLink-url",
|
|
142
|
+
"whatsappLink": "/whatsappLink-url",
|
|
143
|
+
"mailtoLink": "/mailtoLink-url",
|
|
144
|
+
"copyToClipboardLink": "/copyToClipboard-url"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"config": {
|
|
3
|
+
"template": "default"
|
|
4
|
+
},
|
|
5
|
+
"content_footer_with_one_author_program_reference": {
|
|
6
|
+
"config": {
|
|
7
|
+
"css": "w-[724px] mx-auto"
|
|
8
|
+
},
|
|
9
|
+
"args": {
|
|
10
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
11
|
+
"@->contentpath": "default"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"content_footer_with_one_author": {
|
|
15
|
+
"config": {
|
|
16
|
+
"css": "w-[724px] mx-auto"
|
|
17
|
+
},
|
|
18
|
+
"args": {
|
|
19
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
20
|
+
"@->contentpath": "default",
|
|
21
|
+
"@->overrides": [
|
|
22
|
+
{
|
|
23
|
+
"@->contentpath": "programReferenceAlt.hasReference",
|
|
24
|
+
"@->value": false
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"content_footer_with_one_guest_author": {
|
|
30
|
+
"config": {
|
|
31
|
+
"css": "w-[724px] mx-auto"
|
|
32
|
+
},
|
|
33
|
+
"args": {
|
|
34
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
35
|
+
"@->contentpath": "with_guest_author",
|
|
36
|
+
"@->overrides": [
|
|
37
|
+
{
|
|
38
|
+
"@->contentpath": "programReferenceAlt.hasReference",
|
|
39
|
+
"@->value": false
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"content_footer_with_one_guest_author_program_reference": {
|
|
45
|
+
"config": {
|
|
46
|
+
"css": "w-[724px] mx-auto"
|
|
47
|
+
},
|
|
48
|
+
"args": {
|
|
49
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
50
|
+
"@->contentpath": "with_guest_author"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"content_footer_with_multiple_authors_program_reference": {
|
|
54
|
+
"config": {
|
|
55
|
+
"css": "w-[724px] mx-auto"
|
|
56
|
+
},
|
|
57
|
+
"args": {
|
|
58
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
59
|
+
"@->contentpath": "with_multiple_authors"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"content_footer_with_multiple_authors": {
|
|
63
|
+
"config": {
|
|
64
|
+
"css": "w-[724px] mx-auto"
|
|
65
|
+
},
|
|
66
|
+
"args": {
|
|
67
|
+
"@->jsoninclude": "ticker/ticker_item/content_footer_ticker_item.inc.json",
|
|
68
|
+
"@->contentpath": "with_multiple_authors",
|
|
69
|
+
"@->overrides": [
|
|
70
|
+
{
|
|
71
|
+
"@->contentpath": "programReferenceAlt.hasReference",
|
|
72
|
+
"@->value": false
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{#with this.userComments ~}}
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="mt-0.5">
|
|
3
3
|
<span class="relative z-30 whitespace-nowrap">
|
|
4
4
|
{{~#if (isStorybook)~}}
|
|
5
5
|
{{> components/page/components/commentlink.ssi }}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{{#if this.editorialData.hasAuthors}}
|
|
2
|
+
{{!-- Multiple Authors --}}
|
|
3
|
+
{{#if this.editorialData.hasMultipleAuthors}}
|
|
4
|
+
{{#with this.editorialData.authorItems}}
|
|
5
|
+
<p class="text-xs sm480:text-sm font-headingSerif text-gray-scorpion dark:text-text-dark">
|
|
6
|
+
{{#each this}}
|
|
7
|
+
{{#if this.hasProfileLink}}
|
|
8
|
+
{{this.from}}
|
|
9
|
+
{{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
|
|
10
|
+
<span>{{../this.authorName~}}</span>{{~/components/base/link~}}
|
|
11
|
+
{{~#with this.textAfterAuthor}} {{this}}{{/with~}}{{~this.delimiter}}
|
|
12
|
+
{{else}}
|
|
13
|
+
{{this.from}}
|
|
14
|
+
{{#with this.textAfterAuthor}} {{this}}{{/with}}{{this.delimiter}}
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{/each}}
|
|
17
|
+
</p>
|
|
18
|
+
{{/with}}
|
|
19
|
+
{{~> @partial-block ~}}
|
|
20
|
+
{{else}}
|
|
21
|
+
<div class="flex items-center">
|
|
22
|
+
{{#with this.editorialData.firstAuthorItem}}
|
|
23
|
+
{{#if this.profileImage.isImage}}
|
|
24
|
+
<div class="w-10 h-10 mr-4 basis-10 grow-0">
|
|
25
|
+
{{~> components/base/image/responsive_image this.profileImage
|
|
26
|
+
_type="profile"
|
|
27
|
+
_variant="ticker"
|
|
28
|
+
_addClass=""
|
|
29
|
+
_addClassImg="ar-1-1 rounded-full"
|
|
30
|
+
_noDelay=true ~}}
|
|
31
|
+
</div>
|
|
32
|
+
{{/if}}
|
|
33
|
+
{{/with}}
|
|
34
|
+
<div class="text-xs sm480:text-sm basis-0 grow font-headingSerif text-gray-scorpion dark:text-text-dark">
|
|
35
|
+
<div>
|
|
36
|
+
{{#with this.editorialData}}
|
|
37
|
+
{{#unless _hideFrom }}{{this.firstAuthorItem.from}}{{/unless}}
|
|
38
|
+
{{#with this.firstAuthorItem}}
|
|
39
|
+
{{#if this.hasProfileLink~}}
|
|
40
|
+
{{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
|
|
41
|
+
<span>{{../this.authorName~}}</span>{{~/components/base/link~}}
|
|
42
|
+
{{~#with this.textAfterAuthor}} {{this}}{{/with~}}{{~this.delimiter}}
|
|
43
|
+
{{else}}
|
|
44
|
+
{{~#with this.textAfterAuthor}}{{this}}{{/with~}}{{~this.delimiter}}
|
|
45
|
+
{{/if}}
|
|
46
|
+
{{/with}}
|
|
47
|
+
{{/with}}
|
|
48
|
+
</div>
|
|
49
|
+
{{~> @partial-block ~}}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
{{/if}}
|
|
53
|
+
{{else}}
|
|
54
|
+
{{~> @partial-block ~}}
|
|
55
|
+
{{/if}}
|
|
@@ -2,19 +2,12 @@
|
|
|
2
2
|
<aside class="hrds-metadata-box clear-both mt-4 border-y border-gray-scorpion [&+.hrds-shorttext]:mt-5 dark:border-text-dark sm:mt-5">
|
|
3
3
|
<div class="flex clear-both w-full my-4 sm:my-4">
|
|
4
4
|
<div class="self-center">
|
|
5
|
-
{{
|
|
6
|
-
|
|
7
|
-
{{#if _showDate }}
|
|
8
|
-
{{#if this.hasMoreThanOneAuthor}}
|
|
5
|
+
{{#> components/page/components/metadata_wrapper _hideFrom=false _isTicker=_isTicker }}
|
|
6
|
+
{{#if _showDate-adjust_context }}
|
|
9
7
|
{{> components/page/components/publicationdate _isTicker=_isTicker}}
|
|
10
|
-
{{else}}
|
|
11
|
-
{{#unless this.hasOneAuthor}}
|
|
12
|
-
{{> components/page/components/publicationdate _isTicker=_isTicker}}
|
|
13
|
-
{{/unless}}
|
|
14
8
|
{{/if}}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{> components/page/components/commentinfo }}
|
|
9
|
+
{{> components/page/components/commentinfo }}
|
|
10
|
+
{{/components/page/components/metadata_wrapper }}
|
|
18
11
|
</div>
|
|
19
12
|
{{#unless _webview}}
|
|
20
13
|
{{> components/social_sharing/social_sharing_horizontal }}
|
|
@@ -7,10 +7,8 @@ hbsTemplates['default'] = handlebars.compile(`
|
|
|
7
7
|
{{> components/page/components/metadatabox}}
|
|
8
8
|
`)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
10
|
const Template = (args) => {
|
|
13
|
-
console.log(
|
|
11
|
+
console.log('Args: ', args)
|
|
14
12
|
return hbsTemplates['default']({ ...args })
|
|
15
13
|
}
|
|
16
14
|
|
|
@@ -31,7 +29,7 @@ export default {
|
|
|
31
29
|
sort: 'alpha',
|
|
32
30
|
},
|
|
33
31
|
chromatic: {
|
|
34
|
-
disableSnapshot: true
|
|
32
|
+
disableSnapshot: true,
|
|
35
33
|
},
|
|
36
34
|
},
|
|
37
35
|
}
|
|
@@ -75,6 +73,19 @@ export const WithOneAuthor = {
|
|
|
75
73
|
args: fixtures.metadatabox_with_one_author.args,
|
|
76
74
|
}
|
|
77
75
|
|
|
76
|
+
export const WithOneGuestAuthor = {
|
|
77
|
+
render: Template.bind({}),
|
|
78
|
+
decorators: [
|
|
79
|
+
(Story) => {
|
|
80
|
+
return `<div class="max-w-[724px] mx-auto mt-60">
|
|
81
|
+
${Story()}
|
|
82
|
+
</div>`
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: 'Ein Gastautor',
|
|
86
|
+
args: fixtures.metadatabox_with_one_guest_author.args,
|
|
87
|
+
}
|
|
88
|
+
|
|
78
89
|
export const WithOneAuthorWithoutPicture = {
|
|
79
90
|
render: Template.bind({}),
|
|
80
91
|
decorators: [
|
|
@@ -133,5 +144,5 @@ export const Snapshot = {
|
|
|
133
144
|
args: fixtures,
|
|
134
145
|
parameters: {
|
|
135
146
|
chromatic: { disableSnapshot: false },
|
|
136
|
-
}
|
|
147
|
+
},
|
|
137
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"config":{"template":"default"},"metadatabox":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"
|
|
1
|
+
{"config":{"template":"default"},"metadatabox":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasAuthors":false,"hasMultipleAuthors":false,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasAuthors":false,"hasMultipleAuthors":false,"hasDwellTime":true,"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}},"metadatabox_with_one_author":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":true,"hasAuthors":true,"hasMultipleAuthors":false,"firstAuthorItem":{"hasProfileLink":true,"from":"Von","authorName":"Steffen Rebhahn","delimiter":"","link":{"url":"/author-url","isTargetBlank":false},"textAfterAuthor":"(Redaktion hessenschau.de)","profileImage":{"isImage":true,"caption":"Steffen Rebhahn","copyrightWithLinks":"hr","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1_small.jpg","sources":[{"sizes":"50px","srcset":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__xsmall.jpg 260w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__small.jpg 380w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__medium.jpg 480w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1.jpg 720w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__large.jpg 960w"}]}}}},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_one_guest_author":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":true,"hasAuthors":true,"hasMultipleAuthors":false,"firstAuthorItem":{"hasProfileLink":false,"from":"Von","delimiter":"","textAfterAuthor":"Gast Autor"}},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_one_author_and_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":true,"hasAuthors":true,"hasMultipleAuthors":false,"firstAuthorItem":{"hasProfileLink":true,"from":"Von","authorName":"Steffen Rebhahn","delimiter":"","link":{"url":"/author-url","isTargetBlank":false},"textAfterAuthor":"(Redaktion hessenschau.de)","profileImage":{"isImage":true,"caption":"Steffen Rebhahn","copyrightWithLinks":"hr","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1_small.jpg","sources":[{"sizes":"50px","srcset":"images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__xsmall.jpg 260w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__small.jpg 380w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__medium.jpg 480w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1.jpg 720w, images/mitarbeiter-portraet-steffen-rebhahn-106_v-1to1__large.jpg 960w"}]}}}},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}},"metadatabox_with_one_author_and_without_picture":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":true,"hasAuthors":true,"hasMultipleAuthors":false,"firstAuthorItem":{"hasProfileLink":true,"from":"Von","authorName":"Steffen Rebhahn","delimiter":"","link":{"url":"/author-url","isTargetBlank":false},"textAfterAuthor":"(Redaktion hessenschau.de)","profileImage":{}}},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_more_authors":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasAuthors":true,"hasMultipleAuthors":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":false,"hasAuthors":true,"hasMultipleAuthors":true,"authorItems":[{"hasProfileLink":false,"from":"Von","textAfterAuthor":"Horst Schlämmer","delimiter":", "},{"hasProfileLink":false,"from":"","textAfterAuthor":"Karl Dall","delimiter":" und "},{"hasProfileLink":true,"from":"","authorName":"Peter Lustig","delimiter":"","link":{"url":"/author-url","isTargetBlank":false}}]},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"}}},"metadatabox_with_more_authors_and_comments":{"config":{"css":"w-[724px] mx-auto"},"args":{"_showDate":true,"hasAuthors":true,"hasMultipleAuthors":true,"hasDwellTime":true,"editorialData":{"hasOneAuthor":false,"hasAuthors":true,"hasMultipleAuthors":true,"authorItems":[{"hasProfileLink":false,"from":"Von","textAfterAuthor":"Horst Schlämmer","delimiter":", "},{"hasProfileLink":false,"from":"","textAfterAuthor":"Karl Dall","delimiter":" und "},{"hasProfileLink":true,"from":"","authorName":"Peter Lustig","delimiter":"","link":{"url":"/author-url","isTargetBlank":false}}]},"documentModificationDate":{"isModificationDate":false,"isPublicationDate":true,"htmlDateTime":"2024-02-15T19:30+0200","date":"15.02.24","time":"19:30"},"socialSharing":{"facebookLink":"/facebookLink-url","whatsappLink":"/whatsappLink-url","mailtoLink":"/mailtoLink-url","copyToClipboardLink":"/copyToClipboard-url"},"userComments":{"HasOneComment":false,"quantity":"117"}}}}
|