nodebb-theme-persona 13.3.40 → 13.3.42

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.3.40",
3
+ "version": "13.3.42",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -70,6 +70,26 @@
70
70
  <input class="form-control" type="date" id="birthday" name="birthday" value="{birthday}" placeholder="mm/dd/yyyy">
71
71
  </div>
72
72
 
73
+ {{{ each customUserFields }}}
74
+ <div class="mb-2">
75
+ <label class="form-label fw-bold" for="{./key}">{./name}</label>
76
+ {{{ if ((./type == "input-text") || (./type == "input-link")) }}}
77
+ <input class="form-control" type="text" id="{./key}" name="{./key}" value="{./value}">
78
+ {{{ end }}}
79
+
80
+ {{{ if (./type == "input-number") }}}
81
+ <input class="form-control" type="number" id="{./key}" name="{./key}" value="{./value}">
82
+ {{{ end }}}
83
+ {{{ if (./type == "select") }}}
84
+ <select class="form-select" id="{./key}" name="{./key}">
85
+ {{{ each ./select-options}}}
86
+ <option value="{./value}" {{{ if ./selected }}}selected{{{ end }}}>{./value}</option>
87
+ {{{ end }}}
88
+ </select>
89
+ {{{ end }}}
90
+ </div>
91
+ {{{ end }}}
92
+
73
93
  <div class="mb-2">
74
94
  <label class="form-label fw-bold" for="groupTitle">[[user:grouptitle]]</label>
75
95
 
@@ -60,32 +60,59 @@
60
60
  </div>
61
61
  </div>
62
62
 
63
- <div class="text-center profile-meta">
64
- <span>[[user:joined]]</span>
65
- <strong class="timeago" title="{joindateISO}"></strong>
66
-
67
- <span>[[user:lastonline]]</span>
68
- <strong class="timeago" title="{lastonlineISO}"></strong><br />
69
-
70
- <!-- IF email -->
71
- <span>[[user:email]]</span>
72
- <strong><i class="fa fa-eye-slash {emailClass}" title="[[user:email-hidden]]"></i> {email}</strong>
73
- <!-- ENDIF email -->
74
-
75
- <!-- IF websiteName -->
76
- <span>[[user:website]]</span>
77
- <strong><a href="{websiteLink}" rel="nofollow noreferrer me">{websiteName}</a></strong>
78
- <!-- ENDIF websiteName -->
79
-
80
- <!-- IF location -->
81
- <span>[[user:location]]</span>
82
- <strong>{location}</strong>
83
- <!-- ENDIF location -->
84
-
85
- <!-- IF age -->
86
- <span>[[user:age]]</span>
87
- <strong>{age}</strong>
88
- <!-- ENDIF age -->
63
+ <div class="profile-meta d-flex gap-3 flex-wrap justify-content-center">
64
+ <div class="w-100 d-flex gap-3 justify-content-center">
65
+ <div>
66
+ <span class="stat-label">[[user:joined]]</span>
67
+ <span class="timeago fw-bold" title="{joindateISO}"></span>
68
+ </div>
69
+
70
+ <div>
71
+ <span class="stat-label">[[user:lastonline]]</span>
72
+ <span class="timeago fw-bold" title="{lastonlineISO}"></span>
73
+ </div>
74
+ </div>
75
+
76
+ {{{ if email }}}
77
+ <div>
78
+ <span class="stat-label">[[user:email]]</span>
79
+ <strong><i class="fa fa-eye-slash {emailClass}" title="[[user:email-hidden]]"></i> {email}</strong>
80
+ </div>
81
+ {{{ end }}}
82
+
83
+ {{{ if websiteName }}}
84
+ <div>
85
+ <span class="stat-label">[[user:website]]</span>
86
+ <a href="{websiteLink}" class="fw-bold" rel="nofollow noreferrer me">{websiteName}</a>
87
+ </div>
88
+ {{{ end }}}
89
+
90
+ {{{ if location }}}
91
+ <div>
92
+ <span class="stat-label">[[user:location]]</span>
93
+ <span class="fw-bold">{location}</span>
94
+ </div>
95
+ {{{ end }}}
96
+
97
+ {{{ if age }}}
98
+ <div>
99
+ <span class="stat-label">[[user:age]]</span>
100
+ <span class="fw-bold">{age}</span>
101
+ </div>
102
+ {{{ end }}}
103
+
104
+ {{{ each customUserFields }}}
105
+ {{{ if ./value }}}
106
+ <div>
107
+ <span class="stat-label">{./name}</span>
108
+ {{{ if (./type == "input-link") }}}
109
+ <a class="fw-bold" href="{./value}" rel="nofollow noreferrer me">{./value}</a>
110
+ {{{ else }}}
111
+ <span class="fw-bold">{./value}</span>
112
+ {{{ end }}}
113
+ </div>
114
+ {{{ end }}}
115
+ {{{ end }}}
89
116
  </div>
90
117
  </div>
91
118
 
@@ -4,6 +4,7 @@
4
4
  <span class="menu-icon"><i class="fa fa-fw fa-pencil"></i></span> [[topic:edit]]
5
5
  </a>
6
6
  </li>
7
+ {{{ if posts.display_delete_tools }}}
7
8
  <li <!-- IF posts.deleted -->hidden<!-- ENDIF posts.deleted -->>
8
9
  <a class="dropdown-item d-flex align-items-center gap-2" component="post/delete" role="menuitem" href="#" class="<!-- IF posts.deleted -->hidden<!-- ENDIF posts.deleted -->">
9
10
  <span class="menu-icon"><i class="fa fa-fw fa-trash-o"></i></span> [[topic:delete]]
@@ -14,6 +15,7 @@
14
15
  <span class="menu-icon"><i class="fa fa-fw fa-history"></i><span> [[topic:restore]]
15
16
  </a>
16
17
  </li>
18
+ {{{ end }}}
17
19
  <!-- IF posts.display_purge_tools -->
18
20
  <li <!-- IF !posts.deleted -->hidden<!-- ENDIF !posts.deleted -->>
19
21
  <a class="dropdown-item d-flex align-items-center gap-2" component="post/purge" role="menuitem" href="#" class="<!-- IF !posts.deleted -->hidden<!-- ENDIF !posts.deleted -->">
@@ -38,6 +40,14 @@
38
40
  </li>
39
41
  <!-- ENDIF posts.display_change_owner_tools -->
40
42
 
43
+ {{{ if posts.display_manage_editors_tools }}}
44
+ <li>
45
+ <a class="dropdown-item d-flex align-items-center gap-2" component="post/manage-editors" role="menuitem" href="#">
46
+ <span class="menu-icon"><i class="fa fa-fw fa-user-pen"></i></span> [[topic:manage-editors]]
47
+ </a>
48
+ </li>
49
+ {{{ end }}}
50
+
41
51
  <!-- IF posts.ip -->
42
52
  <li>
43
53
  <a class="dropdown-item d-flex align-items-center gap-2" component="post/copy-ip" role="menuitem" href="#" data-clipboard-text="{posts.ip}">