@shift72/core-template 0.3.1 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/kibble.json +1 -0
  3. package/package.json +1 -1
  4. package/site/acceptinvite.html.jet +2 -2
  5. package/site/ar_LB.all.json +3 -1
  6. package/site/ca_ES.all.json +1174 -0
  7. package/site/da_DK.all.json +3 -1
  8. package/site/de_DE.all.json +3 -1
  9. package/site/ee_EE.all.json +3 -1
  10. package/site/el_EL.all.json +3 -1
  11. package/site/en_AU.all.json +1 -1
  12. package/site/es_ES.all.json +3 -1
  13. package/site/es_MX.all.json +3 -1
  14. package/site/fi_FI.all.json +3 -1
  15. package/site/fr_FR.all.json +3 -1
  16. package/site/hr_HR.all.json +3 -1
  17. package/site/hu_HU.all.json +3 -1
  18. package/site/it_IT.all.json +3 -1
  19. package/site/ja_JP.all.json +3 -1
  20. package/site/lt_LT.all.json +3 -1
  21. package/site/nl_BE.all.json +3 -1
  22. package/site/no_NO.all.json +3 -1
  23. package/site/pl_PL.all.json +4 -2
  24. package/site/pt_BR.all.json +5 -5
  25. package/site/pt_PT.all.json +3 -1
  26. package/site/ru_RU.all.json +4 -2
  27. package/site/se_SE.all.json +3 -1
  28. package/site/static/styles/main.css.map +1 -1
  29. package/site/styles/_buttons.scss +0 -1
  30. package/site/styles/_forms.scss +20 -0
  31. package/site/styles/_nav.scss +1 -1
  32. package/site/styles/_pages.scss +2 -1
  33. package/site/styles/_shift72.scss +0 -6
  34. package/site/styles/_shopping.scss +4 -0
  35. package/site/templates/common/social-media-buttons.jet +8 -2
  36. package/site/templates/film/item.jet +1 -1
  37. package/site/templates/items/featured_item.jet +1 -5
  38. package/site/templates/items/meta_item.jet +2 -10
  39. package/site/templates/items/tagline.jet +71 -29
  40. package/site/templates/nav/user_logged_out.jet +4 -1
  41. package/site/templates/page/homepage.jet +2 -1
  42. package/site/tr_TR.all.json +3 -1
  43. package/site/uk_UA.all.json +4 -2
  44. package/site/zh_TW.all.json +3 -1
@@ -16,9 +16,15 @@
16
16
 
17
17
  {{if letterboxdID}}
18
18
  <a class="btn btn-social btn-social-letterboxd" aria-label="{{i18n("wcag_aria_label_letterboxd")}}" href="https://boxd.it/{{letterboxdID}}" target="_blank">
19
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 560 560" version="1.1">
19
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 334.79999 128" version="1.1">
20
20
  <title>{{i18n("wcag_aria_label_letterboxd")}}</title>
21
- <path d="M185.422,140 L185.422,420 L374.578,420 L374.578,350.101 L258.146,350.101 L258.146,140 L185.422,140 Z"/>
21
+ <g transform="matrix(1.3333333,0,0,-1.3333333,0,128)">
22
+ <g transform="scale(0.1)">
23
+ <path d="M 857.793,735.43 C 775.559,870.309 630.23,960 464.551,960 207.984,960 0,745.098 0,480 0,214.902 207.984,0 464.551,0 630.23,0 775.559,89.6914 857.793,224.574 812.684,298.559 786.488,386.098 786.488,480 c 0,93.906 26.196,181.441 71.305,255.43"/>
24
+ <path d="M 1648.76,728.125 C 1567.38,867.098 1419.72,960 1251.04,960 1085.36,960 940.031,870.309 857.793,735.43 902.902,661.441 929.102,573.906 929.102,480 c 0,-93.902 -26.2,-181.441 -71.309,-255.426 C 940.031,89.6914 1085.36,0 1251.04,0 c 168.68,0 316.34,92.9023 397.72,231.875 -42.4,72.41 -66.82,157.316 -66.82,248.125 0,90.809 24.42,175.719 66.82,248.125"/>
25
+ <path d="m 2046.49,960 c -168.68,0 -316.34,-92.902 -397.73,-231.875 42.41,-72.406 66.83,-157.316 66.83,-248.125 0,-90.809 -24.42,-175.715 -66.83,-248.125 C 1730.15,92.9023 1877.81,0 2046.49,0 c 256.56,0 464.55,214.902 464.55,480 0,265.098 -207.99,480 -464.55,480"/>
26
+ </g>
27
+ </g>
22
28
  </svg>
