nodebb-theme-persona 13.0.38 → 13.0.40
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/scss/modules/composer.scss +11 -0
- package/scss/persona.scss +1 -0
- package/templates/categories.tpl +1 -1
- package/templates/partials/acceptTos.tpl +8 -8
- package/templates/partials/categories/link.tpl +10 -10
- package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl} +6 -5
- package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +0 -0
- package/templates/partials/category/subcategory.tpl +1 -1
- package/templates/partials/flags/filters.tpl +1 -1
- package/templates/partials/groups/admin.tpl +1 -1
- package/templates/partials/users/filter-dropdown-content.tpl +20 -0
- package/templates/popular.tpl +1 -1
- package/templates/recent.tpl +1 -1
- package/templates/tag.tpl +1 -1
- package/templates/top.tpl +1 -1
- package/templates/unread.tpl +2 -2
- package/theme.json +6 -6
- package/templates/partials/category-filter-right.tpl +0 -3
- package/templates/partials/category-filter.tpl +0 -3
- package/templates/partials/category-selector-right.tpl +0 -3
- package/templates/partials/category-selector.tpl +0 -3
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.composer {
|
|
2
|
+
.composer-container {
|
|
3
|
+
border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
4
|
+
border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
5
|
+
border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.resizer {
|
|
9
|
+
border: 0 !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/scss/persona.scss
CHANGED
package/templates/categories.tpl
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div class="row">
|
|
8
8
|
<div class="{{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
9
9
|
{{{ if pagination.pages.length }}}
|
|
10
|
-
<div><!-- IMPORT partials/category-
|
|
10
|
+
<div><!-- IMPORT partials/category/selector-dropdown-left.tpl --></div>
|
|
11
11
|
{{{ else }}}
|
|
12
12
|
<h1 class="categories-title">[[pages:categories]]</h1>
|
|
13
13
|
{{{ end }}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<div class="form-group">
|
|
2
|
-
<label for="agree-terms">[[register:terms_of_use]]</label>
|
|
3
|
-
<div class="tos">{termsOfUse}</div>
|
|
4
|
-
<div class="checkbox">
|
|
5
|
-
<label>
|
|
6
|
-
<input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
|
|
7
|
-
</label>
|
|
8
|
-
</div>
|
|
1
|
+
<div class="form-group">
|
|
2
|
+
<label for="agree-terms">[[register:terms_of_use]]</label>
|
|
3
|
+
<div class="tos">{termsOfUse}</div>
|
|
4
|
+
<div class="checkbox">
|
|
5
|
+
<label>
|
|
6
|
+
<input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
|
|
7
|
+
</label>
|
|
8
|
+
</div>
|
|
9
9
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!-- IF ../isSection -->
|
|
2
|
-
{../name}
|
|
3
|
-
<!-- ELSE -->
|
|
4
|
-
<!-- IF ../link -->
|
|
5
|
-
<a href="{../link}" itemprop="url">
|
|
6
|
-
<!-- ELSE -->
|
|
7
|
-
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
-
<!-- ENDIF ../link -->
|
|
9
|
-
{../name}
|
|
10
|
-
</a>
|
|
1
|
+
<!-- IF ../isSection -->
|
|
2
|
+
{../name}
|
|
3
|
+
<!-- ELSE -->
|
|
4
|
+
<!-- IF ../link -->
|
|
5
|
+
<a href="{../link}" itemprop="url">
|
|
6
|
+
<!-- ELSE -->
|
|
7
|
+
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
+
<!-- ENDIF ../link -->
|
|
9
|
+
{../name}
|
|
10
|
+
</a>
|
|
11
11
|
<!-- ENDIF ../isSection -->
|
package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl}
RENAMED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown">
|
|
1
|
+
<button type="button" class="btn btn-outline-secondary d-flex gap-2 align-items-baseline dropdown-toggle" data-bs-toggle="dropdown">
|
|
2
2
|
{{{ if selectedCategory }}}
|
|
3
3
|
<span class="category-item">
|
|
4
|
-
{buildCategoryIcon(selectedCategory, "
|
|
5
|
-
<span class="visible-
|
|
4
|
+
{buildCategoryIcon(selectedCategory, "20px", "rounded-circle")}
|
|
5
|
+
<span class="visible-md-inline visible-lg-inline">{selectedCategory.name}</span>
|
|
6
6
|
</span>
|
|
7
7
|
{{{ else }}}
|
|
8
|
-
<
|
|
8
|
+
<i class="fa fa-fw fa-list"></i>
|
|
9
|
+
<span class="visible-md-inline visible-lg-inline">[[unread:all_categories]]</span>{{{ end }}}
|
|
9
10
|
</button>
|
|
10
11
|
<div component="category-selector-search" class="hidden position-absolute">
|
|
11
|
-
<input type="text" class="form-control" autocomplete="off">
|
|
12
|
+
<input type="text" class="form-control form-control-sm" autocomplete="off">
|
|
12
13
|
</div>
|
|
13
14
|
<ul component="category/list" class="dropdown-menu category-dropdown-menu" role="menu">
|
|
14
15
|
<li role="presentation" class="category" data-all="all">
|
package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl}
RENAMED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{{ if children.length }}}
|
|
2
2
|
<div class="subcategory">
|
|
3
3
|
{{{ if hasMoreSubCategories }}}
|
|
4
|
-
<div class="mb-2"><!-- IMPORT partials/category-
|
|
4
|
+
<div class="mb-2"><!-- IMPORT partials/category/selector-dropdown-left.tpl --></div>
|
|
5
5
|
{{{ else }}}
|
|
6
6
|
<p>[[category:subcategories]]</p>
|
|
7
7
|
{{{ end }}}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<div class="mb-3">
|
|
29
29
|
<label class="form-label" for="filter-cid">[[flags:filter-cid]]</label>
|
|
30
30
|
<div class="input-group">
|
|
31
|
-
<!-- IMPORT partials/category-
|
|
31
|
+
<!-- IMPORT partials/category/filter-dropdown-left.tpl -->
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<div class="mb-3">
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<input id="memberPostCids" type="text" class="form-control" value="{group.memberPostCids}">
|
|
120
120
|
</div>
|
|
121
121
|
<div class="col-md-6 member-post-cids-selector">
|
|
122
|
-
<!-- IMPORT partials/category-
|
|
122
|
+
<!-- IMPORT partials/category/selector-dropdown-left.tpl -->
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown">
|
|
2
|
+
{{{ if selectedUser }}}
|
|
3
|
+
<span class="">{buildAvatar(selectedUser, "20px", true, "not-responsive")} {selectedUser.username}</span>
|
|
4
|
+
{{{ else }}}
|
|
5
|
+
<span class="">[[users:all-users]]</span>
|
|
6
|
+
{{{ end }}} <span class="caret"></span>
|
|
7
|
+
</button>
|
|
8
|
+
<ul class="dropdown-menu" role="menu">
|
|
9
|
+
<li role="presentation" class="user {{{ if !selectedUser}}}selected{{{end}}}">
|
|
10
|
+
<a class="dropdown-item" role="menu-item" href="{config.relative_path}/{allUsersUrl}"><i class="fa fa-fw {{{ if !selectedUser }}}fa-check{{{ end }}}"></i>[[users:all-users]]</a>
|
|
11
|
+
</li>
|
|
12
|
+
{{{ each users }}}
|
|
13
|
+
<li role="presentation" class="user {{{ if ./selected}}}selected{{{end}}}">
|
|
14
|
+
<a class="dropdown-item" role="menu-item" href="{config.relative_path}/{./url}">
|
|
15
|
+
<i class="fa fa-fw {{{ if ./selected }}}fa-check{{{ end }}}"></i>
|
|
16
|
+
<div class="d-inline-flex gap-1 align-items-center">{buildAvatar(@value, "24px", true, "not-responsive")} {./username}</div>
|
|
17
|
+
</a>
|
|
18
|
+
</li>
|
|
19
|
+
{{{end}}}
|
|
20
|
+
</ul>
|
package/templates/popular.tpl
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div class="d-flex gap-1 align-items-stretch">
|
|
17
17
|
<!-- IMPORT partials/topic-terms.tpl -->
|
|
18
18
|
<!-- IMPORT partials/topic-filters.tpl -->
|
|
19
|
-
<!-- IMPORT partials/category
|
|
19
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
20
20
|
<!-- IMPORT partials/category/tools.tpl -->
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
package/templates/recent.tpl
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
<div class="d-flex gap-1 align-items-stretch">
|
|
20
20
|
<!-- IMPORT partials/topic-filters.tpl -->
|
|
21
|
-
<!-- IMPORT partials/category
|
|
21
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
22
22
|
<!-- IMPORT partials/category/tools.tpl -->
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
package/templates/tag.tpl
CHANGED
package/templates/top.tpl
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div class="d-flex gap-1 align-items-stretch">
|
|
17
17
|
<!-- IMPORT partials/topic-terms.tpl -->
|
|
18
18
|
<!-- IMPORT partials/topic-filters.tpl -->
|
|
19
|
-
<!-- IMPORT partials/category
|
|
19
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
20
20
|
<!-- IMPORT partials/category/tools.tpl -->
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
package/templates/unread.tpl
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
<div class="d-flex gap-1 align-items-stretch">
|
|
17
17
|
<!-- IMPORT partials/topic-filters.tpl -->
|
|
18
|
-
<!-- IMPORT partials/category
|
|
18
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
19
19
|
|
|
20
20
|
<div class="markread btn-group {{{ if !topics.length }}}hidden{{{ end }}}">
|
|
21
|
-
<!-- IMPORT partials/category
|
|
21
|
+
<!-- IMPORT partials/category/selector-dropdown-right.tpl -->
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<!-- IMPORT partials/category/tools.tpl -->
|
package/theme.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-theme-persona",
|
|
3
|
-
"name": "Persona",
|
|
4
|
-
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
-
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
-
"screenshot": "screenshot.png"
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-theme-persona",
|
|
3
|
+
"name": "Persona",
|
|
4
|
+
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
+
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
+
"screenshot": "screenshot.png"
|
|
7
7
|
}
|