nodebb-theme-harmony 1.0.0-beta.1 → 1.0.0-beta.11
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/public/harmony.js +30 -20
- package/scss/chats.scss +7 -2
- package/scss/harmony.scss +1 -0
- package/scss/modules/bottom-sheet.scss +1 -1
- package/scss/modules/nprogress.scss +80 -0
- package/scss/sidebar.scss +27 -2
- package/scss/topic.scss +11 -0
- package/templates/chats.tpl +1 -1
- package/templates/partials/chats/message-window.tpl +3 -2
- package/templates/partials/chats/message.tpl +1 -1
- package/templates/partials/mobile-footer.tpl +70 -62
- package/templates/partials/post_bar.tpl +5 -4
- package/templates/partials/sidebar/chats.tpl +6 -3
- package/templates/partials/sidebar/drafts.tpl +2 -2
- package/templates/partials/sidebar/notifications.tpl +5 -5
- package/templates/partials/sidebar/search-mobile.tpl +1 -1
- package/templates/partials/sidebar/user-menu.tpl +1 -1
- package/templates/partials/sidebar-left.tpl +3 -0
- package/templates/partials/topic/navigation-post.tpl +5 -9
- package/templates/partials/topic/navigator-mobile.tpl +43 -0
- package/templates/partials/topic/quickreply.tpl +3 -3
- package/templates/partials/topic-list-bar.tpl +3 -3
- package/templates/partials/topics_list.tpl +2 -2
- package/templates/topic.tpl +2 -2
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
$(document).ready(function () {
|
|
4
|
+
setupNProgress();
|
|
4
5
|
setupMobileMenu();
|
|
5
6
|
setupSearch();
|
|
6
7
|
setupDrafts();
|
|
8
|
+
handleMobileNavigator();
|
|
7
9
|
|
|
8
10
|
$('[component="skinSwitcher"]').on('click', '.dropdown-item', function () {
|
|
9
11
|
const skin = $(this).attr('data-value');
|
|
@@ -55,26 +57,6 @@ $(document).ready(function () {
|
|
|
55
57
|
$('[component="sidebar/search"]').on('shown.bs.dropdown', function () {
|
|
56
58
|
$(this).find('[component="search/fields"] input[name="query"]').trigger('focus');
|
|
57
59
|
});
|
|
58
|
-
|
|
59
|
-
function resizeResults(hookData) {
|
|
60
|
-
if (hookData && hookData.data && !hookData.data.posts.length) {
|
|
61
|
-
$('.bottombar .quick-search-results').css({ height: 'initial' });
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const dropdown = $('.bottombar .search-dropdown');
|
|
65
|
-
const padY = dropdown.innerHeight() - dropdown.height();
|
|
66
|
-
const input = dropdown.find('.input-container').outerHeight(true);
|
|
67
|
-
const showMore = dropdown.find('.show-more-container').outerHeight(true);
|
|
68
|
-
const newHeight = Math.max(
|
|
69
|
-
150,
|
|
70
|
-
$(window).height() - (input + (showMore || 0) + (padY * 2) + 30)
|
|
71
|
-
);
|
|
72
|
-
$('.bottombar .quick-search-results').height(newHeight);
|
|
73
|
-
}
|
|
74
|
-
require(['hooks'], function (hooks) {
|
|
75
|
-
$(window).on('resize', resizeResults);
|
|
76
|
-
hooks.on('action:search.quick.complete', resizeResults);
|
|
77
|
-
});
|
|
78
60
|
}
|
|
79
61
|
|
|
80
62
|
function setupDrafts() {
|
|
@@ -122,4 +104,32 @@ $(document).ready(function () {
|
|
|
122
104
|
updateBadgeCount();
|
|
123
105
|
});
|
|
124
106
|
}
|
|
107
|
+
|
|
108
|
+
function setupNProgress() {
|
|
109
|
+
require(['nprogress'], function (NProgress) {
|
|
110
|
+
window.nprogress = NProgress;
|
|
111
|
+
if (NProgress) {
|
|
112
|
+
$(window).on('action:ajaxify.start', function () {
|
|
113
|
+
NProgress.set(0.7);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
$(window).on('action:ajaxify.end', function () {
|
|
117
|
+
NProgress.done(true);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function handleMobileNavigator() {
|
|
124
|
+
const paginationBlockEl = $('.pagination-block');
|
|
125
|
+
require(['hooks'], function (hooks) {
|
|
126
|
+
hooks.on('action:ajaxify.end', function () {
|
|
127
|
+
paginationBlockEl.find('.dropdown-menu.show').removeClass('show');
|
|
128
|
+
});
|
|
129
|
+
hooks.on('filter:navigator.scroll', function (hookData) {
|
|
130
|
+
paginationBlockEl.find('.dropdown-menu.show').removeClass('show');
|
|
131
|
+
return hookData;
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
}
|
|
125
135
|
});
|
package/scss/chats.scss
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
body.page-user-chats {
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
[component="chat/nav-wrapper"] {
|
|
10
|
+
width: 300px;
|
|
11
|
+
}
|
|
12
|
+
.expanded-chat {
|
|
11
13
|
// no taskbar so hide minimize button
|
|
12
14
|
[data-action="minimize"] {
|
|
13
15
|
display: none!important;
|
|
@@ -38,6 +40,9 @@ body.page-user-chats {
|
|
|
38
40
|
|
|
39
41
|
/* Mobile handling of chat page */
|
|
40
42
|
@include media-breakpoint-down(md) {
|
|
43
|
+
[component="chat/nav-wrapper"] {
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
41
46
|
.page-user-chats {
|
|
42
47
|
.chats-full {
|
|
43
48
|
padding-bottom: 8rem!important;
|
package/scss/harmony.scss
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#nprogress {
|
|
2
|
+
pointer-events: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
$nprogress-color: $primary;
|
|
6
|
+
|
|
7
|
+
#nprogress .bar {
|
|
8
|
+
background: $nprogress-color;
|
|
9
|
+
position: fixed;
|
|
10
|
+
z-index: 1031;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 2px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#nprogress .peg {
|
|
18
|
+
display: block;
|
|
19
|
+
position: absolute;
|
|
20
|
+
right: 0px;
|
|
21
|
+
width: 100px;
|
|
22
|
+
height: 100%;
|
|
23
|
+
box-shadow: 0 0 10px $nprogress-color, 0 0 5px $nprogress-color;
|
|
24
|
+
opacity: 1.0;
|
|
25
|
+
|
|
26
|
+
-webkit-transform: rotate(3deg) translate(0px, -4px);
|
|
27
|
+
-ms-transform: rotate(3deg) translate(0px, -4px);
|
|
28
|
+
transform: rotate(3deg) translate(0px, -4px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#nprogress .spinner {
|
|
32
|
+
display: none;
|
|
33
|
+
position: fixed;
|
|
34
|
+
z-index: 1031;
|
|
35
|
+
top: 15px;
|
|
36
|
+
right: 15px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include media-breakpoint-down(sm) {
|
|
40
|
+
#nprogress .spinner {
|
|
41
|
+
bottom: 15px;
|
|
42
|
+
right: 15px;
|
|
43
|
+
top: initial;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
#nprogress .spinner-icon {
|
|
49
|
+
width: 18px;
|
|
50
|
+
height: 18px;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
|
|
53
|
+
border: solid 2px transparent;
|
|
54
|
+
border-top-color: $nprogress-color;
|
|
55
|
+
border-left-color: $nprogress-color;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
|
|
58
|
+
-webkit-animation: nprogress-spinner 400ms linear infinite;
|
|
59
|
+
animation: nprogress-spinner 400ms linear infinite;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nprogress-custom-parent {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
position: relative;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nprogress-custom-parent #nprogress .spinner,
|
|
68
|
+
.nprogress-custom-parent #nprogress .bar {
|
|
69
|
+
position: absolute;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@-webkit-keyframes nprogress-spinner {
|
|
73
|
+
0% { -webkit-transform: rotate(0deg); }
|
|
74
|
+
100% { -webkit-transform: rotate(360deg); }
|
|
75
|
+
}
|
|
76
|
+
@keyframes nprogress-spinner {
|
|
77
|
+
0% { transform: rotate(0deg); }
|
|
78
|
+
100% { transform: rotate(360deg); }
|
|
79
|
+
}
|
|
80
|
+
|
package/scss/sidebar.scss
CHANGED
|
@@ -113,7 +113,32 @@
|
|
|
113
113
|
font-size: 9px;
|
|
114
114
|
line-height: 12px;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
|
|
117
|
+
.navigation-dropdown, .user-dropdown {
|
|
118
|
+
> li {
|
|
119
|
+
> a, .dropdown-item {
|
|
120
|
+
padding: 10px 20px!important;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
left: 0!important;
|
|
124
|
+
right: 0!important;
|
|
125
|
+
bottom: $spacer!important;
|
|
126
|
+
box-shadow: none!important;
|
|
127
|
+
max-height: 60vh!important;
|
|
128
|
+
overflow: auto!important;
|
|
129
|
+
}
|
|
130
|
+
.search-dropdown .quick-search-results {
|
|
131
|
+
max-height: 250px!important;
|
|
132
|
+
overflow-y: auto!important;
|
|
133
|
+
}
|
|
134
|
+
.search-dropdown, .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
|
|
135
|
+
left: 0!important;
|
|
136
|
+
right: 0!important;
|
|
137
|
+
bottom: $spacer!important;
|
|
138
|
+
box-shadow: none!important;
|
|
139
|
+
ul {
|
|
140
|
+
max-height: 60vh!important;
|
|
141
|
+
overflow-y: auto!important;
|
|
142
|
+
}
|
|
118
143
|
}
|
|
119
144
|
}
|
package/scss/topic.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
.pagination-block { display: none; }
|
|
2
|
+
|
|
1
3
|
.page-topic {
|
|
2
4
|
[component="topic/title"] {
|
|
3
5
|
font-size: 28px;
|
|
@@ -106,6 +108,15 @@
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
}
|
|
111
|
+
|
|
112
|
+
.pagination-block {
|
|
113
|
+
display: block;
|
|
114
|
+
transition: opacity 250ms ease-in;
|
|
115
|
+
opacity: 0;
|
|
116
|
+
&.ready {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
109
120
|
}
|
|
110
121
|
|
|
111
122
|
@include media-breakpoint-up(sm) {
|
package/templates/chats.tpl
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="chats-full d-flex gap-1 vh-100 py-3">
|
|
2
|
-
<div class="d-flex flex-column h-100"
|
|
2
|
+
<div class="d-flex flex-column h-100" component="chat/nav-wrapper" data-loaded="{{{ if roomId }}}1{{{ else }}}0{{{ end }}}">
|
|
3
3
|
<div class="chat-search dropdown mb-2">
|
|
4
4
|
<label class="text-xs text-muted">[[users:search-user-for-chat]]</label>
|
|
5
5
|
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
{{{ if roomId }}}
|
|
8
8
|
<div component="chat/messages" class="expanded-chat d-flex flex-column h-100" data-roomid="{roomId}">
|
|
9
|
-
<div component="chat/header" class="d-flex align-items-center px-3 gap-
|
|
10
|
-
<
|
|
9
|
+
<div component="chat/header" class="d-flex align-items-center px-3 gap-2">
|
|
10
|
+
<a href="#" data-action="close" role="button" class="d-flex d-md-none btn btn-outline align-text-top"><i class="fa fa-chevron-left"></i></a>
|
|
11
|
+
<h5 class="members flex-1 fw-semibold tracking-tight mb-0">
|
|
11
12
|
{./chatWithMessage}
|
|
12
13
|
</h5>
|
|
13
14
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{{{ end }}}
|
|
15
15
|
</div>
|
|
16
16
|
<div class="message-body-wrapper hover-parent">
|
|
17
|
-
<div component="chat/message/body" class="message-body ps-0 py-0 overflow-auto">
|
|
17
|
+
<div component="chat/message/body" class="message-body ps-0 py-0 overflow-auto text-break">
|
|
18
18
|
{messages.content}
|
|
19
19
|
</div>
|
|
20
20
|
|
|
@@ -1,70 +1,78 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
<div class="d-flex flex-column d-md-none fixed-bottom ff-secondary gap-1 align-items-center">
|
|
2
|
+
|
|
3
|
+
<!-- IMPORT partials/topic/navigator-mobile.tpl -->
|
|
4
|
+
|
|
5
|
+
<div class="bottombar p-2 text-dark bg-light d-flex justify-content-between align-items-center w-100">
|
|
6
|
+
<div class="">
|
|
7
|
+
<a href="#" role="button" class="nav-link nav-btn d-flex justify-content-between align-items-center position-relative" data-bs-toggle="dropdown">
|
|
8
|
+
<span class="position-relative">
|
|
9
|
+
<i class="fa fa-fw fa-lg fa-bars"></i>
|
|
10
|
+
<span component="unread/count" data-unread-url="{unreadCount.unreadUrl}" class="position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !unreadCount.mobileUnread }}}hidden{{{ end }}}">{unreadCount.mobileUnread}</span>
|
|
11
|
+
</span>
|
|
12
|
+
</a>
|
|
13
|
+
<ul class="navigation-dropdown dropdown-menu">
|
|
14
|
+
{{{ each navigation }}}
|
|
15
|
+
<!-- IF function.displayMenuItem, @index -->
|
|
16
|
+
<li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
|
|
17
|
+
<a class="nav-link nav-btn navigation-link px-3 py-2 {{{ if navigation.dropdown }}}dropdown-toggle{{{ end }}}"
|
|
18
|
+
{{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
|
|
19
|
+
<span class="d-inline-flex justify-content-between align-items-center w-100">
|
|
20
|
+
<span class="text-nowrap truncate-open">
|
|
21
|
+
{{{ if ./iconClass }}}
|
|
22
|
+
<i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
|
|
23
|
+
{{{ end }}}
|
|
24
|
+
{{{ if navigation.text }}}
|
|
25
|
+
<span class="nav-text visible-open px-2 fw-semibold">{navigation.text}</span>
|
|
26
|
+
{{{ end }}}
|
|
27
|
+
</span>
|
|
28
|
+
<span component="navigation/count" class="visible-open badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
|
|
20
29
|
</span>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</ul>
|
|
35
|
-
</div>
|
|
30
|
+
</a>
|
|
31
|
+
{{{ if navigation.dropdown }}}
|
|
32
|
+
<div class="ps-3">
|
|
33
|
+
<ul id="collapse-target-{@index}" class="collapse list-unstyled ps-3">
|
|
34
|
+
{navigation.dropdownContent}
|
|
35
|
+
</ul>
|
|
36
|
+
</div>
|
|
37
|
+
{{{ end }}}
|
|
38
|
+
</li>
|
|
39
|
+
<!-- ENDIF function.displayMenuItem -->
|
|
40
|
+
{{{end}}}
|
|
41
|
+
</ul>
|
|
42
|
+
</div>
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
<div class="">
|
|
45
|
+
{{{ if config.loggedIn }}}
|
|
46
|
+
<ul id="logged-in-menu" class="list-unstyled d-flex align-items-center w-100 gap-3 mb-0">
|
|
47
|
+
{{{ if config.searchEnabled }}}
|
|
48
|
+
<li component="sidebar/search" class="nav-item m-0 search">
|
|
49
|
+
<!-- IMPORT partials/sidebar/search-mobile.tpl -->
|
|
50
|
+
</li>
|
|
51
|
+
{{{ end }}}
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
<li component="notifications" class="nav-item m-0 notifications">
|
|
54
|
+
<!-- IMPORT partials/sidebar/notifications.tpl -->
|
|
55
|
+
</li>
|
|
49
56
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
{{{ if canChat }}}
|
|
58
|
+
<li class="nav-item m-0 chats">
|
|
59
|
+
<!-- IMPORT partials/sidebar/chats.tpl -->
|
|
60
|
+
</li>
|
|
61
|
+
{{{ end }}}
|
|
55
62
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
<li component="sidebar/drafts" class="nav-item m-0 drafts">
|
|
64
|
+
<!-- IMPORT partials/sidebar/drafts.tpl -->
|
|
65
|
+
</li>
|
|
59
66
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
<li id="user_label" class="nav-item m-0 py-2 usermenu">
|
|
68
|
+
<!-- IMPORT partials/sidebar/user-menu.tpl -->
|
|
69
|
+
</li>
|
|
70
|
+
</ul>
|
|
71
|
+
{{{ else }}}
|
|
72
|
+
<ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
|
|
73
|
+
<!-- IMPORT partials/sidebar/logged-out-menu.tpl -->
|
|
74
|
+
</ul>
|
|
75
|
+
{{{ end }}}
|
|
76
|
+
</div>
|
|
69
77
|
</div>
|
|
70
78
|
</div>
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
<a class="btn-ghost-sm d-none d-lg-flex align-self-stretch" target="_blank" href="{rssFeedUrl}" itemprop="item"><i class="fa fa-rss text-primary"></i></a>
|
|
17
17
|
{{{ end }}}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</
|
|
19
|
+
{{{ if browsingUsers }}}
|
|
20
|
+
<div class="hidden-xs">
|
|
21
|
+
<!-- IMPORT partials/topic/browsing-users.tpl -->
|
|
22
|
+
</div>
|
|
23
|
+
{{{ end }}}
|
|
23
24
|
</ul>
|
|
24
25
|
<!-- IMPORT partials/topic/reply-button.tpl -->
|
|
25
26
|
</div>
|
|
@@ -45,9 +45,12 @@
|
|
|
45
45
|
</li>
|
|
46
46
|
<li class="dropdown-divider"></li>
|
|
47
47
|
<li class="notif-dropdown-link">
|
|
48
|
-
<div class="d-flex justify-content-center gap-1 flex-
|
|
49
|
-
<a component="chats/mark-all-read" role="button" href="#" class="btn btn-sm btn-light mark-all-read flex-fill text-nowrap ff-secondary"><i class="fa fa-check-double"></i> [[modules:chat.mark_all_read]]</a>
|
|
50
|
-
|
|
48
|
+
<div class="d-flex justify-content-center gap-1 flex-wrap">
|
|
49
|
+
<a component="chats/mark-all-read" role="button" href="#" class="btn btn-sm btn-light mark-all-read flex-fill text-nowrap text-truncate ff-secondary"><i class="fa fa-check-double"></i> [[modules:chat.mark_all_read]]</a>
|
|
50
|
+
<!-- on md and up see all chats button goes to last room -->
|
|
51
|
+
<a class="d-none d-md-inline btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/user/{user.userslug}/chats{{{ if user.lastRoomId }}}/{user.lastRoomId}{{{ end }}}"><i class="fa fa-list"></i> [[modules:chat.see_all]]</a>
|
|
52
|
+
<!-- on xs&sm the see all chats button goes to the list of chats -->
|
|
53
|
+
<a class="d-inline d-md-none btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/user/{user.userslug}/chats"><i class="fa fa-list"></i> [[modules:chat.see_all]]</a>
|
|
51
54
|
</div>
|
|
52
55
|
</li>
|
|
53
56
|
</ul>
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
<div class="dropdown-item rounded-1 p-2 d-flex flex-column gap-2 pointer" component="drafts/open" data-save-id="{./save_id}">
|
|
23
23
|
{{{ if (./action == "topics.post") }}}
|
|
24
24
|
{{{ if ./title}}}
|
|
25
|
-
<div class="text text-xs fw-semibold line-clamp-2">{./title}</div>
|
|
25
|
+
<div class="text text-xs fw-semibold line-clamp-2 text-break">{./title}</div>
|
|
26
26
|
{{{ end }}}
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
29
|
{{{ if (./action == "posts.reply") }}}
|
|
30
|
-
<div class="text text-xs fw-semibold line-clamp-2">[[topic:composer.replying_to, "{./title}"]]</div>
|
|
30
|
+
<div class="text text-xs fw-semibold line-clamp-2 text-break">[[topic:composer.replying_to, "{./title}"]]</div>
|
|
31
31
|
{{{ end }}}
|
|
32
32
|
|
|
33
33
|
{{{ if (./action == "posts.edit") }}}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<i component="notifications/icon" class="fa fa-fw {{{ if unreadCount.notification}}}fa-bell{{{ else }}}fa-bell-o{{{ end }}} unread-count" data-content="{unreadCount.notification}"></i>
|
|
5
5
|
<span component="notifications/count" class="visible-closed position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !unreadCount.notification }}}hidden{{{ end }}}">{unreadCount.notification}</span>
|
|
6
6
|
</span>
|
|
7
|
-
<span class="nav-text small visible-open fw-semibold">[[global:header.notifications]]</span>
|
|
7
|
+
<span class="nav-text small visible-open fw-semibold truncate-text">[[global:header.notifications]]</span>
|
|
8
8
|
</span>
|
|
9
9
|
<span component="notifications/count" class="visible-open badge rounded-1 bg-primary {{{ if !unreadCount.notification }}}hidden{{{ end }}}">{unreadCount.notification}</span>
|
|
10
10
|
</a>
|
|
11
|
-
<ul class="notifications-dropdown dropdown-menu p-
|
|
11
|
+
<ul class="notifications-dropdown dropdown-menu p-1 shadow">
|
|
12
12
|
<li>
|
|
13
13
|
<ul component="notifications/list" class="notification-list list-unstyled">
|
|
14
14
|
<li class="mb-2 placeholder-wave">
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
</li>
|
|
21
21
|
<li class="dropdown-divider"></li>
|
|
22
22
|
<li class="notif-dropdown-link">
|
|
23
|
-
<div class="d-flex justify-content-center gap-1 flex-
|
|
24
|
-
<a role="button" href="#" class="btn btn-sm btn-light mark-all-read flex-fill text-nowrap ff-secondary"><i class="fa fa-check-double"></i> [[notifications:mark_all_read]]</a>
|
|
25
|
-
<a class="btn btn-sm btn-primary flex-fill text-nowrap ff-secondary" href="{relative_path}/notifications"><i class="fa fa-list"></i> [[notifications:see_all]]</a>
|
|
23
|
+
<div class="d-flex justify-content-center gap-1 flex-wrap">
|
|
24
|
+
<a role="button" href="#" class="btn btn-sm btn-light mark-all-read flex-fill text-nowrap text-truncate ff-secondary"><i class="fa fa-check-double"></i> [[notifications:mark_all_read]]</a>
|
|
25
|
+
<a class="btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/notifications"><i class="fa fa-list"></i> [[notifications:see_all]]</a>
|
|
26
26
|
</div>
|
|
27
27
|
</li>
|
|
28
28
|
</ul>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="quick-search-results-container"></div>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<div class="d-flex gap-1 input-container
|
|
18
|
+
<div class="d-flex gap-1 input-container">
|
|
19
19
|
<input autocomplete="off" type="text" class="form-control" placeholder="[[global:search]]" name="query" value="">
|
|
20
20
|
|
|
21
21
|
<div class="nav-btn d-flex justify-content-center align-items-center advanced-search-link">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{buildAvatar(user, "20px", true)}
|
|
3
3
|
<span id="user-header-name" class="nav-text small visible-open fw-semibold">{user.username}</span>
|
|
4
4
|
</label>
|
|
5
|
-
<ul id="user-control-list" component="header/usercontrol" class="dropdown-menu shadow p-1 text-sm" aria-labelledby="user_dropdown">
|
|
5
|
+
<ul id="user-control-list" component="header/usercontrol" class="user-dropdown dropdown-menu shadow p-1 text-sm" aria-labelledby="user_dropdown">
|
|
6
6
|
<li>
|
|
7
7
|
<a class="dropdown-item rounded-1 d-flex align-items-center gap-1" component="header/profilelink" href="{relative_path}/user/{user.userslug}">
|
|
8
8
|
<div class="text-center"><span component="user/status" class="badge border border-white border-2 rounded-circle status {user.status}"><span class="visually-hidden">[[global:{user.status}]]</span></span></div>
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
{{{end}}}
|
|
29
29
|
</ul>
|
|
30
30
|
<div class="w-100">
|
|
31
|
+
{{{ if !config.disableCustomUserSkins }}}
|
|
31
32
|
<!-- IMPORT partials/skin-switcher.tpl -->
|
|
33
|
+
{{{ end }}}
|
|
34
|
+
|
|
32
35
|
<div class="sidebar-toggle m-2 d-none d-lg-block">
|
|
33
36
|
<a href="#" role="button" component="sidebar/toggle" class="nav-btn d-flex gap-2 align-items-center p-2 pointer nav-link w-100 text-nowrap">
|
|
34
37
|
<i class="fa fa-fw fa-angles-right"></i>
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<a href="<!-- IF post.user.userslug -->{config.relative_path}/user/{post.user.userslug}<!-- ELSE -->#<!-- ENDIF post.user.userslug -->">
|
|
6
|
-
{buildAvatar(post.user, "24px", true, "", "user/picture")} {post.user.username}
|
|
1
|
+
<div class="d-flex gap-2 mb-2 justify-content-between align-items-center flex-nowrap">
|
|
2
|
+
<div class="icon text-truncate">
|
|
3
|
+
<a href="{{{ if post.user.userslug }}}{config.relative_path}/user/{post.user.userslug}{{{else }}}#{{{ end }}}">
|
|
4
|
+
{buildAvatar(post.user, "24px", true)} {post.user.username}
|
|
7
5
|
</a>
|
|
8
6
|
</div>
|
|
9
|
-
<
|
|
10
|
-
<span class="timeago" title="{post.timestampISO}"></span>
|
|
11
|
-
</small>
|
|
7
|
+
<span class="timeago text-nowrap text-sm" title="{post.timestampISO}"></span>
|
|
12
8
|
</div>
|
|
13
9
|
|
|
14
10
|
<div>{post.content}</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<div class="d-flex justify-content-end w-100">
|
|
2
|
+
<div class="pagination-block text-bg-light m-2 rounded-1 border border-gray-300" style="height:50px;">
|
|
3
|
+
<div class="position-relative">
|
|
4
|
+
<div class="progress-bar rounded-1 bg-info d-block position-absolute" style="height:50px;"></div>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="wrapper d-flex align-items-center h-100" style="padding: 5px 0px;">
|
|
7
|
+
<i class="fa fa-2x fa-angle-double-up pointer fa-fw pagetop" style="z-index: 1;"></i>
|
|
8
|
+
|
|
9
|
+
<a href="#" class="text-reset dropdown-toggle d-inline-block px-3 text-decoration-none" data-bs-toggle="dropdown">
|
|
10
|
+
<span class="pagination-text position-relative fw-bold"></span>
|
|
11
|
+
</a>
|
|
12
|
+
|
|
13
|
+
<i class="fa fa-2x fa-angle-double-down pointer fa-fw pagebottom" style="z-index: 1;"></i>
|
|
14
|
+
<ul class="dropdown-menu p-0" role="menu" style="width: 100%;">
|
|
15
|
+
<li class="p-3">
|
|
16
|
+
<div class="row">
|
|
17
|
+
<div class="col-8 post-content overflow-hidden mb-3" style="height: 350px;"></div>
|
|
18
|
+
<div class="col-4 text-end">
|
|
19
|
+
<div class="scroller-content">
|
|
20
|
+
<span class="pointer pagetop">[[topic:first-post]] <i class="fa fa-angle-double-up"></i></span>
|
|
21
|
+
<div class="scroller-container border-gray-200" style="height: 300px; border-right: 3px solid; margin-right: 5.5px;">
|
|
22
|
+
<div class="scroller-thumb position-relative" style="height: 40px;right: -6px; padding-right: 15px; margin-right: -15px;">
|
|
23
|
+
<span class="thumb-text fw-bold user-select-none position-relative" style="top: -15px; padding-right: 10px;"></span>
|
|
24
|
+
<div class="rounded-2 scroller-thumb-icon bg-primary d-inline-block position-relative" style="width: 9px; height:40px;"></div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<span class="pointer pagebottom">[[topic:last-post]] <i class="fa fa-angle-double-down"></i></span>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="row">
|
|
32
|
+
<div class="col-6">
|
|
33
|
+
<button id="myNextPostBtn" class="btn btn-outline-secondary form-control text-truncate" disabled>[[topic:go-to-my-next-post]]</button>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-6">
|
|
36
|
+
<input type="number" class="form-control" id="indexInput" placeholder="[[global:pagination.enter_index]]">
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</li>
|
|
40
|
+
</ul>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
<form class="flex-grow-1 d-flex flex-column gap-2" method="post" action="{config.relative_path}/compose">
|
|
10
10
|
<input type="hidden" name="tid" value="{tid}" />
|
|
11
11
|
<input type="hidden" name="_csrf" value="{config.csrf_token}" />
|
|
12
|
-
<div class="quickreply-message">
|
|
12
|
+
<div class="quickreply-message position-relative">
|
|
13
13
|
<textarea rows="4" name="content" component="topic/quickreply/text" class="form-control mousetrap" placeholder="[[modules:composer.textarea.placeholder]]"></textarea>
|
|
14
14
|
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
<div class="
|
|
17
|
+
<div class="d-flex justify-content-end gap-2">
|
|
18
|
+
<button type="submit" component="topic/quickreply/expand" class="btn btn-sm btn-outline" formmethod="get"><i class="fa fa-expand"></i></button>
|
|
18
19
|
<button type="submit" component="topic/quickreply/button" class="btn btn-sm btn-primary">[[topic:post-quick-reply]]</button>
|
|
19
|
-
<button type="submit" component="topic/quickreply/expand" class="btn btn-sm btn-primary" formmethod="get"><i class="fa fa-expand"></i></button>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
</form>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<nav class="topic-list-header {{{ if config.stickyToolbar }}} sticky-tools{{{ end }}} navbar navbar-expand p-0 border-0 rounded">
|
|
2
|
-
<div class="card card-header flex-row p-2 border rounded ff-secondary w-100">
|
|
2
|
+
<div class="card card-header flex-row p-2 gap-1 border rounded ff-secondary w-100">
|
|
3
3
|
<ul class="navbar-nav me-auto gap-2 align-items-center">
|
|
4
4
|
{{{ if template.category }}}
|
|
5
5
|
<!-- IMPORT partials/category/watch.tpl -->
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
29
|
<a href="{config.relative_path}{{{ if template.category }}}{url}{{{ else }}}/{selectedFilter.url}{querystring}{{{ end }}}" class="d-inline-block text-decoration-none">
|
|
30
|
-
<div class="alert alert-warning h-100 m-0 px-2 py-1
|
|
30
|
+
<div class="d-md-block alert alert-warning h-100 m-0 px-2 py-1 line-clamp-2 text-sm text-break hide" id="new-topics-alert">There is a new post. Click here to reload.</div>
|
|
31
31
|
</a>
|
|
32
32
|
</ul>
|
|
33
33
|
|
|
34
|
-
<div class="d-flex gap-1 align-items-
|
|
34
|
+
<div class="d-flex gap-1 align-items-center">
|
|
35
35
|
{{{ if template.category }}}
|
|
36
36
|
{{{ if privileges.topics:create }}}
|
|
37
37
|
<a href="{config.relative_path}/compose?cid={cid}" component="category/post" id="new_topic" class="btn btn-primary btn-sm text-nowrap" data-ajaxify="false" role="button">[[category:new_topic_button]]</a>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="avatar">
|
|
15
15
|
<a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none">
|
|
16
16
|
{{{ if ./thumbs.length }}}
|
|
17
|
-
<img src="{./thumbs.0.url}" class="not-responsive" />
|
|
17
|
+
<img class="topic-thumb rounded-1" width="80" height="auto" src="{./thumbs.0.url}" class="not-responsive" />
|
|
18
18
|
{{{ else }}}
|
|
19
19
|
{buildAvatar(./user, "40px", true, "not-responsive")}
|
|
20
20
|
{{{ end }}}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="d-flex flex-column gap-1">
|
|
25
|
-
<h2 component="topic/header" class="title mb-1 {{{ if showSelect }}}me-4{{{ end }}} me-md-0 text-md fw-bold">
|
|
25
|
+
<h2 component="topic/header" class="text-break title mb-1 {{{ if showSelect }}}me-4{{{ end }}} me-md-0 text-md fw-bold">
|
|
26
26
|
{{{ if topics.noAnchor }}}
|
|
27
27
|
<span>{./title}</span>
|
|
28
28
|
{{{ else }}}
|
package/templates/topic.tpl
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
{{{ end }}}
|
|
8
8
|
|
|
9
|
-
<h2 component="post/header" class="fs-2 mb-0 {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
|
|
9
|
+
<h2 component="post/header" class="fs-2 mb-0 text-break {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
|
|
10
10
|
<span class="topic-title" component="topic/title">{title}</span>
|
|
11
11
|
</h2>
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<i class="fa fa-arrow-circle-right"></i>
|
|
29
29
|
{{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}
|
|
30
30
|
</span>
|
|
31
|
-
{{{each icons}}}<span
|
|
31
|
+
{{{each icons}}}<span>{@value}</span>{{{end}}}
|
|
32
32
|
</span>
|
|
33
33
|
<a class="lh-1" href="{config.relative_path}/category/{category.slug}">{function.buildCategoryLabel, category, "border"}</a>
|
|
34
34
|
<div class="lh-1 tags tag-list d-flex hidden-xs gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
|