23
29
  </a>
24
30
  {{end}}
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  {{end}}
36
36
  <div class="meta-detail-content">
37
- <h1>{{ film.Title }} {{if film.ReleaseDate.Year() > 1}}<small>({{film.ReleaseDate.Year()}})</small>{{end}}</h1>
37
+ <h1>{{ film.Title }}</h1>
38
38
  <div class="meta-detail-tagline-and-classification">
39
39
  <div class="meta-detail-tagline">
40
40
  {{yield metaItemTagline() film}}
@@ -15,11 +15,7 @@
15
15
  <s72-userwishlist-button data-slug="{{item.Slug}}" class="btn-wishlist" data-layout="quick-button"></s72-userwishlist-button>
16
16
 
17
17
  <div class="meta-item-body featured-meta-item-body">
18
- <div class="meta-item-title">{{item.Title}}
19
- {{if isset(item.InnerItem["ReleaseDate"]) && item.InnerItem.ReleaseDate.Year() > 1}}
20
- <small>({{item.InnerItem.ReleaseDate.Year()}})</small>
21
- {{end}}
22
- </div>
18
+ <div class="meta-item-title">{{item.Title}}</div>
23
19
 
24
20
  <div class="meta-item-text">
25
21
  {{yield metaItemTagline() item.InnerItem}}
@@ -47,11 +47,7 @@
47
47
 
48
48
  {{ if !displayTitleAndGenreBelowPosters }}
49
49
  <div class="titles">
50
- <h4 title="{{item.Title}}">{{title|raw}}
51
- {{if isset(item.InnerItem["ReleaseDate"]) && item.InnerItem.ReleaseDate.Year() > 1}}
52
- <small>({{item.InnerItem.ReleaseDate.Year()}})</small>
53
- {{end}}
54
- </h4>
50
+ <h4 title="{{item.Title}}">{{title|raw}}</h4>
55
51
  <div class="strap">
56
52
  <s72-classification-label data-slug="{{item.Slug}}"></s72-classification-label>
57
53
  {{yield metaItemTagline(genres=true, genresLimit=genresLimit, classification=false) item.InnerItem}}
@@ -75,11 +71,7 @@
75
71
 
76
72
  {{if displayTitleAndGenreBelowPosters}}
77
73
  <div class="caption">
78
- <div class="title" title="{{item.Title}}">{{title|raw}}
79
- {{if isset(item.InnerItem["ReleaseDate"]) && item.InnerItem.ReleaseDate.Year() > 1}}
80
- <small>({{item.InnerItem.ReleaseDate.Year()}})</small>
81
- {{end}}
82
- </div>
74
+ <div class="title" title="{{item.Title}}">{{title|stripHTML}}</div>
83
75
  {{yield metaItemTagline(genres=true, genresLimit=genresLimit, classification=false) item.InnerItem}}
84
76
  </div>
85
77
  {{end}}
@@ -1,48 +1,90 @@
1
1
  {{block metaItemTagline(genres=true, genresLimit=-1, classification=true)}}
2
2
  <div class="meta-item-tagline">
3
- {{if classification==true}}
4
- <s72-classification-label data-slug="{{.Slug}}" data-layout="tooltip"></s72-classification-label>
5
- {{end}}
6
-
7
- {{if genres == true}}
8
- {{if isset(.Genres) && len(.Genres) > 0}}
9
- {{itemGenres := .Genres}}
10
- {{if genresLimit > -1 && len(itemGenres) > genresLimit}}
11
- {{itemGenres = itemGenres[:genresLimit]}}
12
- {{end}}
13
-
14
- {{if isset(itemGenres)}}
15
- <span class="meta-item-tagline-item">{{itemGenres}}</span>
16
- {{end}}
17
-
18
- {{if isset(.Runtime) || isset(.Episodes)}}
19
- <span class="meta-item-tagline-divider">•</span>
20
- {{end}}
3
+ {{itemGenres := makeSlice()}}
4
+ {{if genres}}
5
+ {{if isset(.Genres)}}
6
+ {{itemGenres = .Genres}}
7
+ {{else if isset(.ShowInfo) && isset(.ShowInfo.Genres)}}
8
+ {{itemGenres = .ShowInfo.Genres}}
21
9
  {{end}}
