@shift72/core-template 1.1.0 → 1.3.0-alpha.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 +37 -10
- package/kibble.json +1 -1
- package/package.json +1 -1
- package/site/ar_LB.all.json +50 -6
- package/site/ca_ES.all.json +35 -7
- package/site/da_DK.all.json +35 -7
- package/site/de_DE.all.json +35 -7
- package/site/el_EL.all.json +35 -7
- package/site/en_AU.all.json +35 -7
- package/site/es_ES.all.json +39 -7
- package/site/es_MX.all.json +39 -7
- package/site/et_ET.all.json +35 -7
- package/site/fi_FI.all.json +36 -8
- package/site/fr_FR.all.json +39 -7
- package/site/hr_HR.all.json +39 -7
- package/site/hu_HU.all.json +35 -7
- package/site/it_IT.all.json +38 -6
- package/site/ja_JP.all.json +31 -7
- package/site/lt_LT.all.json +43 -7
- package/site/nl_BE.all.json +34 -6
- package/site/no_NO.all.json +35 -7
- package/site/pl_PL.all.json +43 -7
- package/site/plans.html.jet +1 -1
- package/site/pt_BR.all.json +39 -7
- package/site/pt_PT.all.json +39 -7
- package/site/ru_RU.all.json +43 -7
- package/site/sr_SR.all.json +39 -7
- package/site/static/js/main.js +0 -1
- package/site/static/scripts/main.js.map +1 -1
- package/site/styles/_availability-tags.scss +1 -3
- package/site/styles/_awards.scss +16 -9
- package/site/styles/_buttons.scss +19 -95
- package/site/styles/_carousel.scss +20 -27
- package/site/styles/_collections.scss +17 -33
- package/site/styles/_cta-buttons.scss +0 -71
- package/site/styles/_footer.scss +5 -9
- package/site/styles/_forms.scss +7 -4
- package/site/styles/_icons.scss +10 -0
- package/site/styles/_meta-detail.scss +26 -50
- package/site/styles/_meta-item-tagline.scss +2 -6
- package/site/styles/_meta-item.scss +0 -4
- package/site/styles/_meta-sub-item.scss +0 -4
- package/site/styles/_pages.scss +21 -49
- package/site/styles/_plans.scss +4 -0
- package/site/styles/_search.scss +0 -2
- package/site/styles/_share-modal.scss +0 -4
- package/site/styles/_shopping.scss +0 -5
- package/site/styles/_tooltips.scss +13 -0
- package/site/styles/_typography.scss +137 -0
- package/site/styles/_variables.scss +5 -0
- package/site/styles/_wishlist.scss +8 -14
- package/site/styles/main.scss +1 -0
- package/site/templates/collection/carousel/item/synopsis.jet +5 -3
- package/site/templates/collection/carousel/item.jet +8 -5
- package/site/templates/common/awards/item.jet +2 -2
- package/site/templates/common/cta_buttons.jet +4 -12
- package/site/templates/film/item.jet +3 -3
- package/site/templates/items/tagline.jet +25 -50
- package/site/templates/tv/detail.jet +1 -1
- package/site/tr_TR.all.json +35 -7
- package/site/uk_UA.all.json +43 -7
- package/site/zh_TW.all.json +31 -7
package/site/styles/_pages.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.page {
|
|
2
2
|
flex: 1 0 auto;
|
|
3
|
+
|
|
3
4
|
@include media-breakpoint-up(md) {
|
|
4
5
|
padding-bottom: $grid-gutter-width;
|
|
5
6
|
}
|
|
@@ -12,38 +13,13 @@
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.page-header {
|
|
16
|
+
padding-bottom: 30px;
|
|
15
17
|
padding-left: 20px;
|
|
16
18
|
padding-right: 20px;
|
|
17
19
|
@include media-breakpoint-up(lg) {
|
|
18
|
-
padding-bottom: 20px;
|
|
19
20
|
padding-left: 50px;
|
|
20
21
|
padding-right: 50px;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
h1 {
|
|
24
|
-
font-size: 20px;
|
|
25
|
-
font-weight: $font-weight-bold;
|
|
26
|
-
margin-bottom: 0;
|
|
27
|
-
@include media-breakpoint-up(md) {
|
|
28
|
-
font-size: 28px;
|
|
29
|
-
}
|
|
30
|
-
@include media-breakpoint-up(xl) {
|
|
31
|
-
font-size: 38px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
p {
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
font-weight: normal;
|
|
38
|
-
padding-top: 5px;
|
|
39
|
-
@include media-breakpoint-up(md) {
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
a {
|
|
44
|
-
@include a;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
23
|
}
|
|
48
24
|
|
|
49
25
|
.page-content {
|
|
@@ -76,6 +52,10 @@
|
|
|
76
52
|
@include media-breakpoint-up(lg) {
|
|
77
53
|
padding: var(--page-padding-top-lg) 0 0 0;
|
|
78
54
|
}
|
|
55
|
+
|
|
56
|
+
h1 {
|
|
57
|
+
@include heading-2-style;
|
|
58
|
+
}
|
|
79
59
|
}
|
|
80
60
|
|
|
81
61
|
.form-page {
|
|
@@ -85,11 +65,13 @@
|
|
|
85
65
|
.page-header {
|
|
86
66
|
h1,
|
|
87
67
|
p {
|
|
88
|
-
margin:
|
|
68
|
+
margin-left: auto;
|
|
69
|
+
margin-right: auto;
|
|
89
70
|
max-width: 400px;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
p {
|
|
74
|
+
@include heading-4-style;
|
|
93
75
|
}
|
|
94
76
|
}
|
|
95
77
|
|
|
@@ -107,18 +89,12 @@
|
|
|
107
89
|
padding: 20px 50px 0;
|
|
108
90
|
}
|
|
109
91
|
|
|
110
|
-
h4,
|
|
111
|
-
h5 {
|
|
112
|
-
font-size: 16px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
92
|
p {
|
|
116
|
-
font-size: 14px;
|
|
117
93
|
word-wrap: break-word;
|
|
118
94
|
}
|
|
119
95
|
|
|
120
96
|
strong {
|
|
121
|
-
|
|
97
|
+
@include caption-1-style;
|
|
122
98
|
}
|
|
123
99
|
|
|
124
100
|
a:not(.signup-link) {
|
|
@@ -173,7 +149,6 @@
|
|
|
173
149
|
@extend .col-4;
|
|
174
150
|
@extend .col-md-3;
|
|
175
151
|
@extend .col-xl-2;
|
|
176
|
-
padding: 0 5px 10px;
|
|
177
152
|
}
|
|
178
153
|
}
|
|
179
154
|
|
|
@@ -191,6 +166,10 @@
|
|
|
191
166
|
h1 {
|
|
192
167
|
margin-bottom: $headings-margin-bottom;
|
|
193
168
|
}
|
|
169
|
+
|
|
170
|
+
p {
|
|
171
|
+
@include heading-4-style;
|
|
172
|
+
}
|
|
194
173
|
}
|
|
195
174
|
|
|
196
175
|
.s72-plans,
|
|
@@ -297,18 +276,11 @@
|
|
|
297
276
|
max-width: 660px;
|
|
298
277
|
|
|
299
278
|
h2 {
|
|
300
|
-
font-size: 24px;
|
|
301
279
|
text-align: center;
|
|
302
|
-
@include media-breakpoint-up(md) {
|
|
303
|
-
font-size: 2rem;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
p {
|
|
308
|
-
font-size: 12px;
|
|
309
|
-
@include media-breakpoint-up(md) {
|
|
310
|
-
font-size: 16px;
|
|
311
|
-
}
|
|
312
280
|
}
|
|
313
281
|
}
|
|
314
282
|
}
|
|
283
|
+
|
|
284
|
+
.acceptinvite-invalid-token {
|
|
285
|
+
@include heading-4-style;
|
|
286
|
+
}
|
package/site/styles/_plans.scss
CHANGED
package/site/styles/_search.scss
CHANGED
|
@@ -4,4 +4,17 @@
|
|
|
4
4
|
@include media-breakpoint-up(lg) {
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
&.s72-tooltip-top .s72-tooltip-arrow::before {
|
|
9
|
+
border-top-color: var(--tooltip-arrow-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.s72-tooltip-bottom .s72-tooltip-arrow::before {
|
|
13
|
+
border-bottom-color: var(--tooltip-arrow-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.s72-tooltip-inner {
|
|
17
|
+
background-color: var(--tooltip-bg);
|
|
18
|
+
color: var(--tooltip-color);
|
|
19
|
+
}
|
|
7
20
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
@mixin typography-style(
|
|
2
|
+
$font-size,
|
|
3
|
+
$letter-spacing: null,
|
|
4
|
+
$font-weight: null,
|
|
5
|
+
$margin-bottom: null,
|
|
6
|
+
$font-color: null,
|
|
7
|
+
$line-height: null
|
|
8
|
+
) {
|
|
9
|
+
color: $font-color;
|
|
10
|
+
font-size: $font-size;
|
|
11
|
+
font-weight: $font-weight;
|
|
12
|
+
letter-spacing: $letter-spacing;
|
|
13
|
+
line-height: $line-height;
|
|
14
|
+
margin-bottom: $margin-bottom;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin heading-1-style() {
|
|
18
|
+
@include typography-style(
|
|
19
|
+
$font-size: 32px,
|
|
20
|
+
$letter-spacing: 0.4px,
|
|
21
|
+
$font-weight: $font-weight-normal,
|
|
22
|
+
$margin-bottom: 8px,
|
|
23
|
+
$font-color: var(--body-color),
|
|
24
|
+
$line-height: 42px
|
|
25
|
+
);
|
|
26
|
+
@include media-breakpoint-up(xs) {
|
|
27
|
+
@include typography-style($font-size: 46px, $line-height: 56px);
|
|
28
|
+
}
|
|
29
|
+
small {
|
|
30
|
+
@include typography-style($font-size: 24px);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin heading-2-style() {
|
|
35
|
+
@include typography-style(
|
|
36
|
+
$font-size: 29px,
|
|
37
|
+
$letter-spacing: 0.6px,
|
|
38
|
+
$font-weight: $font-weight-normal,
|
|
39
|
+
$margin-bottom: 13px
|
|
40
|
+
);
|
|
41
|
+
@include media-breakpoint-up(sm) {
|
|
42
|
+
@include typography-style($font-size: 35px);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin heading-3-style() {
|
|
47
|
+
@include typography-style(
|
|
48
|
+
$font-size: 20px,
|
|
49
|
+
$letter-spacing: 0,
|
|
50
|
+
$font-weight: $font-weight-normal,
|
|
51
|
+
$margin-bottom: 6px,
|
|
52
|
+
$line-height: 24px
|
|
53
|
+
);
|
|
54
|
+
@include media-breakpoint-up(sm) {
|
|
55
|
+
@include typography-style($font-size: 24px, $letter-spacing: 0.4px, $line-height: 30px);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@mixin heading-4-style() {
|
|
60
|
+
@include typography-style(
|
|
61
|
+
$font-size: 18px,
|
|
62
|
+
$font-weight: $font-weight-light,
|
|
63
|
+
$margin-bottom: 20px
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin body-1-style() {
|
|
68
|
+
@include typography-style(
|
|
69
|
+
$font-size: 16px,
|
|
70
|
+
$letter-spacing: 0.6px,
|
|
71
|
+
$font-weight: $font-weight-light,
|
|
72
|
+
$line-height: 23px
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin body-2-style() {
|
|
77
|
+
@include typography-style($font-size: 14px, $letter-spacing: 0.4px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin subtitle-1-style() {
|
|
81
|
+
@include typography-style(
|
|
82
|
+
$font-size: 16px,
|
|
83
|
+
$letter-spacing: 0.2px,
|
|
84
|
+
$font-weight: $font-weight-normal,
|
|
85
|
+
$margin-bottom: 2px,
|
|
86
|
+
$line-height: 20px
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@mixin subtitle-2-style() {
|
|
91
|
+
@include typography-style(
|
|
92
|
+
$font-size: 14px,
|
|
93
|
+
$letter-spacing: 0.2px,
|
|
94
|
+
$font-weight: $font-weight-normal,
|
|
95
|
+
$margin-bottom: 12px,
|
|
96
|
+
$line-height: 18px
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin caption-1-style() {
|
|
101
|
+
@include typography-style(
|
|
102
|
+
$font-size: 16px,
|
|
103
|
+
$letter-spacing: 0.6px,
|
|
104
|
+
$font-weight: $font-weight-bold,
|
|
105
|
+
$margin-bottom: 4px,
|
|
106
|
+
$line-height: 20px
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@mixin overline-style() {
|
|
111
|
+
@include typography-style(
|
|
112
|
+
$font-size: 14px,
|
|
113
|
+
$letter-spacing: 1px,
|
|
114
|
+
$font-weight: $font-weight-normal,
|
|
115
|
+
$line-height: 18px
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
h1 {
|
|
120
|
+
@include heading-1-style();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
h2 {
|
|
124
|
+
@include heading-2-style();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
h3 {
|
|
128
|
+
@include heading-3-style();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
h4 {
|
|
132
|
+
@include heading-4-style();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
p {
|
|
136
|
+
@include body-1-style();
|
|
137
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--body-bg-accent-rgb: 25, 25, 25; // darken(body-bg, 10%) OR lighten(body-bg, 10%)
|
|
12
12
|
--link-color-hover-rgb: 217, 217, 217; // darken(body-color, 15%)
|
|
13
13
|
--input-focus-border-color-rgb: 131, 210, 216; // lighten(primary, 25%)
|
|
14
|
+
--main-content-icon-hover-rgb: 207, 207, 207; // white .8 opacity
|
|
14
15
|
|
|
15
16
|
--primary: rgb(var(--primary-rgb));
|
|
16
17
|
--secondary: rgb(var(--secondary-rgb));
|
|
@@ -20,6 +21,10 @@
|
|
|
20
21
|
--link-color: var(--body-color);
|
|
21
22
|
--link-color-hover: rgb(var(--link-color-hover-rgb));
|
|
22
23
|
--input-focus-border-color: rgb(var(--input-focus-border-color-rgb));
|
|
24
|
+
--main-content-icon-hover: rgb(var(--main-content-icon-hover-rgb));
|
|
25
|
+
--tooltip-color: var(--body-bg, #000);
|
|
26
|
+
--tooltip-bg: var(--primary, #00a3ff);
|
|
27
|
+
--tooltip-arrow-color: var(--tooltip-bg);
|
|
23
28
|
|
|
24
29
|
--input-height: 40px;
|
|
25
30
|
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
|
|
26
26
|
.s72-userwishlist-buttons {
|
|
27
27
|
.s72-btn-wishlist {
|
|
28
|
-
@extend .btn;
|
|
29
|
-
padding-left: 0;
|
|
30
|
-
|
|
31
28
|
.s72-icon {
|
|
32
|
-
font-size:
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
font-size: 25px !important;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.s72-icon-loading,
|
|
34
|
+
.s72-icon-errored {
|
|
35
|
+
display: none;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
.s72-userwishlist-buttons .s72-btn-wishlist
|
|
40
|
-
.meta-award-nomination {
|
|
40
|
+
.s72-userwishlist-buttons .s72-btn-wishlist {
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
font-weight: $font-weight-bold;
|
|
43
43
|
|
|
@@ -49,12 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.s72-userwishlist-buttons .s72-btn-wishlist {
|
|
53
|
-
margin-right: 0.5rem;
|
|
54
|
-
padding-bottom: 3px;
|
|
55
|
-
padding-top: 3px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
52
|
.poster .s72-userwishlist-buttons .s72-btn-wishlist {
|
|
59
53
|
margin: 0;
|
|
60
54
|
padding: 0;
|
package/site/styles/main.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{import "../../common/cta_buttons.jet"}}
|
|
8
8
|
|
|
9
9
|
{{block carouselItem(item)}}
|
|
10
|
-
{{showItemContent := !isset(item["PageType"]) || item.PageType != "external"}}
|
|
10
|
+
{{showItemContent := !isset(item["PageType"]) || item.PageType != "external"}}
|
|
11
11
|
|
|
12
12
|
<div class="s72-carousel-item" data-slug="{{item.Slug}}">
|
|
13
13
|
<a href="{{routeToSlug(item.Slug)}}" class="carousel-item-link" aria-label="{{item.Title}}">
|
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
{{if showItemContent}}
|
|
18
18
|
<div class="carousel-item-caption">
|
|
19
19
|
{{if item.ItemType == "film"}}
|
|
20
|
-
{{
|
|
20
|
+
{{if len(item.InnerItem.AwardCategories) > 0 || item.InnerItem.ImageMap["Sponsor"]}}
|
|
21
|
+
<div class="sponsor-awards-wrapper">
|
|
22
|
+
{{yield sponsor(hideLink="true") item.InnerItem}}
|
|
23
|
+
{{yield awardsCarousel() item.InnerItem}}
|
|
24
|
+
</div>
|
|
25
|
+
{{end}}
|
|
21
26
|
{{end}}
|
|
22
27
|
<div class="meta-item-content">
|
|
23
28
|
{{yield carouselItemTitle(title=item.GetTitle(i18n))}}
|
|
@@ -28,11 +33,9 @@
|
|
|
28
33
|
{{yield carouselItemSynopsis(synopsis=item.InnerItem.Tagline)}}
|
|
29
34
|
{{end}}
|
|
30
35
|
|
|
31
|
-
{{yield ctaButtons(itemType=item.ItemType
|
|
36
|
+
{{yield ctaButtons(itemType=item.ItemType) item.InnerItem}}
|
|
32
37
|
|
|
33
38
|
<s72-availability-label data-slug="{{item.Slug}}"></s72-availability-label>
|
|
34
|
-
|
|
35
|
-
{{yield awardsCarousel() item.InnerItem}}
|
|
36
39
|
</div>
|
|
37
40
|
</div>
|
|
38
41
|
{{end}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{{block awardNominations()}}
|
|
2
2
|
{{ if isset(.AwardCategories) && (len(.AwardCategories) > 0) }}
|
|
3
|
-
<div class="meta-awards
|
|
3
|
+
<div class="meta-awards meta-awards-all">
|
|
4
4
|
{{ range .AwardCategories }}
|
|
5
|
-
<div class="meta-award-nomination
|
|
5
|
+
<div class="meta-award-nomination">
|
|
6
6
|
<span><i class="meta-award-nomination-icon"></i></span>
|
|
7
7
|
<span>{{ .DisplayLabel }}</span>
|
|
8
8
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{import "./social-media-buttons.jet"}}
|
|
2
2
|
|
|
3
|
-
{{block ctaButtons(itemType
|
|
3
|
+
{{block ctaButtons(itemType)}}
|
|
4
4
|
{{isFilm := itemType == "film"}}
|
|
5
5
|
{{isSeason := itemType == "tvseason"}}
|
|
6
6
|
{{isEpisode := itemType == "tvepisode"}}
|
|
@@ -40,20 +40,12 @@
|
|
|
40
40
|
<div class="extra-buttons">
|
|
41
41
|
|
|
42
42
|
{{if showTrailerButton}}
|
|
43
|
-
{{
|
|
44
|
-
|
|
45
|
-
<button class="s72-btn s72-btn-play">
|
|
46
|
-
<span class="s72-btn-play-icon"><s72-play-icon></s72-play-icon></span>
|
|
47
|
-
</button>
|
|
48
|
-
</div>
|
|
49
|
-
{{else}}
|
|
50
|
-
{{dataLabel := i18n("play_trailer")}}
|
|
51
|
-
<s72-modal-player src="{{trailerURL}}" class="s72-btn-trailer" data-slug="{{slug}}" data-label="{{dataLabel}}" autoplay="querystring"></s72-modal-player>
|
|
52
|
-
{{end}}
|
|
43
|
+
{{dataLabel := i18n("play_trailer")}}
|
|
44
|
+
<s72-modal-player src="{{trailerURL}}" class="s72-btn-trailer" data-slug="{{slug}}" data-label="{{dataLabel}}" autoplay="querystring" layout="tooltip"></s72-modal-player>
|
|
53
45
|
{{end}}
|
|
54
46
|
|
|
55
47
|
{{if showWishlistButton}}
|
|
56
|
-
<s72-userwishlist-button data-slug="{{slug}}" class="btn-wishlist"></s72-userwishlist-button>
|
|
48
|
+
<s72-userwishlist-button data-slug="{{slug}}" class="btn-wishlist" layout="tooltip"></s72-userwishlist-button>
|
|
57
49
|
{{end}}
|
|
58
50
|
|
|
59
51
|
{{if showShareButton}}
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
<br>
|
|
56
56
|
{{end}}
|
|
57
57
|
|
|
58
|
-
{{yield awardNominations() film}}
|
|
59
58
|
<div class="element-switcher-wrapper">
|
|
60
59
|
<s72-element-switcher>
|
|
61
60
|
{{if isEnabled("element_switcher_enabled")}}
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
<div class="meta-detail-crew">
|
|
82
81
|
<h2>{{member.Job}}</h2>
|
|
83
82
|
{{ path := "/search.html?q=" + member.Name }}
|
|
84
|
-
<a href="{{ routeToPath(path) }}">{{member.Name}}</a>
|
|
83
|
+
<p><a href="{{ routeToPath(path) }}">{{member.Name}}</a></p>
|
|
85
84
|
</div>
|
|
86
85
|
{{end}}
|
|
87
86
|
{{if len(film.Languages) > 0 }}
|
|
@@ -145,6 +144,7 @@
|
|
|
145
144
|
</s72-element-switcher>
|
|
146
145
|
{{yield sponsor() film}}
|
|
147
146
|
</div>
|
|
147
|
+
{{yield awardNominations() film}}
|
|
148
148
|
{{if len(film.Bonuses) > 0 && !film.CustomFields.GetBool("hide_bonus_content", false)}}
|
|
149
149
|
<section class="meta-detail-bonus-content" aria-label="{{i18n("meta_detail_bonus_title")}}">
|
|
150
150
|
<h2>{{i18n("meta_detail_bonus_title")}}</h2>
|
|
@@ -186,4 +186,4 @@
|
|
|
186
186
|
</section>
|
|
187
187
|
{{ end }}
|
|
188
188
|
</main>
|
|
189
|
-
{{end}}
|
|
189
|
+
{{end}}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
{{block metaItemTagline(genres=true, genresLimit=-1, classification=true)}}
|
|
2
2
|
<div class="meta-item-tagline">
|
|
3
|
+
{{if classification}}
|
|
4
|
+
<s72-classification-label data-slug="{{.Slug}}" data-layout="tooltip"></s72-classification-label>
|
|
5
|
+
{{end}}
|
|
6
|
+
|
|
3
7
|
{{itemGenres := makeSlice()}}
|
|
4
8
|
{{if genres}}
|
|
5
9
|
{{if isset(.Genres)}}
|
|
@@ -9,85 +13,56 @@
|
|
|
9
13
|
{{end}}
|
|
10
14
|
{{end}}
|
|
11
15
|
|
|
12
|
-
{
|
|
13
|
-
{{dividers := 0}}
|
|
14
|
-
{{if genres && len(itemGenres) > 0}}
|
|
15
|
-
{{dividers = dividers + 1}}
|
|
16
|
-
{{end}}
|
|
17
|
-
{{if isset(.Runtime)}}
|
|
18
|
-
{{dividers = dividers + 1}}
|
|
19
|
-
{{end}}
|
|
20
|
-
{{if isset(.Items)}}
|
|
21
|
-
{{dividers = dividers + 1}}
|
|
22
|
-
{{end}}
|
|
23
|
-
{{if isset(.Episodes)}}
|
|
24
|
-
{{dividers = dividers + 1}}
|
|
25
|
-
{{end}}
|
|
26
|
-
{{if isset(.ReleaseDate) && .ReleaseDate.Year() > 1}}
|
|
27
|
-
{{dividers = dividers + 1}}
|
|
28
|
-
{{end}}
|
|
29
|
-
{*{ There should be one less dividers than tagline items. }*}
|
|
30
|
-
{{dividers = dividers - 1}}
|
|
31
|
-
|
|
32
|
-
{{if classification}}
|
|
33
|
-
<s72-classification-label data-slug="{{.Slug}}" data-layout="tooltip"></s72-classification-label>
|
|
34
|
-
{{end}}
|
|
16
|
+
{{showDivider := false}}
|
|
35
17
|
|
|
36
18
|
{{if isset(.Runtime)}}
|
|
37
|
-
{{yield
|
|
19
|
+
{{yield item(class="runtime") content}}
|
|
38
20
|
{{if .Runtime > 60}}
|
|
39
|
-
{{.Runtime.Hours()}}{{i18n("runtime_hours")}}
|
|
40
|
-
{{else}}
|
|
41
|
-
{{.Runtime}}{{i18n("runtime_minutes")}}
|
|
21
|
+
{{.Runtime.Hours()}}{{i18n("runtime_hours")}}
|
|
42
22
|
{{end}}
|
|
23
|
+
{{.Runtime.Minutes()}}{{i18n("runtime_minutes")}}
|
|
43
24
|
{{end}}
|
|
44
|
-
{{
|
|
45
|
-
{{dividers = dividers - 1}}
|
|
25
|
+
{{showDivider = true}}
|
|
46
26
|
{{end}}
|
|
47
27
|
|
|
48
28
|
{{if isset(.Items)}}
|
|
49
|
-
{{yield
|
|
29
|
+
{{yield item() content}}
|
|
50
30
|
{{i18n("bundle_items_generic", len(.Items))}}
|
|
51
31
|
{{end}}
|
|
52
|
-
{{
|
|
53
|
-
{{dividers = dividers - 1}}
|
|
32
|
+
{{showDivider = true}}
|
|
54
33
|
{{end}}
|
|
55
34
|
|
|
56
35
|
{{if isset(.Episodes)}}
|
|
57
|
-
{{yield
|
|
36
|
+
{{yield item(class="episodes") content}}
|
|
58
37
|
{{i18n("episode_count", len(.Episodes))}}
|
|
59
38
|
{{end}}
|
|
60
|
-
{{
|
|
61
|
-
{{dividers = dividers - 1}}
|
|
39
|
+
{{showDivider = true}}
|
|
62
40
|
{{end}}
|
|
63
41
|
|
|
64
42
|
{{if genres && len(itemGenres) > 0}}
|
|
65
43
|
{{if genresLimit > -1 && len(itemGenres) > genresLimit}}
|
|
66
44
|
{{itemGenres = itemGenres[:genresLimit]}}
|
|
67
45
|
{{end}}
|
|
68
|
-
{{yield
|
|
46
|
+
{{yield item(class="genres") content}}
|
|
69
47
|
{{itemGenres}}
|
|
70
48
|
{{end}}
|
|
71
|
-
{{
|
|
72
|
-
{{dividers = dividers - 1}}
|
|
49
|
+
{{showDivider = true}}
|
|
73
50
|
{{end}}
|
|
74
51
|
|
|
75
|
-
{{if isset(.ReleaseDate) && .ReleaseDate.Year() >
|
|
76
|
-
{{yield
|
|
52
|
+
{{if isset(.ReleaseDate) && .ReleaseDate.Year() > 1888}}
|
|
53
|
+
{{yield item(class="release-date") content}}
|
|
77
54
|
{{.ReleaseDate.Year()}}
|
|
78
55
|
{{end}}
|
|
79
|
-
{{
|
|
80
|
-
{{dividers = dividers - 1}}
|
|
56
|
+
{{showDivider = true}}
|
|
81
57
|
{{end}}
|
|
82
58
|
</div>
|
|
83
59
|
{{end}}
|
|
84
60
|
|
|
85
|
-
{{block
|
|
86
|
-
<span class="
|
|
87
|
-
{{
|
|
88
|
-
|
|
89
|
-
{{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{{end}}
|
|
61
|
+
{{block item(class="missing", showDivider=showDivider)}}
|
|
62
|
+
<span class="{{class}}">
|
|
63
|
+
{{if showDivider}}
|
|
64
|
+
<span class="divider">•</span>
|
|
65
|
+
{{end}}
|
|
66
|
+
<span class="item">{{yield content}}</span>
|
|
67
|
+
</span>
|
|
93
68
|
{{end}}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
<div class="meta-detail-crew">
|
|
64
64
|
<h2>{{member.Job}}</h2>
|
|
65
65
|
{{ path := "/search.html?q=" + member.Name }}
|
|
66
|
-
<a href="{{ routeToPath(path) }}"">{{member.Name}}</a>
|
|
66
|
+
<p><a href="{{ routeToPath(path) }}"">{{member.Name}}</a></p>
|
|
67
67
|
</div>
|
|
68
68
|
{{end}}
|
|
69
69
|
</div>
|