nodebb-theme-persona 13.3.57 → 13.3.58
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 +1 -1
- package/templates/account/settings.tpl +64 -88
package/package.json
CHANGED
|
@@ -18,17 +18,16 @@
|
|
|
18
18
|
<h4>[[user:select-homepage]]</h4>
|
|
19
19
|
<div class="card card-body mb-3">
|
|
20
20
|
<div class="mb-2">
|
|
21
|
-
<label for="homePageRoute">[[user:homepage]]</label>
|
|
22
21
|
<select class="form-select" id="homePageRoute" data-property="homePageRoute">
|
|
23
22
|
<option value="none">None</option>
|
|
24
23
|
{{{each homePageRoutes}}}
|
|
25
24
|
<option value="{homePageRoutes.route}" <!-- IF homePageRoutes.selected -->selected="1"<!-- ENDIF homePageRoutes.selected -->>{homePageRoutes.name}</option>
|
|
26
25
|
{{{end}}}
|
|
27
26
|
</select>
|
|
28
|
-
<p class="form-text">[[user:homepage-description]]</p>
|
|
27
|
+
<p class="form-text mb-0">[[user:homepage-description]]</p>
|
|
29
28
|
</div>
|
|
30
29
|
<div id="homePageCustomContainer" class="mb-2" style="display: none;">
|
|
31
|
-
<label for="homePageCustom">[[user:custom-route]]</label>
|
|
30
|
+
<label for="homePageCustom" class="form-label">[[user:custom-route]]</label>
|
|
32
31
|
<input type="text" class="form-control" data-property="homePageCustom" id="homePageCustom" value="{settings.homePageRoute}"/>
|
|
33
32
|
<p class="form-text">[[user:custom-route-help]]</p>
|
|
34
33
|
</div>
|
|
@@ -38,83 +37,70 @@
|
|
|
38
37
|
<h4>[[global:privacy]]</h4>
|
|
39
38
|
<div class="card card-body mb-3">
|
|
40
39
|
<!-- IF !hideEmail -->
|
|
41
|
-
<div class="form-check">
|
|
42
|
-
<input class="form-check-input" type="checkbox" data-property="showemail" <!-- IF settings.showemail -->checked <!-- ENDIF settings.showemail -->/>
|
|
43
|
-
<
|
|
44
|
-
<label class="form-check-label">[[user:show-email]]</label>
|
|
45
|
-
</strong>
|
|
40
|
+
<div class="form-check mb-2">
|
|
41
|
+
<input id="showemail" class="form-check-input" type="checkbox" data-property="showemail" <!-- IF settings.showemail -->checked <!-- ENDIF settings.showemail -->/>
|
|
42
|
+
<label for="showemail" class="form-check-label">[[user:show-email]]</label>
|
|
46
43
|
</div>
|
|
47
44
|
<!-- ENDIF !hideEmail -->
|
|
48
45
|
|
|
49
46
|
<!-- IF !hideFullname -->
|
|
50
|
-
<div class="form-check">
|
|
51
|
-
<input class="form-check-input" type="checkbox" data-property="showfullname" <!-- IF settings.showfullname -->checked<!-- ENDIF settings.showfullname -->/>
|
|
52
|
-
<
|
|
53
|
-
<label class="form-check-label">[[user:show-fullname]]</label>
|
|
54
|
-
</strong>
|
|
47
|
+
<div class="form-check mb-2">
|
|
48
|
+
<input id="showfullname" class="form-check-input" type="checkbox" data-property="showfullname" <!-- IF settings.showfullname -->checked<!-- ENDIF settings.showfullname -->/>
|
|
49
|
+
<label for="showfullname" class="form-check-label">[[user:show-fullname]]</label>
|
|
55
50
|
</div>
|
|
56
51
|
<!-- ENDIF !hideFullname -->
|
|
57
52
|
<!-- IF !config.disableChat -->
|
|
58
53
|
<div class="form-check">
|
|
59
|
-
<input class="form-check-input" type="checkbox" data-property="restrictChat" <!-- IF settings.restrictChat -->checked<!-- ENDIF settings.restrictChat -->/>
|
|
60
|
-
<
|
|
61
|
-
<label class="form-check-label">[[user:restrict-chats]]</label>
|
|
62
|
-
</strong>
|
|
54
|
+
<input id="restrictChat" class="form-check-input" type="checkbox" data-property="restrictChat" <!-- IF settings.restrictChat -->checked<!-- ENDIF settings.restrictChat -->/>
|
|
55
|
+
<label for="restrictChat" class="form-check-label">[[user:restrict-chats]]</label>
|
|
63
56
|
</div>
|
|
64
57
|
<!-- ENDIF !config.disableChat -->
|
|
65
58
|
</div>
|
|
66
59
|
|
|
67
60
|
<h4>[[user:browsing]]</h4>
|
|
68
61
|
<div class="card card-body mb-3">
|
|
69
|
-
<div class="form-check">
|
|
70
|
-
<input class="form-check-input" type="checkbox" data-property="openOutgoingLinksInNewTab" <!-- IF settings.openOutgoingLinksInNewTab -->checked<!-- ENDIF settings.openOutgoingLinksInNewTab -->/>
|
|
71
|
-
<
|
|
72
|
-
<label class="form-check-label">[[user:open-links-in-new-tab]]</label>
|
|
73
|
-
</strong>
|
|
62
|
+
<div class="form-check mb-2">
|
|
63
|
+
<input id="openOutgoingLinksInNewTab" class="form-check-input" type="checkbox" data-property="openOutgoingLinksInNewTab" <!-- IF settings.openOutgoingLinksInNewTab -->checked<!-- ENDIF settings.openOutgoingLinksInNewTab -->/>
|
|
64
|
+
<label for="openOutgoingLinksInNewTab" class="form-check-label">[[user:open-links-in-new-tab]]</label>
|
|
74
65
|
</div>
|
|
75
66
|
<!-- IF inTopicSearchAvailable -->
|
|
76
|
-
<div class="form-check">
|
|
77
|
-
<input class="form-check-input" type="checkbox" data-property="topicSearchEnabled" <!-- IF settings.topicSearchEnabled -->checked<!-- ENDIF settings.topicSearchEnabled -->/>
|
|
78
|
-
<
|
|
79
|
-
<label class="form-check-label">[[user:enable-topic-searching]]</label>
|
|
80
|
-
</strong>
|
|
67
|
+
<div class="form-check mb-2">
|
|
68
|
+
<input id="topicSearchEnabled" class="form-check-input" type="checkbox" data-property="topicSearchEnabled" <!-- IF settings.topicSearchEnabled -->checked<!-- ENDIF settings.topicSearchEnabled -->/>
|
|
69
|
+
<label for="topicSearchEnabled" class="form-check-label">[[user:enable-topic-searching]]</label>
|
|
81
70
|
</div>
|
|
82
71
|
<p class="form-text">[[user:topic-search-help]]</p>
|
|
83
72
|
<!-- ENDIF inTopicSearchAvailable -->
|
|
84
|
-
<div class="form-check">
|
|
85
|
-
<input class="form-check-input" type="checkbox" data-property="updateUrlWithPostIndex" {{{ if settings.updateUrlWithPostIndex }}}checked{{{ end }}}/>
|
|
86
|
-
<
|
|
87
|
-
<label class="form-check-label">[[user:update-url-with-post-index]]</label>
|
|
88
|
-
</strong>
|
|
73
|
+
<div class="form-check mb-2">
|
|
74
|
+
<input id="updateUrlWithPostIndex" class="form-check-input" type="checkbox" data-property="updateUrlWithPostIndex" {{{ if settings.updateUrlWithPostIndex }}}checked{{{ end }}}/>
|
|
75
|
+
<label for="updateUrlWithPostIndex" class="form-check-label">[[user:update-url-with-post-index]]</label>
|
|
89
76
|
</div>
|
|
90
77
|
<div class="form-check">
|
|
91
|
-
<input class="form-check-input" type="checkbox" data-property="scrollToMyPost" <!-- IF settings.scrollToMyPost -->checked<!-- ENDIF settings.scrollToMyPost -->/>
|
|
92
|
-
<
|
|
93
|
-
<label class="form-check-label">[[user:scroll-to-my-post]]</label>
|
|
94
|
-
</strong>
|
|
78
|
+
<input id="scrollToMyPost" class="form-check-input" type="checkbox" data-property="scrollToMyPost" <!-- IF settings.scrollToMyPost -->checked<!-- ENDIF settings.scrollToMyPost -->/>
|
|
79
|
+
<label for="scrollToMyPost" class="form-check-label">[[user:scroll-to-my-post]]</label>
|
|
95
80
|
</div>
|
|
96
81
|
</div>
|
|
97
82
|
|
|
98
83
|
<h4>[[global:pagination]]</h4>
|
|
99
84
|
<div class="card card-body mb-3">
|
|
100
|
-
<div class="mb-2
|
|
101
|
-
<input type="checkbox" class="form-check-input" data-property="usePagination" <!-- IF settings.usePagination -->checked<!-- ENDIF settings.usePagination -->>
|
|
85
|
+
<div class="form-check mb-2">
|
|
86
|
+
<input id="usePagination" type="checkbox" class="form-check-input" data-property="usePagination" <!-- IF settings.usePagination -->checked<!-- ENDIF settings.usePagination -->>
|
|
87
|
+
<label for="usePagination" class="form-check-label">[[user:paginate-description]]</label>
|
|
102
88
|
</div>
|
|
103
89
|
<div class="mb-3">
|
|
104
|
-
<
|
|
105
|
-
<input type="text" class="form-control" data-property="topicsPerPage" value="{settings.topicsPerPage}">
|
|
90
|
+
<label for="topicsPerPage" class="form-label">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
|
|
91
|
+
<input id="topicsPerPage" type="text" class="form-control" data-property="topicsPerPage" value="{settings.topicsPerPage}">
|
|
106
92
|
</div>
|
|
107
|
-
<div
|
|
108
|
-
<
|
|
109
|
-
<input type="text" class="form-control" data-property="postsPerPage" value="{settings.postsPerPage}">
|
|
93
|
+
<div>
|
|
94
|
+
<label for="postsPerPage" class="form-label">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
|
|
95
|
+
<input id="postsPerPage" type="text" class="form-control" data-property="postsPerPage" value="{settings.postsPerPage}">
|
|
110
96
|
</div>
|
|
111
97
|
</div>
|
|
112
98
|
|
|
113
|
-
<h4
|
|
99
|
+
<h4>[[global:sort]]</h4>
|
|
114
100
|
<div class="card card-body mb-3">
|
|
115
101
|
<div class="mb-2">
|
|
116
|
-
<label class="form-label">[[user:category-topic-sort]]</label>
|
|
117
|
-
<select class="form-select" data-property="categoryTopicSort">
|
|
102
|
+
<label for="categoryTopicSort" class="form-label">[[user:category-topic-sort]]</label>
|
|
103
|
+
<select id="categoryTopicSort" class="form-select" data-property="categoryTopicSort">
|
|
118
104
|
<option value="recently_replied" {{{ if (settings.categoryTopicSort == "recently_replied") }}}selected{{{ end }}}>[[topic:recently-replied]]</option>
|
|
119
105
|
<option value="recently_created" {{{ if (settings.categoryTopicSort == "recently_created") }}}selected{{{ end }}}>[[topic:recently-created]]</option>
|
|
120
106
|
<option value="most_posts" {{{ if (settings.categoryTopicSort == "most_posts") }}}selected{{{ end }}}>[[topic:most-posts]]</option>
|
|
@@ -122,9 +108,9 @@
|
|
|
122
108
|
<option value="most_views" {{{ if (settings.categoryTopicSort == "most_views") }}}selected{{{ end }}}>[[topic:most-views]]</option>
|
|
123
109
|
</select>
|
|
124
110
|
</div>
|
|
125
|
-
<div
|
|
126
|
-
<label class="form-label">[[user:topic-post-sort]]</label>
|
|
127
|
-
<select class="form-select" data-property="topicPostSort">
|
|
111
|
+
<div>
|
|
112
|
+
<label for="topicPostSort" class="form-label">[[user:topic-post-sort]]</label>
|
|
113
|
+
<select id="topicPostSort" class="form-select" data-property="topicPostSort">
|
|
128
114
|
<option value="oldest_to_newest" {{{ if (settings.topicPostSort == "oldest_to_newest") }}}selected{{{ end }}}>[[topic:oldest-to-newest]]</option>
|
|
129
115
|
<option value="newest_to_oldest" {{{ if (settings.topicPostSort == "newest_to_oldest") }}}selected{{{ end }}}>[[topic:newest-to-oldest]]</option>
|
|
130
116
|
<option value="most_votes" {{{ if (settings.topicPostSort == "most_votes") }}}selected{{{ end }}}>[[topic:most-votes]]</option>
|
|
@@ -136,7 +122,7 @@
|
|
|
136
122
|
<h4>[[global:email]]</h4>
|
|
137
123
|
<div class="card card-body mb-3">
|
|
138
124
|
<div class="mb-2">
|
|
139
|
-
<label for="dailyDigestFreq">[[user:digest-label]]</label>
|
|
125
|
+
<label class="form-label" for="dailyDigestFreq">[[user:digest-label]]</label>
|
|
140
126
|
<select class="form-select" id="dailyDigestFreq" data-property="dailyDigestFreq" autocomplete="off">
|
|
141
127
|
{{{each dailyDigestFreqOptions}}}
|
|
142
128
|
<option value="{dailyDigestFreqOptions.value}" <!-- IF dailyDigestFreqOptions.selected -->selected="1"<!-- ENDIF dailyDigestFreqOptions.selected -->>{dailyDigestFreqOptions.name}</option>
|
|
@@ -159,48 +145,38 @@
|
|
|
159
145
|
<div class="col-12 col-md-6">
|
|
160
146
|
<h4>[[global:language]]</h4>
|
|
161
147
|
<div class="card card-body mb-3">
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
{{{end}}}
|
|
168
|
-
</select>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
<!-- IF isAdmin -->
|
|
172
|
-
<!-- IF isSelf -->
|
|
173
|
-
<label>[[user:acp-language]]</label>
|
|
174
|
-
<div class="row">
|
|
175
|
-
<div class="mb-2 col-lg-12">
|
|
176
|
-
<select data-property="acpLang" class="form-select">
|
|
177
|
-
{{{each acpLanguages}}}
|
|
178
|
-
<option value="{acpLanguages.code}" <!-- IF acpLanguages.selected -->selected<!-- ENDIF acpLanguages.selected -->>{acpLanguages.name} ({acpLanguages.code})</option>
|
|
179
|
-
{{{end}}}
|
|
180
|
-
</select>
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
<!-- ENDIF isSelf -->
|
|
184
|
-
<!-- ENDIF isAdmin -->
|
|
148
|
+
<select data-property="userLang" class="form-select">
|
|
149
|
+
{{{each languages}}}
|
|
150
|
+
<option value="{languages.code}" <!-- IF languages.selected -->selected<!-- ENDIF languages.selected -->>{languages.name} ({languages.code})</option>
|
|
151
|
+
{{{end}}}
|
|
152
|
+
</select>
|
|
185
153
|
</div>
|
|
154
|
+
<!-- IF isAdmin -->
|
|
155
|
+
<!-- IF isSelf -->
|
|
156
|
+
<h4>[[user:acp-language]]</h4>
|
|
157
|
+
<div class="card card-body mb-3">
|
|
158
|
+
<select id="acpLang" data-property="acpLang" class="form-select">
|
|
159
|
+
{{{each acpLanguages}}}
|
|
160
|
+
<option value="{acpLanguages.code}" <!-- IF acpLanguages.selected -->selected<!-- ENDIF acpLanguages.selected -->>{acpLanguages.name} ({acpLanguages.code})</option>
|
|
161
|
+
{{{end}}}
|
|
162
|
+
</select>
|
|
163
|
+
</div>
|
|
164
|
+
<!-- ENDIF isSelf -->
|
|
165
|
+
<!-- ENDIF isAdmin -->
|
|
186
166
|
|
|
187
167
|
<h4>[[topic:watch]]</h4>
|
|
188
168
|
<div class="card card-body mb-3">
|
|
189
|
-
<div class="form-check">
|
|
190
|
-
<input class="form-check-input" type="checkbox" data-property="followTopicsOnCreate" <!-- IF settings.followTopicsOnCreate -->checked <!-- ENDIF settings.followTopicsOnCreate -->/>
|
|
191
|
-
<
|
|
192
|
-
<label class="form-check-label">[[user:follow-topics-you-create]]</label>
|
|
193
|
-
</strong>
|
|
169
|
+
<div class="form-check mb-2">
|
|
170
|
+
<input id="followTopicsOnCreate" class="form-check-input" type="checkbox" data-property="followTopicsOnCreate" <!-- IF settings.followTopicsOnCreate -->checked <!-- ENDIF settings.followTopicsOnCreate -->/>
|
|
171
|
+
<label for="followTopicsOnCreate" class="form-check-label">[[user:follow-topics-you-create]]</label>
|
|
194
172
|
</div>
|
|
195
|
-
<div class="form-check">
|
|
196
|
-
<input class="form-check-input" type="checkbox" data-property="followTopicsOnReply" <!-- IF settings.followTopicsOnReply -->checked<!-- ENDIF settings.followTopicsOnReply -->/>
|
|
197
|
-
<
|
|
198
|
-
<label class="form-check-label">[[user:follow-topics-you-reply-to]]</label>
|
|
199
|
-
</strong>
|
|
173
|
+
<div class="form-check mb-2">
|
|
174
|
+
<input id="followTopicsOnReply" class="form-check-input" type="checkbox" data-property="followTopicsOnReply" <!-- IF settings.followTopicsOnReply -->checked<!-- ENDIF settings.followTopicsOnReply -->/>
|
|
175
|
+
<label for="followTopicsOnReply" class="form-check-label">[[user:follow-topics-you-reply-to]]</label>
|
|
200
176
|
</div>
|
|
201
|
-
<div class="
|
|
202
|
-
<label>[[user:default-category-watch-state]]</label>
|
|
203
|
-
<select class="form-select" data-property="categoryWatchState">
|
|
177
|
+
<div class="">
|
|
178
|
+
<label for="categoryWatchState" class="form-label">[[user:default-category-watch-state]]</label>
|
|
179
|
+
<select id="categoryWatchState" class="form-select" data-property="categoryWatchState">
|
|
204
180
|
<option value="tracking" <!-- IF categoryWatchState.tracking -->selected<!-- ENDIF categoryWatchState.tracking -->>[[category:tracking]]</option>
|
|
205
181
|
<option value="notwatching" <!-- IF categoryWatchState.notwatching -->selected<!-- ENDIF categoryWatchState.notwatching -->>[[category:not-watching]]</option>
|
|
206
182
|
<option value="ignoring" <!-- IF categoryWatchState.ignoring -->selected<!-- ENDIF categoryWatchState.ignoring -->>[[category:ignoring]]</option>
|
|
@@ -214,10 +190,10 @@
|
|
|
214
190
|
{{{each notificationSettings}}}
|
|
215
191
|
<div class="row mb-3">
|
|
216
192
|
<div class="col-7">
|
|
217
|
-
<label>{notificationSettings.label}</label>
|
|
193
|
+
<label for="{./name}">{notificationSettings.label}</label>
|
|
218
194
|
</div>
|
|
219
195
|
<div class="mb-2 col-5">
|
|
220
|
-
<select class="form-select" data-property="{notificationSettings.name}">
|
|
196
|
+
<select class="form-select" id="{./name}" data-property="{notificationSettings.name}">
|
|
221
197
|
<option value="none" <!-- IF notificationSettings.none -->selected<!-- ENDIF notificationSettings.none -->>[[notifications:none]]</option>
|
|
222
198
|
<option value="notification" <!-- IF notificationSettings.notification -->selected<!-- ENDIF notificationSettings.notification -->>[[notifications:notification-only]]</option>
|
|
223
199
|
<option value="email" <!-- IF notificationSettings.email -->selected<!-- ENDIF notificationSettings.email -->>[[notifications:email-only]]</option>
|