10
+ {{end}}
22
11
 
23
- {{if isset(.ShowInfo) && isset(.ShowInfo.Genres)}}
24
- <span class="meta-item-tagline-item">{{.ShowInfo.Genres}}</span>
12
+ {*{ Figure out how many dividers. }*}
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}}
25
35
 
26
- {{if isset(.Runtime) || isset(.Episodes)}}
27
- <span class="meta-item-tagline-divider">•</span>
28
- {{end}}
36
+ {{if genres && len(itemGenres) > 0}}
37
+ {{yield taglineItem() content}}
38
+ {{itemGenres}}
29
39
  {{end}}
40
+ {{yield taglineDivider(dividers=dividers)}}
41
+ {{dividers = dividers - 1}}
30
42
  {{end}}
31
43
 
32
44
  {{if isset(.Runtime)}}
33
- {{if .Runtime > 60}}
34
- <span class="meta-item-tagline-item">{{.Runtime.Hours()}}{{i18n("runtime_hours")}} {{.Runtime.Minutes()}}{{i18n("runtime_minutes")}}</span>
35
- {{else}}
36
- <span class="meta-item-tagline-item">{{.Runtime}}{{i18n("runtime_minutes")}}</span>
45
+ {{yield taglineItem() content}}
46
+ {{if .Runtime > 60}}
47
+ {{.Runtime.Hours()}}{{i18n("runtime_hours")}} {{.Runtime.Minutes()}}{{i18n("runtime_minutes")}}
48
+ {{else}}
49
+ {{.Runtime}}{{i18n("runtime_minutes")}}
50
+ {{end}}
37
51
  {{end}}
52
+ {{yield taglineDivider(dividers=dividers)}}
53
+ {{dividers = dividers - 1}}
38
54
  {{end}}
39
55
 
40
56
  {{if isset(.Items)}}
41
- <span class="meta-item-tagline-item">{{i18n("bundle_items_all_films", len(.Items))}}</span>
57
+ {{yield taglineItem() content}}
58
+ {{i18n("bundle_items_all_films", len(.Items))}}
59
+ {{end}}
60
+ {{yield taglineDivider(dividers=dividers)}}
61
+ {{dividers = dividers - 1}}
42
62
  {{end}}
43
63
 
44
64
  {{if isset(.Episodes)}}
45
- <span class="meta-item-tagline-item">{{i18n("episode_count", len(.Episodes))}}</span>
65
+ {{yield taglineItem() content}}
66
+ {{i18n("episode_count", len(.Episodes))}}
67
+ {{end}}
68
+ {{yield taglineDivider(dividers=dividers)}}
69
+ {{dividers = dividers - 1}}
70
+ {{end}}
71
+
72
+ {{if isset(.ReleaseDate) && .ReleaseDate.Year() > 1}}
73
+ {{yield taglineItem() content}}
74
+ {{.ReleaseDate.Year()}}
75
+ {{end}}
76
+ {{yield taglineDivider(dividers=dividers)}}
77
+ {{dividers = dividers - 1}}
46
78
  {{end}}
47
79
  </div>
48
80
  {{end}}
81
+
82
+ {{block taglineItem()}}
83
+ <span class="meta-item-tagline-item">{{yield content}}</span>
84
+ {{end}}
85
+
86
+ {{block taglineDivider(dividers)}}
87
+ {{if dividers > 0}}
88
+ <span class="meta-item-tagline-divider">•</span>
89
+ {{end}}
90
+ {{end}}
@@ -1,6 +1,9 @@
1
1
  {{block nav_user_logged_out()}}
2
2
  <s72-user-anon class="user-anon">
3
- <div class="vertical-line"></div>
3
+ {{if config("search_disabled") != "true" || isEnabled("language_selector")}}
4
+ <div class="vertical-line"></div>
5
+ {{end}}
6
+
4
7
  {{if config("disable_user_signups") == "true"}}
5
8
  <a href="{{ routeToPath("/signin.html") }}" class="btn btn-signin-primary">{{i18n("nav_signin")}}</a>
6
9
  {{else}}
@@ -17,7 +17,8 @@
17
17
 
18
18
  {{block body()}}
