nodebb-theme-persona 15.0.10 → 15.1.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/package.json +2 -2
- package/templates/account/blocks.tpl +8 -8
- package/templates/account/categories.tpl +6 -6
- package/templates/account/consent.tpl +21 -21
- package/templates/account/edit/password.tpl +7 -7
- package/templates/account/edit/username.tpl +5 -5
- package/templates/account/edit.tpl +21 -21
- package/templates/account/followers.tpl +2 -2
- package/templates/account/following.tpl +2 -2
- package/templates/account/groups.tpl +2 -2
- package/templates/account/info.tpl +35 -35
- package/templates/account/posts.tpl +8 -8
- package/templates/account/profile.tpl +19 -36
- package/templates/account/sessions.tpl +1 -1
- package/templates/account/settings.tpl +58 -58
- package/templates/account/tags.tpl +1 -1
- package/templates/account/theme.tpl +8 -8
- package/templates/account/topics.tpl +8 -8
- package/templates/account/uploads.tpl +5 -5
- package/templates/categories.tpl +1 -1
- package/templates/category.tpl +6 -6
- package/templates/modules/usercard.tpl +4 -5
- package/templates/notifications.tpl +4 -4
- package/templates/partials/account/header.tpl +4 -4
- package/templates/partials/account/menu.tpl +27 -27
- package/templates/partials/account/session-list.tpl +3 -3
- package/templates/partials/buttons/newTopic.tpl +1 -1
- package/templates/partials/categories/item.tpl +3 -3
- package/templates/partials/categories/lastpost.tpl +4 -4
- package/templates/partials/category/subcategory.tpl +2 -2
- package/templates/partials/chats-menu.tpl +2 -2
- package/templates/partials/cookie-consent.tpl +2 -2
- package/templates/partials/header/chats.tpl +3 -3
- package/templates/partials/header/notifications.tpl +5 -5
- package/templates/partials/header/search.tpl +4 -4
- package/templates/partials/header/user-menu.tpl +18 -18
- package/templates/partials/menu.tpl +9 -9
- package/templates/partials/notifications_list.tpl +3 -3
- package/templates/partials/paginator.tpl +9 -9
- package/templates/partials/post_bar.tpl +2 -2
- package/templates/partials/posts_list_item.tpl +2 -2
- package/templates/partials/quick-category-search-results.tpl +4 -4
- package/templates/partials/quick-search-results.tpl +2 -2
- package/templates/partials/search/results.tpl +2 -2
- package/templates/partials/tags_list.tpl +1 -1
- package/templates/partials/topic/crosspost.tpl +1 -1
- package/templates/partials/topic/event.tpl +31 -5
- package/templates/partials/topic/navigation-post.tpl +1 -1
- package/templates/partials/topic/navigator.tpl +4 -4
- package/templates/partials/topic/necro-post.tpl +1 -1
- package/templates/partials/topic/post-editor.tpl +1 -1
- package/templates/partials/topic/post.tpl +12 -12
- package/templates/partials/topic/quickreply.tpl +6 -4
- package/templates/partials/topic/reply-button.tpl +5 -5
- package/templates/partials/topic/selection-tooltip.tpl +1 -1
- package/templates/partials/topic/sort.tpl +5 -5
- package/templates/partials/topic/stats.tpl +11 -11
- package/templates/partials/topic/tools.tpl +1 -1
- package/templates/partials/topic/watch.tpl +9 -9
- package/templates/partials/topics_list.tpl +14 -14
- package/templates/partials/users_list.tpl +1 -1
- package/templates/partials/users_list_menu.tpl +6 -6
- package/templates/popular.tpl +2 -2
- package/templates/recent.tpl +3 -3
- package/templates/tag.tpl +3 -3
- package/templates/tags.tpl +2 -2
- package/templates/top.tpl +2 -2
- package/templates/topic.tpl +4 -4
- package/templates/unread.tpl +3 -3
- package/templates/users.tpl +2 -2
- package/templates/world.tpl +18 -18
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
<div component="topic/labels" class="d-flex flex-wrap gap-1 w-100 align-items-center">
|
|
29
29
|
<span component="topic/watched" class="badge border border-gray-300 text-body {{{ if !./followed }}}hidden{{{ end }}}">
|
|
30
30
|
<i class="fa fa-bell-o"></i>
|
|
31
|
-
<span>
|
|
31
|
+
<span>{{tx("topic:watching")}}</span>
|
|
32
32
|
</span>
|
|
33
33
|
<span component="topic/ignored" class="badge border border-gray-300 text-body {{{ if !./ignored }}}hidden{{{ end }}}">
|
|
34
34
|
<i class="fa fa-eye-slash"></i>
|
|
35
|
-
<span>
|
|
35
|
+
<span>{{tx("topic:ignoring")}}</span>
|
|
36
36
|
</span>
|
|
37
37
|
<span component="topic/scheduled" class="badge border border-gray-300 text-body {{{ if !./scheduled }}}hidden{{{ end }}}">
|
|
38
38
|
<i class="fa fa-clock-o"></i>
|
|
39
|
-
<span>
|
|
39
|
+
<span>{{tx("topic:scheduled")}}</span>
|
|
40
40
|
</span>
|
|
41
41
|
<span component="topic/pinned" class="badge border border-gray-300 text-body {{{ if (./scheduled || !./pinned) }}}hidden{{{ end }}}">
|
|
42
42
|
<i class="fa fa-thumb-tack"></i>
|
|
43
|
-
<span>{{{ if !./pinExpiry }}}
|
|
43
|
+
<span>{{{ if !./pinExpiry }}}{{tx("topic:pinned")}}{{{ else }}}{{tx("topic:pinned-with-expiry", isoTimeToLocaleString(./pinExpiryISO, config.userLang))}}{{{ end }}}</span>
|
|
44
44
|
</span>
|
|
45
45
|
<span component="topic/locked" class="badge border border-gray-300 text-body {{{ if !./locked }}}hidden{{{ end }}}">
|
|
46
46
|
<i class="fa fa-lock"></i>
|
|
47
|
-
<span>
|
|
47
|
+
<span>{{tx("topic:locked")}}</span>
|
|
48
48
|
</span>
|
|
49
49
|
<span component="topic/moved" class="badge border border-gray-300 text-body {{{ if !./oldCid }}}hidden{{{ end }}}">
|
|
50
50
|
<i class="fa fa-arrow-circle-right"></i>
|
|
51
|
-
<span>
|
|
51
|
+
<span>{{tx("topic:moved")}}</span>
|
|
52
52
|
</span>
|
|
53
53
|
{{{ each ./icons }}}<!-- IMPORT partials/topic/icon.tpl -->{{{ end }}}
|
|
54
54
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
{{{ end }}}
|
|
81
81
|
</div>
|
|
82
82
|
{{{ if ./thumbs.length }}}
|
|
83
|
-
<a class="topic-thumbs position-relative text-decoration-none flex-shrink-0 d-none d-xl-block" href="{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}" aria-label="
|
|
83
|
+
<a class="topic-thumbs position-relative text-decoration-none flex-shrink-0 d-none d-xl-block" href="{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}" aria-label="{{tx("topic:thumb-image")}}">
|
|
84
84
|
<img class="topic-thumb rounded-1 bg-light" style="width:auto;max-width: 5.33rem;height: 3.33rem;object-fit: contain;" src="{./thumbs.0.url}" alt=""/>
|
|
85
85
|
<span data-numthumbs="{./thumbs.length}" class="px-1 position-absolute bottom-0 end-0 badge rounded-1 opacity-75 fw-semibold text-bg-light" style="margin: 0.125rem; z-index: 1;">{./thumbs.length}</span>
|
|
86
86
|
</a>
|
|
@@ -92,18 +92,18 @@
|
|
|
92
92
|
{{{ if !reputation:disabled }}}
|
|
93
93
|
<div class="stats-votes overflow-hidden d-flex flex-column align-items-center">
|
|
94
94
|
<span class="fs-4" title="{./votes}">{humanReadableNumber(./votes, 0)}</span>
|
|
95
|
-
<span class="d-none d-xl-flex text-uppercase text-xs">
|
|
95
|
+
<span class="d-none d-xl-flex text-uppercase text-xs">{{tx("global:votes")}}</span>
|
|
96
96
|
<i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-chevron-up"></i>
|
|
97
97
|
</div>
|
|
98
98
|
{{{ end }}}
|
|
99
99
|
<div class="stats-postcount overflow-hidden d-flex flex-column align-items-center">
|
|
100
100
|
<span class="fs-4" title="{./postcount}">{humanReadableNumber(./postcount, 0)}</span>
|
|
101
|
-
<span class="d-none d-xl-flex text-uppercase text-xs">
|
|
101
|
+
<span class="d-none d-xl-flex text-uppercase text-xs">{{tx("global:posts")}}</span>
|
|
102
102
|
<i class="d-xl-none fa-regular fa-fw text-xs text-muted opacity-75 fa-message"></i>
|
|
103
103
|
</div>
|
|
104
104
|
<div class="stats-viewcount overflow-hidden d-flex flex-column align-items-center">
|
|
105
105
|
<span class="fs-4" title="{./viewcount}">{humanReadableNumber(./viewcount, 0)}</span>
|
|
106
|
-
<span class="d-none d-xl-flex text-uppercase text-xs">
|
|
106
|
+
<span class="d-none d-xl-flex text-uppercase text-xs">{{tx("global:views")}}</span>
|
|
107
107
|
<i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-eye"></i>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
@@ -111,17 +111,17 @@
|
|
|
111
111
|
<div class="lastpost border-start border-4 lh-sm h-100 d-flex flex-column gap-1" style="border-color: {./category.bgColor}!important;">
|
|
112
112
|
{{{ if ./unreplied }}}
|
|
113
113
|
<div class="ps-2 text-xs">
|
|
114
|
-
|
|
114
|
+
{{tx("category:no-replies")}}
|
|
115
115
|
</div>
|
|
116
116
|
{{{ else }}}
|
|
117
117
|
{{{ if ./teaser.pid }}}
|
|
118
118
|
<div class="ps-2">
|
|
119
119
|
<a href="{{{ if ./teaser.user.userslug }}}{config.relative_path}/user/{./teaser.user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none avatar-tooltip" title="{./teaser.user.displayname}">{{buildAvatar(./teaser.user, "18px", true)}}</a>
|
|
120
|
-
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}" aria-label="
|
|
120
|
+
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
121
121
|
</div>
|
|
122
122
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|
|
123
|
-
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="
|
|
124
|
-
{{
|
|
123
|
+
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
124
|
+
{{./teaser.content}}
|
|
125
125
|
</div>
|
|
126
126
|
{{{ end }}}
|
|
127
127
|
{{{ end }}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<div component="user/list/menu" class="text-sm d-flex flex-wrap align-items-center gap-2">
|
|
2
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=online">
|
|
2
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=online">{{tx("global:online")}}</a>
|
|
3
3
|
|
|
4
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=sort-posts">
|
|
4
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=sort-posts">{{tx("users:top-posters")}}</a>
|
|
5
5
|
|
|
6
6
|
{{{ if !reputation:disabled }}}
|
|
7
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=sort-reputation">
|
|
7
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=sort-reputation">{{tx("users:most-reputation")}}</a>
|
|
8
8
|
{{{ end }}}
|
|
9
9
|
|
|
10
10
|
{{{ if isAdminOrGlobalMod }}}
|
|
11
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=flagged">
|
|
11
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=flagged">{{tx("users:most-flags")}}</a>
|
|
12
12
|
|
|
13
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=banned">
|
|
13
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=banned">{{tx("user:banned")}}</a>
|
|
14
14
|
|
|
15
|
-
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=muted">
|
|
15
|
+
<a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=muted">{{tx("user:muted")}}</a>
|
|
16
16
|
{{{ end }}}
|
|
17
17
|
</div>
|
package/templates/popular.tpl
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{{{ if canPost }}}
|
|
11
11
|
<!-- IMPORT partials/buttons/newTopic.tpl -->
|
|
12
12
|
{{{ else }}}
|
|
13
|
-
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">
|
|
13
|
+
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">{{tx("category:guest-login-post")}}</a>
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
</div>
|
|
16
16
|
<div class="d-flex gap-1">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div class="category">
|
|
25
25
|
{{{ if !topics.length }}}
|
|
26
|
-
<div class="alert alert-warning" id="category-no-topics">
|
|
26
|
+
<div class="alert alert-warning" id="category-no-topics">{{tx("recent:no-popular-topics")}}</div>
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
29
|
<!-- IMPORT partials/topics_list.tpl -->
|
package/templates/recent.tpl
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
{{{ if canPost }}}
|
|
11
11
|
<!-- IMPORT partials/buttons/newTopic.tpl -->
|
|
12
12
|
{{{ else }}}
|
|
13
|
-
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">
|
|
13
|
+
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">{{tx("category:guest-login-post")}}</a>
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
<a href="{config.relative_path}/{selectedFilter.url}{querystring}" class="d-inline-block">
|
|
16
|
-
<div class="alert alert-warning h-100 m-0 px-2 py-1 d-flex gap-1 align-items-center hide" id="new-topics-alert"><i class="fa fa-fw fa-rotate-right"></i>
|
|
16
|
+
<div class="alert alert-warning h-100 m-0 px-2 py-1 d-flex gap-1 align-items-center hide" id="new-topics-alert"><i class="fa fa-fw fa-rotate-right"></i>{{tx("recent:load-new-posts")}}</div>
|
|
17
17
|
</a>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="d-flex gap-1">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<div class="category">
|
|
28
28
|
<!-- IF !topics.length -->
|
|
29
|
-
<div class="alert alert-warning" id="category-no-topics">
|
|
29
|
+
<div class="alert alert-warning" id="category-no-topics">{{tx("recent:no-recent-topics")}}</div>
|
|
30
30
|
<!-- ENDIF !topics.length -->
|
|
31
31
|
|
|
32
32
|
<!-- IMPORT partials/topics_list.tpl -->
|
package/templates/tag.tpl
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{{{ if loggedIn }}}
|
|
11
11
|
<!-- IMPORT partials/buttons/newTopic.tpl -->
|
|
12
12
|
{{{ else }}}
|
|
13
|
-
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">
|
|
13
|
+
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">{{tx("category:guest-login-post")}}</a>
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
</div>
|
|
16
16
|
<div class="d-flex gap-1">
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
<div class="category">
|
|
24
24
|
{{{ if !topics.length }}}
|
|
25
|
-
<div class="alert alert-warning">
|
|
25
|
+
<div class="alert alert-warning">{{tx("tags:no-tag-topics")}}</div>
|
|
26
26
|
{{{ end }}}
|
|
27
27
|
|
|
28
28
|
<!-- IMPORT partials/topics_list.tpl -->
|
|
29
|
-
<button id="load-more-btn" class="btn btn-primary hide">
|
|
29
|
+
<button id="load-more-btn" class="btn btn-primary hide">{{tx("unread:load-more")}}</button>
|
|
30
30
|
{{{ if config.usePagination }}}
|
|
31
31
|
<!-- IMPORT partials/paginator.tpl -->
|
|
32
32
|
{{{ end }}}
|
package/templates/tags.tpl
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="d-flex justify-content-end mb-3">
|
|
11
11
|
<div class="search">
|
|
12
12
|
<div class="input-group">
|
|
13
|
-
<input type="text" class="form-control form-control-sm" placeholder="
|
|
13
|
+
<input type="text" class="form-control form-control-sm" placeholder="{{tx("global:search")}}" id="tag-search">
|
|
14
14
|
<button class="btn btn-sm btn-primary" type="button">
|
|
15
15
|
<i class="fa fa-search"></i>
|
|
16
16
|
</button>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<hr/>
|
|
24
24
|
|
|
25
25
|
{{{ if !tags.length }}}
|
|
26
|
-
<div class="alert alert-warning">
|
|
26
|
+
<div class="alert alert-warning">{{tx("tags:no-tags")}}</div>
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
29
|
<div class="category row">
|
package/templates/top.tpl
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{{{ if canPost }}}
|
|
11
11
|
<!-- IMPORT partials/buttons/newTopic.tpl -->
|
|
12
12
|
{{{ else }}}
|
|
13
|
-
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">
|
|
13
|
+
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary btn-sm">{{tx("category:guest-login-post")}}</a>
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
</div>
|
|
16
16
|
<div class="d-flex gap-1">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div class="category">
|
|
25
25
|
{{{ if !topics.length }}}
|
|
26
|
-
<div class="alert alert-warning" id="category-no-topics">
|
|
26
|
+
<div class="alert alert-warning" id="category-no-topics">{{tx("top:no-top-topics")}}</div>
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
29
|
<!-- IMPORT partials/topics_list.tpl -->
|
package/templates/topic.tpl
CHANGED
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
<div class="topic-info d-flex gap-2 align-items-center flex-wrap">
|
|
20
20
|
<span component="topic/labels" class="d-flex gap-2 {{{ if (!scheduled && (!pinned && (!locked && (!icons.length && (!oldCid || (oldCid == "-1")))))) }}}hidden{{{ end }}}">
|
|
21
21
|
<span component="topic/scheduled" class="badge badge border border-gray-300 text-body {{{ if !scheduled }}}hidden{{{ end }}}">
|
|
22
|
-
<i class="fa fa-clock-o"></i>
|
|
22
|
+
<i class="fa fa-clock-o"></i> {{tx("topic:scheduled")}}
|
|
23
23
|
</span>
|
|
24
24
|
<span component="topic/pinned" class="badge badge border border-gray-300 text-body {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}">
|
|
25
|
-
<i class="fa fa-thumb-tack"></i> {{{ if !pinExpiry }}}
|
|
25
|
+
<i class="fa fa-thumb-tack"></i> {{{ if !pinExpiry }}}{{tx("topic:pinned")}}{{{ else }}}{{tx("topic:pinned-with-expiry", isoTimeToLocaleString(./pinExpiryISO, config.userLang))}}{{{ end }}}
|
|
26
26
|
</span>
|
|
27
27
|
<span component="topic/locked" class="badge badge border border-gray-300 text-body {{{ if !locked }}}hidden{{{ end }}}">
|
|
28
|
-
<i class="fa fa-lock"></i>
|
|
28
|
+
<i class="fa fa-lock"></i> {{tx("topic:locked")}}
|
|
29
29
|
</span>
|
|
30
30
|
<a component="topic/moved" href="{config.relative_path}/category/{oldCid}" class="badge badge border border-gray-300 text-body text-decoration-none {{{ if !oldCid }}}hidden{{{ end }}}">
|
|
31
|
-
<i class="fa fa-arrow-circle-right"></i> {{{ if privileges.isAdminOrMod }}}
|
|
31
|
+
<i class="fa fa-arrow-circle-right"></i> {{{ if privileges.isAdminOrMod }}}{{tx("topic:moved-from", oldCategory.name)}}{{{ else }}}{{tx("topic:moved")}}{{{ end }}}
|
|
32
32
|
</a>
|
|
33
33
|
{{{ each ./icons }}}<!-- IMPORT partials/topic/icon.tpl -->{{{ end }}}
|
|
34
34
|
</span>
|
package/templates/unread.tpl
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="d-flex gap-1">
|
|
10
10
|
<!-- IMPORT partials/buttons/newTopic.tpl -->
|
|
11
11
|
<a href="{config.relative_path}/{selectedFilter.url}{querystring}" class="d-inline-block">
|
|
12
|
-
<div class="alert alert-warning h-100 m-0 px-2 py-1 d-flex gap-1 align-items-center hide" id="new-topics-alert"><i class="fa fa-fw fa-rotate-right"></i>
|
|
12
|
+
<div class="alert alert-warning h-100 m-0 px-2 py-1 d-flex gap-1 align-items-center hide" id="new-topics-alert"><i class="fa fa-fw fa-rotate-right"></i>{{tx("recent:load-new-posts")}}</div>
|
|
13
13
|
</a>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<div class="category">
|
|
29
|
-
<div id="category-no-topics" class="alert alert-warning {{{ if topics.length }}}hidden{{{ end }}}">
|
|
29
|
+
<div id="category-no-topics" class="alert alert-warning {{{ if topics.length }}}hidden{{{ end }}}">{{tx("unread:no-unread-topics")}}</div>
|
|
30
30
|
|
|
31
31
|
<!-- IMPORT partials/topics_list.tpl -->
|
|
32
|
-
<button id="load-more-btn" class="btn btn-primary hide">
|
|
32
|
+
<button id="load-more-btn" class="btn btn-primary hide">{{tx("unread:load-more")}}</button>
|
|
33
33
|
{{{ if config.usePagination }}}
|
|
34
34
|
<!-- IMPORT partials/paginator.tpl -->
|
|
35
35
|
{{{ end }}}
|
package/templates/users.tpl
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
<div class="d-flex gap-2 align-items-center">
|
|
12
12
|
{{{ if showInviteButton }}}
|
|
13
|
-
<button component="user/invite" class="btn btn-sm btn-success text-nowrap"><i class="fa fa-users"></i>
|
|
13
|
+
<button component="user/invite" class="btn btn-sm btn-success text-nowrap"><i class="fa fa-users"></i> {{tx("users:invite")}}</button>
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
|
|
16
16
|
{{{ if displayUserSearch }}}
|
|
17
17
|
<div class="search">
|
|
18
18
|
<div class="input-group">
|
|
19
|
-
<input class="form-control form-control-sm" id="search-user" type="text" placeholder="
|
|
19
|
+
<input class="form-control form-control-sm" id="search-user" type="text" placeholder="{{tx("global:search")}}"/>
|
|
20
20
|
<button class="btn btn-sm btn-primary" type="button">
|
|
21
21
|
<i component="user/search/icon" class="fa fa-search"></i>
|
|
22
22
|
</button>
|
package/templates/world.tpl
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<div class="category-header d-flex flex-column gap-2">
|
|
15
15
|
<div class="d-flex gap-2 align-items-center mb-1 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
|
|
16
16
|
{{buildCategoryIcon(@value, "40px", "rounded-1 flex-shrink-0")}}
|
|
17
|
-
<h1 class="tracking-tight fs-2 fw-semibold mb-0 text-center">
|
|
17
|
+
<h1 class="tracking-tight fs-2 fw-semibold mb-0 text-center">{{tx("world:name")}}</h1>
|
|
18
18
|
</div>
|
|
19
19
|
{{{ if ./descriptionParsed }}}
|
|
20
20
|
<p class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
21
|
-
{{./descriptionParsed}}
|
|
21
|
+
{{{ if (cid == "-1") }}}{{tx(./descriptionParsed)}}{{{ else }}}{{./descriptionParsed}}{{{ end }}}
|
|
22
22
|
</p>
|
|
23
23
|
{{{ end }}}
|
|
24
24
|
</div>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<form class="mb-3" role="search" method="GET" action="{config.relative_path}/search">
|
|
32
32
|
<input type="hidden" name="in" value="categories" />
|
|
33
33
|
<div class="input-group bottom-sheet">
|
|
34
|
-
<input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="
|
|
34
|
+
<input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="{{tx("world:category-search")}}" />
|
|
35
35
|
<button class="btn btn-outline-secondary dropdown-toggle d-md-none" type="button" data-bs-toggle="dropdown">
|
|
36
36
|
<i class="fa fa-fw fa-list"></i>
|
|
37
37
|
</button>
|
|
@@ -76,20 +76,20 @@
|
|
|
76
76
|
<span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
|
|
77
77
|
</button>
|
|
78
78
|
<ul class="dropdown-menu" id="sort-options">
|
|
79
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world">
|
|
80
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?local=1">
|
|
81
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?all=1">
|
|
82
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">
|
|
83
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">
|
|
84
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">
|
|
85
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=year">
|
|
86
|
-
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">
|
|
79
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world">{{tx("world:latest")}}</a></li>
|
|
80
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?local=1">{{tx("world:latest-local")}}</a></li>
|
|
81
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?all=1">{{tx("world:latest-all")}}</a></li>
|
|
82
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">{{tx("world:popular-day")}}</a></li>
|
|
83
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">{{tx("world:popular-week")}}</a></li>
|
|
84
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">{{tx("world:popular-month")}}</a></li>
|
|
85
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=year">{{tx("world:popular-year")}}</a></li>
|
|
86
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">{{tx("world:popular-alltime")}}</a></li>
|
|
87
87
|
</ul>
|
|
88
88
|
</div>
|
|
89
89
|
{{{ end }}}
|
|
90
90
|
<a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" id="world-help" href="#">
|
|
91
91
|
<i class="fa fa-question text-primary"></i>
|
|
92
|
-
<span class="visible-md-inline visible-lg-inline">
|
|
92
|
+
<span class="visible-md-inline visible-lg-inline">{{tx("world:help")}}</span>
|
|
93
93
|
</a>
|
|
94
94
|
<!-- IMPORT partials/category/tools-dropdown-left.tpl -->
|
|
95
95
|
</div>
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
{{{ if !config.loggedIn }}}
|
|
101
101
|
<div class="alert alert-info alert-dismissible fade show">
|
|
102
102
|
<p class="fw-semibold">
|
|
103
|
-
|
|
103
|
+
{{tx("world:onboard.title")}}
|
|
104
104
|
</p>
|
|
105
|
-
<p>
|
|
106
|
-
<p>
|
|
107
|
-
<p>
|
|
108
|
-
<a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">
|
|
109
|
-
<a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">
|
|
105
|
+
<p>{{tx("world:onboard.what")}}</p>
|
|
106
|
+
<p>{{tx("world:onboard.why")}}</p>
|
|
107
|
+
<p>{{tx("world:onboard.how")}}</p>
|
|
108
|
+
<a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">{{tx("global:register")}}</a>
|
|
109
|
+
<a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">{{tx("global:login")}}</a>
|
|
110
110
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
111
111
|
</div>
|
|
112
112
|
{{{ end }}}
|