nodebb-theme-harmony 2.0.0-pre.32 → 2.0.0-pre.34
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/library.js +1 -7
- package/package.json +1 -1
- package/plugin.json +1 -2
- package/scss/common.scss +0 -7
- package/templates/account/categories.tpl +1 -1
- package/templates/account/edit.tpl +4 -4
- package/templates/account/posts.tpl +6 -6
- package/templates/account/topics.tpl +5 -5
- package/templates/admin/plugins/harmony.tpl +1 -0
- package/templates/flags/detail.tpl +3 -3
- package/templates/groups/list.tpl +3 -3
- package/templates/notifications.tpl +1 -1
- package/templates/partials/account/header.tpl +6 -6
- package/templates/partials/account/sidebar-left.tpl +18 -17
- package/templates/partials/category/subcategory.tpl +1 -1
- package/templates/partials/groups/sidebar-left.tpl +5 -5
- package/templates/partials/notifications_list.tpl +2 -2
- package/templates/partials/post_bar.tpl +2 -2
- package/templates/partials/quick-search-results.tpl +3 -3
- package/templates/partials/search-filters.tpl +1 -1
- package/templates/partials/sidebar/search.tpl +2 -2
- package/templates/partials/tags_list.tpl +2 -2
- package/templates/partials/topic/navigator.tpl +2 -2
- package/templates/partials/topic/post-menu.tpl +1 -1
- package/templates/partials/topic/post.tpl +5 -5
- package/templates/partials/topic/quickreply.tpl +1 -1
- package/templates/partials/topic/sort.tpl +1 -1
- package/templates/partials/topic/tools.tpl +1 -1
- package/templates/partials/topic/watch.tpl +1 -1
- package/templates/partials/topic-filters.tpl +1 -1
- package/templates/partials/topic-list-bar.tpl +2 -2
- package/templates/partials/topic-terms.tpl +1 -1
- package/templates/partials/users/item.tpl +2 -2
- package/templates/partials/users_list_menu.tpl +5 -5
- package/templates/post-queue.tpl +1 -1
- package/package-lock.json +0 -2344
- package/templates/login.tpl +0 -101
- package/templates/partials/category/filter-dropdown-content.tpl +0 -41
- package/templates/partials/category/selector-dropdown-content.tpl +0 -39
- package/templates/partials/category/sort.tpl +0 -39
- package/templates/partials/category/tools.tpl +0 -89
- package/templates/partials/category/watch.tpl +0 -67
- package/templates/partials/groups/filter-dropdown-content.tpl +0 -25
- package/templates/partials/tags/filter-dropdown-content.tpl +0 -38
- package/templates/partials/tags/watch.tpl +0 -42
- package/templates/partials/users/filter-dropdown-content.tpl +0 -23
- package/templates/register.tpl +0 -104
package/templates/login.tpl
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<div data-widget-area="header">
|
|
2
|
-
{{{each widgets.header}}}
|
|
3
|
-
{{widgets.header.html}}
|
|
4
|
-
{{{end}}}
|
|
5
|
-
</div>
|
|
6
|
-
<div class="row login flex-fill">
|
|
7
|
-
<div class="d-flex flex-column gap-2 {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
8
|
-
<h2 class="tracking-tight fw-semibold text-center">[[global:login]]</h2>
|
|
9
|
-
<div class="row justify-content-center gap-5">
|
|
10
|
-
{{{ if allowLocalLogin }}}
|
|
11
|
-
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
12
|
-
<div class="login-block">
|
|
13
|
-
<form class="d-flex flex-column gap-3" role="form" method="post" id="login-form">
|
|
14
|
-
<div class="mb-2 d-flex flex-column gap-2">
|
|
15
|
-
<label for="username">{allowLoginWith}</label>
|
|
16
|
-
<input class="form-control" type="text" placeholder="{allowLoginWith}" name="username" id="username" autocorrect="off" autocapitalize="off" autocomplete="nickname" value="{username}" aria-required="true"/>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="mb-2 d-flex flex-column gap-2">
|
|
20
|
-
<label for="password">[[user:password]]</label>
|
|
21
|
-
<div>
|
|
22
|
-
<input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" autocomplete="current-password" autocapitalize="off" aria-required="true"/>
|
|
23
|
-
<p id="caps-lock-warning" class="text-danger hidden text-sm mb-0 form-text" aria-live="polite" role="alert" aria-atomic="true">
|
|
24
|
-
<i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]]
|
|
25
|
-
</p>
|
|
26
|
-
</div>
|
|
27
|
-
{{{ if allowPasswordReset }}}
|
|
28
|
-
<div>
|
|
29
|
-
<a id="reset-link" class="text-sm text-reset text-decoration-underline" href="{config.relative_path}/reset">[[login:forgot-password]]</a>
|
|
30
|
-
</div>
|
|
31
|
-
{{{ end }}}
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
{{{ each loginFormEntry }}}
|
|
35
|
-
<div class="mb-2 loginFormEntry d-flex flex-column gap-2 {./styleName}">
|
|
36
|
-
<label for="{./inputId}">{./label}</label>
|
|
37
|
-
<div>{{./html}}</div>
|
|
38
|
-
</div>
|
|
39
|
-
{{{ end }}}
|
|
40
|
-
|
|
41
|
-
<input type="hidden" name="_csrf" value="{config.csrf_token}" />
|
|
42
|
-
<input type="hidden" name="noscript" id="noscript" value="true" />
|
|
43
|
-
|
|
44
|
-
<button class="btn btn-primary" id="login" type="submit">[[global:login]]</button>
|
|
45
|
-
|
|
46
|
-
<div class="form-check mb-2">
|
|
47
|
-
<input class="form-check-input" type="checkbox" name="remember" id="remember" checked />
|
|
48
|
-
<label class="form-check-label" for="remember">[[login:remember-me]]</label>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div class="alert alert-danger {{{ if !error }}} hidden{{{ end }}}" id="login-error-notify" role="alert" aria-atomic="true">
|
|
52
|
-
<strong>[[login:failed-login-attempt]]</strong>
|
|
53
|
-
<p class="mb-0">{error}</p>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<hr/>
|
|
57
|
-
|
|
58
|
-
{{{ if allowRegistration }}}
|
|
59
|
-
<span class="text-sm">[[login:dont-have-account]]</span>
|
|
60
|
-
<a class="btn btn-outline-light text-body" href="{config.relative_path}/register">[[register:register]]</a>
|
|
61
|
-
{{{ end }}}
|
|
62
|
-
</form>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
{{{ end }}}
|
|
66
|
-
|
|
67
|
-
{{{ if alternate_logins }}}
|
|
68
|
-
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
69
|
-
<div class="alt-login-block d-flex flex-column gap-2">
|
|
70
|
-
<label>[[login:alternative-logins]]</label>
|
|
71
|
-
<ul class="alt-logins list-unstyled">
|
|
72
|
-
{{{ each authentication }}}
|
|
73
|
-
<li class="{./name} mb-2">
|
|
74
|
-
<a class="btn btn-outline-light d-flex align-items-center" rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{./url}">
|
|
75
|
-
{{{ if ./icons.svg }}}
|
|
76
|
-
{./icons.svg}
|
|
77
|
-
{{{ else }}}
|
|
78
|
-
<i class="flex-shrink-0 {./icons.normal}" style="color:{./color};"></i>
|
|
79
|
-
{{{ end }}}
|
|
80
|
-
{{{ if ./labels.login }}}
|
|
81
|
-
<div class="flex-grow-1 text-body text-sm">{./labels.login}</div>
|
|
82
|
-
{{{ end }}}
|
|
83
|
-
</a></li>
|
|
84
|
-
{{{ end }}}
|
|
85
|
-
</ul>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
{{{ end }}}
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
92
|
-
{{{each widgets.sidebar}}}
|
|
93
|
-
{{widgets.sidebar.html}}
|
|
94
|
-
{{{end}}}
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
<div data-widget-area="footer">
|
|
98
|
-
{{{each widgets.footer}}}
|
|
99
|
-
{{widgets.footer.html}}
|
|
100
|
-
{{{end}}}
|
|
101
|
-
</div>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
|
-
{{{ if selectedCategory }}}
|
|
3
|
-
<span class="category-item d-inline-flex align-items-center gap-1">
|
|
4
|
-
{buildCategoryIcon(selectedCategory, "18px", "rounded-circle")}
|
|
5
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedCategory.name}</span>
|
|
6
|
-
</span>
|
|
7
|
-
{{{ else }}}
|
|
8
|
-
<i class="fa fa-fw fa-list text-primary"></i>
|
|
9
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">[[unread:all-categories]]</span>{{{ end }}}
|
|
10
|
-
</button>
|
|
11
|
-
|
|
12
|
-
<div component="category-selector-search" class="hidden position-absolute">
|
|
13
|
-
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="dropdown-menu p-1">
|
|
17
|
-
<ul component="category/list" class="list-unstyled mb-0 text-sm category-dropdown-menu ghost-scrollbar" role="menu">
|
|
18
|
-
<li role="presentation" class="category" data-cid="all">
|
|
19
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{{{ if allCategoriesUrl }}}{config.relative_path}/{allCategoriesUrl}{{{ else }}}#{{{ end }}}">
|
|
20
|
-
<div class="flex-grow-1">[[unread:all-categories]]</div>
|
|
21
|
-
<i component="category/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{if selectedCategory}}}invisible{{{end}}}"></i>
|
|
22
|
-
</a>
|
|
23
|
-
</li>
|
|
24
|
-
{{{each categoryItems}}}
|
|
25
|
-
<li role="presentation" class="category {{{ if ./disabledClass }}}disabled{{{ end }}}" data-cid="{./cid}" data-parent-cid="{./parentCid}" data-name="{./name}">
|
|
26
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">
|
|
27
|
-
{./level}
|
|
28
|
-
<span component="category-markup" class="flex-grow-1" style="{{{ if ./match }}}font-weight: bold;{{{end}}}">
|
|
29
|
-
<div class="category-item d-inline-flex align-items-center gap-1">
|
|
30
|
-
{{{ if ./icon }}}
|
|
31
|
-
{buildCategoryIcon(@value, "24px", "rounded-circle")}
|
|
32
|
-
{{{ end }}}
|
|
33
|
-
{./name}
|
|
34
|
-
</div>
|
|
35
|
-
</span>
|
|
36
|
-
<i component="category/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{ if !./selected }}}invisible{{{ end }}}"></i>
|
|
37
|
-
</a>
|
|
38
|
-
</li>
|
|
39
|
-
{{{end}}}
|
|
40
|
-
</ul>
|
|
41
|
-
</div>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
|
-
<span component="category-selector-selected">
|
|
3
|
-
{{{ if (selectedCategory && !showCategorySelectLabel) }}}
|
|
4
|
-
<span class="category-item d-inline-flex align-items-center gap-1">
|
|
5
|
-
{buildCategoryIcon(selectedCategory, "24px", "rounded-circle")}
|
|
6
|
-
<span class="fw-semibold">{selectedCategory.name}</span>
|
|
7
|
-
</span>
|
|
8
|
-
{{{ else }}}
|
|
9
|
-
<i class="fa fa-fw {{{ if selectCategoryIcon }}}{selectCategoryIcon}{{{ else }}}fa-list{{{ end }}} text-primary"></i>
|
|
10
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">{{{ if selectCategoryLabel }}}{selectCategoryLabel}{{{ else }}}[[topic:thread-tools.select-category]]{{{ end }}}</span>
|
|
11
|
-
{{{ end }}}
|
|
12
|
-
</span>
|
|
13
|
-
</button>
|
|
14
|
-
|
|
15
|
-
<div component="category-selector-search" class="hidden position-absolute">
|
|
16
|
-
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="dropdown-menu p-1">
|
|
20
|
-
<ul component="category/list" class="list-unstyled mb-0 text-sm category-dropdown-menu ghost-scrollbar" role="menu">
|
|
21
|
-
<li component="category/no-matches" role="presentation" class="category hidden">
|
|
22
|
-
<a class="dropdown-item rounded-1" role="menuitem">[[search:no-matches]]</a>
|
|
23
|
-
</li>
|
|
24
|
-
{{{ each categoryItems }}}
|
|
25
|
-
<li role="presentation" class="category {{{ if ./disabledClass }}}disabled {{{ end }}}" data-cid="{./cid}" data-name="{./name}" data-parent-cid="{./parentCid}">
|
|
26
|
-
<a class="dropdown-item rounded-1 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">{./level}
|
|
27
|
-
<span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}}">
|
|
28
|
-
<div class="category-item d-inline-flex align-items-center gap-1">
|
|
29
|
-
{{{ if ./icon }}}
|
|
30
|
-
{buildCategoryIcon(@value, "24px", "rounded-circle")}
|
|
31
|
-
{{{ end }}}
|
|
32
|
-
{./name}
|
|
33
|
-
</div>
|
|
34
|
-
</span>
|
|
35
|
-
</a>
|
|
36
|
-
</li>
|
|
37
|
-
{{{ end }}}
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
2
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:topic-sort-option, {sortOptionLabel}]]">
|
|
3
|
-
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
4
|
-
<span class="d-none d-md-inline fw-semibold">{sortOptionLabel}</span>
|
|
5
|
-
</button>
|
|
6
|
-
|
|
7
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
8
|
-
<li>
|
|
9
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="recently_replied" role="menuitem">
|
|
10
|
-
<span class="flex-grow-1">[[topic:recently-replied]]</span>
|
|
11
|
-
<i class="flex-shrink-0 fa fa-fw text-secondary"></i>
|
|
12
|
-
</a>
|
|
13
|
-
</li>
|
|
14
|
-
<li>
|
|
15
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="recently_created" role="menuitem">
|
|
16
|
-
<span class="flex-grow-1">[[topic:recently-created]]</span>
|
|
17
|
-
<i class="flex-shrink-0 fa fa-fw text-secondary"></i>
|
|
18
|
-
</a>
|
|
19
|
-
</li>
|
|
20
|
-
<li>
|
|
21
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_posts" role="menuitem">
|
|
22
|
-
<span class="flex-grow-1">[[topic:most-posts]]</span>
|
|
23
|
-
<i class="flex-shrink-0 fa fa-fw text-secondary"></i>
|
|
24
|
-
</a>
|
|
25
|
-
</li>
|
|
26
|
-
<li>
|
|
27
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_votes" role="menuitem">
|
|
28
|
-
<span class="flex-grow-1">[[topic:most-votes]]</span>
|
|
29
|
-
<i class="flex-shrink-0 fa fa-fw text-secondary"></i>
|
|
30
|
-
</a>
|
|
31
|
-
</li>
|
|
32
|
-
<li>
|
|
33
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_views" role="menuitem">
|
|
34
|
-
<span class="flex-grow-1">[[topic:most-views]]</span>
|
|
35
|
-
<i class="flex-shrink-0 fa fa-fw text-secondary"></i>
|
|
36
|
-
</a>
|
|
37
|
-
</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
{{{ if showTopicTools }}}
|
|
2
|
-
<div class="btn-group thread-tools bottom-sheet">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
|
-
<i class="fa fa-fw fa-gear text-primary"></i>
|
|
5
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">[[topic:thread-tools.title]]</span>
|
|
6
|
-
<span component="topic/selected/badge" class="badge rounded-pill bg-secondary"></span>
|
|
7
|
-
</button>
|
|
8
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
|
-
<li>
|
|
10
|
-
<a component="topic/mark-unread-for-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
11
|
-
<i class="fa fa-fw fa-inbox text-secondary"></i> [[topic:thread-tools.markAsUnreadForAll]]
|
|
12
|
-
</a>
|
|
13
|
-
</li>
|
|
14
|
-
<li>
|
|
15
|
-
<a component="topic/pin" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
16
|
-
<i class="fa fa-fw fa-thumb-tack text-secondary"></i> [[topic:thread-tools.pin]]
|
|
17
|
-
</a>
|
|
18
|
-
</li>
|
|
19
|
-
<li>
|
|
20
|
-
<a component="topic/unpin" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
21
|
-
<i class="fa fa-fw fa-thumb-tack fa-rotate-90 text-secondary"></i> [[topic:thread-tools.unpin]]
|
|
22
|
-
</a>
|
|
23
|
-
</li>
|
|
24
|
-
|
|
25
|
-
<li>
|
|
26
|
-
<a component="topic/lock" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
27
|
-
<i class="fa fa-fw fa-lock text-secondary"></i> [[topic:thread-tools.lock]]
|
|
28
|
-
</a>
|
|
29
|
-
</li>
|
|
30
|
-
<li>
|
|
31
|
-
<a component="topic/unlock" href="#" class="hidden dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
32
|
-
<i class="fa fa-fw fa-unlock text-secondary"></i> [[topic:thread-tools.unlock]]
|
|
33
|
-
</a>
|
|
34
|
-
</li>
|
|
35
|
-
|
|
36
|
-
<li class="dropdown-divider"></li>
|
|
37
|
-
|
|
38
|
-
<li>
|
|
39
|
-
<a component="topic/move" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
40
|
-
<i class="fa fa-fw fa-arrows text-secondary"></i> [[topic:thread-tools.move]]
|
|
41
|
-
</a>
|
|
42
|
-
</li>
|
|
43
|
-
{{{if template.category}}}
|
|
44
|
-
<li>
|
|
45
|
-
<a component="topic/move-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
46
|
-
<i class="fa fa-fw fa-arrows text-secondary"></i> [[topic:thread-tools.move-all]]
|
|
47
|
-
</a>
|
|
48
|
-
</li>
|
|
49
|
-
{{{end}}}
|
|
50
|
-
<li>
|
|
51
|
-
<a component="topic/merge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
52
|
-
<i class="fa fa-fw fa-code-fork text-secondary"></i> [[topic:thread-tools.merge]]
|
|
53
|
-
</a>
|
|
54
|
-
</li>
|
|
55
|
-
|
|
56
|
-
<li>
|
|
57
|
-
<a component="topic/tag" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
58
|
-
<i class="fa fa-fw fa-tag text-secondary"></i> [[topic:thread-tools.tag]]
|
|
59
|
-
</a>
|
|
60
|
-
</li>
|
|
61
|
-
|
|
62
|
-
<li class="dropdown-divider"></li>
|
|
63
|
-
|
|
64
|
-
<li>
|
|
65
|
-
<a component="topic/delete" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
66
|
-
<i class="fa fa-fw fa-trash-o text-secondary"></i> [[topic:thread-tools.delete]]
|
|
67
|
-
</a>
|
|
68
|
-
</li>
|
|
69
|
-
<li>
|
|
70
|
-
<a component="topic/restore" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
71
|
-
<i class="fa fa-fw fa-history text-secondary"></i> [[topic:thread-tools.restore]]
|
|
72
|
-
</a>
|
|
73
|
-
</li>
|
|
74
|
-
<li>
|
|
75
|
-
<a component="topic/purge" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
76
|
-
<i class="fa fa-fw fa-eraser text-secondary"></i> [[topic:thread-tools.purge]]
|
|
77
|
-
</a>
|
|
78
|
-
</li>
|
|
79
|
-
|
|
80
|
-
{{{each thread_tools}}}
|
|
81
|
-
<li>
|
|
82
|
-
<a href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {thread_tools.class}" role="menuitem">
|
|
83
|
-
<i class="fa fa-fw {thread_tools.icon} text-secondary"></i>
|
|
84
|
-
{thread_tools.title}</a>
|
|
85
|
-
</li>
|
|
86
|
-
{{{end}}}
|
|
87
|
-
</ul>
|
|
88
|
-
</div>
|
|
89
|
-
{{{ end }}}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{{{ if config.loggedIn }}}
|
|
2
|
-
<div class="btn-group bottom-sheet" component="topic/watch">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
|
-
<span component="category/watching/menu" class="d-flex gap-2 align-items-center {{{ if !./isWatched }}} hidden{{{ end }}}"><i class="fa fa-fw fa-bell-o text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:watching]]</span></span>
|
|
5
|
-
|
|
6
|
-
<span component="category/tracking/menu" class="d-flex gap-2 align-items-center {{{ if !./isTracked }}} hidden{{{ end }}}"><i class="fa fa-fw fa-inbox text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:tracking]]</span></span>
|
|
7
|
-
|
|
8
|
-
<span component="category/notwatching/menu" class="d-flex gap-2 align-items-center {{{ if !./isNotWatched }}} hidden{{{ end }}}"><i class="fa fa-fw fa-clock-o text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:not-watching]]</span></span>
|
|
9
|
-
|
|
10
|
-
<span component="category/ignoring/menu" class="d-flex gap-2 align-items-center {{{ if !./isIgnored }}} hidden{{{ end }}}"><i class="fa fa-fw fa-eye-slash text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:ignoring]]</span></span>
|
|
11
|
-
</button>
|
|
12
|
-
|
|
13
|
-
<ul class="dropdown-menu p-1 text-sm {{{ if template.account/categories }}}dropdown-menu-end{{{ end }}}" role="menu">
|
|
14
|
-
<li>
|
|
15
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/watching" data-state="watching" role="menuitem">
|
|
16
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
17
|
-
<span class="d-flex align-items-center gap-2">
|
|
18
|
-
<i class="flex-shrink-0 fa fa-fw fa-bell-o text-secondary"></i>
|
|
19
|
-
<span class="flex-grow-1 fw-semibold">[[category:watching]]</span>
|
|
20
|
-
</span>
|
|
21
|
-
<div class="help-text text-secondary text-xs">[[category:watching.description]]</div>
|
|
22
|
-
</div>
|
|
23
|
-
<span class="flex-shrink-0"><i component="category/watching/check" class="fa fa-fw {{{ if ./isWatched }}}fa-check{{{ end }}}"></i></span>
|
|
24
|
-
</a>
|
|
25
|
-
</li>
|
|
26
|
-
|
|
27
|
-
<li>
|
|
28
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/tracking" data-state="tracking" role="menuitem">
|
|
29
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
30
|
-
<span class="d-flex align-items-center gap-2">
|
|
31
|
-
<i class="flex-shrink-0 fa fa-fw fa-inbox text-secondary"></i>
|
|
32
|
-
<span class="flex-grow-1 fw-semibold">[[category:tracking]]</span>
|
|
33
|
-
</span>
|
|
34
|
-
<div class="help-text text-secondary text-xs">[[category:tracking.description]]</div>
|
|
35
|
-
</div>
|
|
36
|
-
<span class="flex-shrink-0"><i component="category/tracking/check" class="fa fa-fw {{{ if ./isTracked }}}fa-check{{{ end }}}"></i></span>
|
|
37
|
-
</a>
|
|
38
|
-
</li>
|
|
39
|
-
|
|
40
|
-
<li>
|
|
41
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/notwatching" data-state="notwatching" role="menuitem">
|
|
42
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
43
|
-
<span class="d-flex align-items-center gap-2">
|
|
44
|
-
<i class="flex-shrink-0 fa fa-fw fa-clock-o text-secondary"></i>
|
|
45
|
-
<span class="flex-grow-1 fw-semibold">[[category:not-watching]]</span>
|
|
46
|
-
</span>
|
|
47
|
-
<div class="help-text text-secondary text-xs">[[category:not-watching.description]]</div>
|
|
48
|
-
</div>
|
|
49
|
-
<span class="flex-shrink-0"><i component="category/notwatching/check" class="fa fa-fw {{{ if ./isNotWatched }}}fa-check{{{ end }}}"></i></span>
|
|
50
|
-
</a>
|
|
51
|
-
</li>
|
|
52
|
-
|
|
53
|
-
<li>
|
|
54
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/ignoring" data-state="ignoring" role="menuitem">
|
|
55
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
56
|
-
<span class="d-flex align-items-center gap-2">
|
|
57
|
-
<i class="flex-shrink-0 fa fa-fw fa-eye-slash text-secondary"></i>
|
|
58
|
-
<span class="flex-grow-1 fw-semibold">[[category:ignoring]]</span>
|
|
59
|
-
</span>
|
|
60
|
-
<div class="help-text text-secondary text-xs">[[category:ignoring.description]]</div>
|
|
61
|
-
</div>
|
|
62
|
-
<span class="flex-shrink-0"><i component="category/ignoring/check" class="fa fa-fw {{{ if ./isIgnored }}}fa-check{{{ end }}}"></i></span>
|
|
63
|
-
</a>
|
|
64
|
-
</li>
|
|
65
|
-
</ul>
|
|
66
|
-
</div>
|
|
67
|
-
{{{ end }}}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<div class="dropdown bottom-sheet">
|
|
2
|
-
<button type="button" class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
|
-
{{{ if selectedGroup }}}
|
|
4
|
-
<span class="fw-semibold">{selectedGroup.displayName}</span>
|
|
5
|
-
{{{ else }}}
|
|
6
|
-
<span class="fw-semibold">[[groups:all-groups]]</span>
|
|
7
|
-
{{{ end }}} <span class="caret text-primary opacity-75"></span>
|
|
8
|
-
</button>
|
|
9
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
10
|
-
<li role="presentation" class="user {{{ if !selectedGroup}}}selected{{{end}}}">
|
|
11
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{allGroupsUrl}">
|
|
12
|
-
<div class="flex-grow-1">[[groups:all-groups]]</div>
|
|
13
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if !selectedGroup }}}fa-check{{{ end }}}"></i>
|
|
14
|
-
</a>
|
|
15
|
-
</li>
|
|
16
|
-
{{{ each groups }}}
|
|
17
|
-
<li role="presentation" class="user {{{ if ./selected}}}selected{{{end}}}">
|
|
18
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{./url}">
|
|
19
|
-
<div class="flex-grow-1 d-inline-flex gap-1 align-items-center">{./displayName}</div>
|
|
20
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if ./selected }}}fa-check{{{ end }}}"></i>
|
|
21
|
-
</a>
|
|
22
|
-
</li>
|
|
23
|
-
{{{end}}}
|
|
24
|
-
</ul>
|
|
25
|
-
</div>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
|
-
{{{ if selectedTag }}}
|
|
3
|
-
<span class="d-inline-flex align-items-center gap-1">
|
|
4
|
-
<i class="fa fa-fw fa-tags text-primary"></i>
|
|
5
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTag.label}</span>
|
|
6
|
-
</span>
|
|
7
|
-
{{{ else }}}
|
|
8
|
-
<i class="fa fa-fw fa-tags text-primary"></i>
|
|
9
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">[[tags:all-tags]]</span>
|
|
10
|
-
{{{ end }}}
|
|
11
|
-
</button>
|
|
12
|
-
|
|
13
|
-
<div component="tag/filter/search" class="hidden position-absolute top-0">
|
|
14
|
-
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div class="dropdown-menu p-1">
|
|
18
|
-
<ul component="tag/filter/list" class="list-unstyled mb-0 text-sm overflow-auto ghost-scrollbar" role="menu" style="max-height: 500px;" role="menu">
|
|
19
|
-
<li role="presentation" data-tag="">
|
|
20
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="#">
|
|
21
|
-
<span class="flex-grow-1">[[tags:all-tags]]</span>
|
|
22
|
-
<i component="tag/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{if selectedTag }}}invisible{{{ end }}}"></i>
|
|
23
|
-
</a>
|
|
24
|
-
</li>
|
|
25
|
-
{{{ each tagItems }}}
|
|
26
|
-
<li role="presentation" data-tag="{./valueEscaped}">
|
|
27
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="#">
|
|
28
|
-
<span component="tag-markup" class="flex-grow-1">
|
|
29
|
-
<div class="d-inline-flex align-items-center gap-1">
|
|
30
|
-
{./valueEscaped}
|
|
31
|
-
</div>
|
|
32
|
-
</span>
|
|
33
|
-
<i component="tag/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{ if !./selected }}}invisible{{{ end }}}"></i>
|
|
34
|
-
</a>
|
|
35
|
-
</li>
|
|
36
|
-
{{{ end }}}
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{{{ if config.loggedIn }}}
|
|
2
|
-
<div class="btn-group bottom-sheet" component="tag/watch">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
|
-
<span component="tag/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
|
|
5
|
-
<i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
|
|
6
|
-
<span class="d-none d-md-inline fw-semibold">[[tags:watching]]</span>
|
|
7
|
-
</span>
|
|
8
|
-
|
|
9
|
-
<span component="tag/not-following/menu" class="d-flex gap-2 align-items-center{{{ if isFollowing}}} hidden{{{ end }}}">
|
|
10
|
-
<i class="flex-shrink-0 fa fa-fw fa-bell-slash-o text-primary"></i>
|
|
11
|
-
<span class="d-none d-md-inline fw-semibold">[[tags:not-watching]]</span>
|
|
12
|
-
</span>
|
|
13
|
-
</button>
|
|
14
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
15
|
-
<li>
|
|
16
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/following" role="menuitem">
|
|
17
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
18
|
-
<span class="d-flex align-items-center gap-2">
|
|
19
|
-
<i class="flex-shrink-0 fa fa-fw fa-bell-o"></i>
|
|
20
|
-
<span class="flex-grow-1 fw-semibold">[[tags:watching]]</span>
|
|
21
|
-
</span>
|
|
22
|
-
<div class="help-text text-muted text-xs">[[tags:watching.description]]</div>
|
|
23
|
-
</div>
|
|
24
|
-
<span class="flex-shrink-0"><i component="tag/following/check" class="fa fa-fw {{{ if isFollowing }}}fa-check{{{ end }}}"></i></span>
|
|
25
|
-
</a>
|
|
26
|
-
</li>
|
|
27
|
-
|
|
28
|
-
<li>
|
|
29
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/not-following" role="menuitem">
|
|
30
|
-
<div class="flex-grow-1 d-flex flex-column">
|
|
31
|
-
<span class="d-flex align-items-center gap-2">
|
|
32
|
-
<i class="flex-shrink-0 fa fa-fw fa-bell-slash-o"></i>
|
|
33
|
-
<span class="flex-grow-1 fw-semibold">[[tags:not-watching]]</span>
|
|
34
|
-
</span>
|
|
35
|
-
<div class="help-text text-muted text-xs">[[tags:not-watching.description]]</div>
|
|
36
|
-
</div>
|
|
37
|
-
<span class="flex-shrink-0"><i component="tag/not-following/check" class="fa fa-fw {{{ if !isFollowing }}}fa-check{{{ end }}}"></i></span>
|
|
38
|
-
</a>
|
|
39
|
-
</li>
|
|
40
|
-
</ul>
|
|
41
|
-
</div>
|
|
42
|
-
{{{ end }}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
|
-
{{{ if selectedUser }}}
|
|
3
|
-
<span class="fw-semibold">{buildAvatar(selectedUser, "20px", true, "not-responsive")} {selectedUser.username}</span>
|
|
4
|
-
{{{ else }}}
|
|
5
|
-
<span class="fw-semibold">[[users:all-users]]</span>
|
|
6
|
-
{{{ end }}} <span class="caret text-primary opacity-75"></span>
|
|
7
|
-
</button>
|
|
8
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
|
-
<li role="presentation" class="user {{{ if !selectedUser}}}selected{{{end}}}">
|
|
10
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{allUsersUrl}">
|
|
11
|
-
<div class="flex-grow-1">[[users:all-users]]</div>
|
|
12
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if !selectedUser }}}fa-check{{{ end }}}"></i>
|
|
13
|
-
</a>
|
|
14
|
-
</li>
|
|
15
|
-
{{{ each users }}}
|
|
16
|
-
<li role="presentation" class="user {{{ if ./selected}}}selected{{{end}}}">
|
|
17
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{./url}">
|
|
18
|
-
<div class="flex-grow-1 d-inline-flex gap-1 align-items-center">{buildAvatar(@value, "24px", true, "not-responsive")} {./username}</div>
|
|
19
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if ./selected }}}fa-check{{{ end }}}"></i>
|
|
20
|
-
</a>
|
|
21
|
-
</li>
|
|
22
|
-
{{{end}}}
|
|
23
|
-
</ul>
|
package/templates/register.tpl
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<div data-widget-area="header">
|
|
2
|
-
{{{each widgets.header}}}
|
|
3
|
-
{{widgets.header.html}}
|
|
4
|
-
{{{end}}}
|
|
5
|
-
</div>
|
|
6
|
-
<div class="row register flex-fill">
|
|
7
|
-
<div class="d-flex flex-column gap-2 {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
8
|
-
<h2 class="tracking-tight fw-semibold text-center">[[global:register]]</h2>
|
|
9
|
-
<div class="row justify-content-center gap-5">
|
|
10
|
-
|
|
11
|
-
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
12
|
-
<div class="register-block">
|
|
13
|
-
<form component="register/local" class="d-flex flex-column gap-3" role="form" action="{config.relative_path}/register" method="post">
|
|
14
|
-
<div class="mb-2 d-flex flex-column gap-2">
|
|
15
|
-
<label for="username">[[register:username]]</label>
|
|
16
|
-
<div class="d-flex flex-column">
|
|
17
|
-
<input class="form-control" type="text" placeholder="[[register:username-placeholder]]" name="username" id="username" autocorrect="off" autocapitalize="off" autocomplete="nickname" aria-required="true" aria-describedby="username-notify"/>
|
|
18
|
-
<span class="register-feedback text-xs text-danger" id="username-notify" aria-live="polite"></span>
|
|
19
|
-
<span class="form-text text-xs">[[register:help.username-restrictions, {minimumUsernameLength}, {maximumUsernameLength}]]</span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="mb-2 d-flex flex-column gap-2">
|
|
24
|
-
<label for="password">[[register:password]]</label>
|
|
25
|
-
<div class="d-flex flex-column">
|
|
26
|
-
<input class="form-control" type="password" placeholder="[[register:password-placeholder]]" name="password" id="password" autocomplete="new-password" autocapitalize="off" aria-required="true" aria-describedby="password-notify"/>
|
|
27
|
-
<span class="register-feedback text-xs text-danger" id="password-notify" aria-live="polite"></span>
|
|
28
|
-
<span class="form-text text-xs">[[register:help.minimum-password-length, {minimumPasswordLength}]]</span>
|
|
29
|
-
<p id="caps-lock-warning" class="text-danger hidden">
|
|
30
|
-
<i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]]
|
|
31
|
-
</p>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div class="mb-2 d-flex flex-column gap-2">
|
|
36
|
-
<label for="password-confirm">[[register:confirm-password]]</label>
|
|
37
|
-
<div>
|
|
38
|
-
<input class="form-control" type="password" placeholder="[[register:confirm-password-placeholder]]" name="password-confirm" id="password-confirm" autocomplete="new-password" autocapitalize="off" aria-required="true" aria-describedby="password-confirm-notify"/>
|
|
39
|
-
<span class="register-feedback text-xs text-danger" id="password-confirm-notify" aria-live="polite"></span>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
{{{ each regFormEntry }}}
|
|
44
|
-
<div class="mb-2 regFormEntry d-flex flex-column gap-2 {./styleName}">
|
|
45
|
-
<label for="{./inputId}">{./label}</label>
|
|
46
|
-
<div>{{./html}}</div>
|
|
47
|
-
</div>
|
|
48
|
-
{{{ end }}}
|
|
49
|
-
|
|
50
|
-
<button class="btn btn-primary" id="register" type="submit">[[register:register-now-button]]</button>
|
|
51
|
-
|
|
52
|
-
<div class="alert alert-danger{{{ if !error }}} hidden{{{ end }}}" id="register-error-notify" role="alert" aria-atomic="true">
|
|
53
|
-
<strong>[[error:registration-error]]</strong>
|
|
54
|
-
<p class="mb-0">{error}</p>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<hr/>
|
|
58
|
-
|
|
59
|
-
<span class="text-sm">[[register:already-have-account]]</span>
|
|
60
|
-
<a class="btn btn-outline-light text-body" href="{config.relative_path}/login">[[global:login]]</a>
|
|
61
|
-
|
|
62
|
-
<input id="token" type="hidden" name="token" value="" />
|
|
63
|
-
<input id="noscript" type="hidden" name="noscript" value="true" />
|
|
64
|
-
<input type="hidden" name="_csrf" value="{config.csrf_token}" />
|
|
65
|
-
</form>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
{{{ if alternate_logins }}}
|
|
70
|
-
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
71
|
-
<div class="alt-register-block d-flex flex-column gap-2">
|
|
72
|
-
<label>[[register:alternative-registration]]</label>
|
|
73
|
-
<ul class="alt-logins list-unstyled">
|
|
74
|
-
{{{ each authentication }}}
|
|
75
|
-
<li class="{./name} mb-2">
|
|
76
|
-
<a class="btn btn-outline-light d-flex align-items-center" rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{./url}">
|
|
77
|
-
{{{ if ./icons.svg }}}
|
|
78
|
-
{./icons.svg}
|
|
79
|
-
{{{ else }}}
|
|
80
|
-
<i class="flex-shrink-0 {./icons.normal}" style="color:{./color};"></i>
|
|
81
|
-
{{{ end }}}
|
|
82
|
-
{{{ if ./labels.register }}}
|
|
83
|
-
<div class="flex-grow-1 text-body text-sm">{./labels.register}</div>
|
|
84
|
-
{{{ end }}}
|
|
85
|
-
</a>
|
|
86
|
-
</li>
|
|
87
|
-
{{{ end }}}
|
|
88
|
-
</ul>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
{{{ end }}}
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
95
|
-
{{{each widgets.sidebar}}}
|
|
96
|
-
{{widgets.sidebar.html}}
|
|
97
|
-
{{{end}}}
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
<div data-widget-area="footer">
|
|
101
|
-
{{{each widgets.footer}}}
|
|
102
|
-
{{widgets.footer.html}}
|
|
103
|
-
{{{end}}}
|
|
104
|
-
</div>
|