19
19
  <h1 class="sr-only">{{i18n("wcag_homepage_h1")}}</h1>
20
- <main id="main" class="page page-{{page.PageType|lower}}">
20
+
21
+ <main id="main" class="page page-{{page.PageType|lower}} carousel-len-{{len(page.PageCollections[0].Items)}}">
21
22
  {{yield pageCollectionCarousel() page.PageCollections[0]}}
22
23
 
23
24
  <div class="other-sliders">
@@ -74,7 +74,7 @@
74
74
 
75
75
  "social_media_buttons_title": { "other": "Paylaş" },
76
76
 
77
- "accept_invite_page_header": { "other": "...'e hoşgeldiniz " },
77
+ "accept_invite_page_header": { "other": "Hoşgeldiniz" },
78
78
  "acceptinvite_form_invalid_reset_password_token": { "other": "Görünüşe göre bu davet talebini zaten yapmışsınız, onun yerine <a href=\"{{.SigninURL}}\">sign in</a> denemelisiniz. Parolanızı unuttuysanız, parolanızı ayrıca <a href=\"{{.ForgotPasswordURL}}\"> sıfırlayabilirsiniz." },
79
79
  "acceptinvite_complete": { "other": "Teşekkürler. Hesabınız oluşturuldu." },
80
80
  "acceptinvite_form_submit": { "other": "Daveti Kabul Et." },
@@ -197,6 +197,8 @@
197
197
  "shopping_info_available_until_date_explanation_rent": { "other": "Bundan sonra içeriği görüntüleyemeceksiniz." },
198
198
  "shopping_info_available_until_date_explanation_buy": { "other": "Bundan sonra içeriği görüntüleyemeceksiniz." },
199
199
 
200
+ "duration_hour": { "one": "1 saat", "other": "{{.Count}} saat" },
201
+ "duration_day": { "one": "1 gün", "other": "{{.Count}} gün" },
200
202
  "shopping_info_rental_period_duration": { "other": "{{.ValueUnit}} kiralanan gün sayısı " },
201
203
  "shopping_info_watch_window_duration": { "other": "{{.Count}} saat playback oynatma penceresi " },
202
204
  "shopping_info_watch_window_explanation_film": {
@@ -127,7 +127,7 @@
127
127
  "other": "Поділитися"
128
128
  },
129
129
  "accept_invite_page_header": {
130
- "other": "Ласкаво просимо до"
130
+ "other": "Ласкаво просимо"
131
131
  },
132
132
  "acceptinvite_form_invalid_reset_password_token": {
133
133
  "other": "Здається, ви вже використали це запрошення. Спробуйте <a href=\"signin.html\">увійти</a>. Якщо ви забули свій пароль, ви можете <a href=\"forgotpassword.html\">скинути свій пароль</a>."
@@ -489,7 +489,9 @@
489
489
  },
490
490
  "shopping_info_available_until_date_explanation_buy": {
491
491
  "other": "Ви не зможете переглянути контент після цього."
492
- },
492
+ },
493
+ "duration_hour": { "one": "1 година", "other": "{{.Count}} години" },
494
+ "duration_day": { "one": "1 день", "other": "{{.Count}} дні" },
493
495
  "shopping_info_rental_period_duration": {
494
496
  "few": "{{.ValueUnit}} день прокату",
495
497
  "many": "{{.ValueUnit}} день прокату"
@@ -140,7 +140,7 @@
140
140
  "other": "分享"
141
141
  },
142
142
  "accept_invite_page_header": {
143
- "other": "歡迎來到"
143
+ "other": "歡迎"
144
144
  },
145
145
  "acceptinvite_form_invalid_reset_password_token": {
146
146
  "other": "您已接受過此邀請,請從 <a href=\"{{.SigninURL}}\">登入</a> 。若忘記密碼,請至 <a href=\"{{.ForgotPasswordURL}}\">重設密碼</a>。"
@@ -500,6 +500,8 @@
500
500
  "shopping_info_available_until_date_explanation_buy": {
501
501
  "other": "影片下線後將無法觀看。"
502
502
  },
503
+ "duration_hour": { "one": "1小時", "other": "{{.Count}}個小時" },
504
+ "duration_day": { "one": "1天", "other": "{{.Count}}天" },
503
505
  "shopping_info_rental_period_duration": {
504
506
  "other": "租借天數 {{.ValueUnit}} 天"
505
507
  },