Skip to content

Commit 1d07bfd

Browse files
authored
Merge pull request #95 from psychobunny/master
Update for NodeBB 1.17.0
2 parents c459d42 + fb67e09 commit 1d07bfd

File tree

13 files changed

+41
-56
lines changed

13 files changed

+41
-56
lines changed

less/account.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148

149149
h4 {
150150
font-size: 13px;
151+
text-align: left;
151152

152153
@media (max-width: @screen-xs-max) {
153154
font-size: 11px;
@@ -170,6 +171,7 @@
170171

171172
.account-stats {
172173
display: inline-block;
174+
text-align: center;
173175

174176
.stat {
175177
text-align: center;

less/groups.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
.card-body.card-padding {
196196
@media (min-width: @screen-md-min) {
197197
padding: 18px;
198+
min-height: 68px;
198199
}
199200
}
200201
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "nodebb-theme-material",
3-
"version": "2.12.9",
3+
"version": "2.13.1",
44
"nbbpm": {
5-
"compatibility": "^1.12.0"
5+
"compatibility": "^1.17.0"
66
},
77
"description": "Material Design theme for NodeBB",
88
"main": "theme.less",

templates/account/info.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
</div>
4646
<div class="card-body card-padding">
4747
<ul>
48-
<!-- BEGIN ips -->
49-
<li>@value</li>
50-
<!-- END ips -->
48+
{{{each ips}}}
49+
<li>{ips}</li>
50+
{{{end}}}
5151
</ul>
5252
</div>
5353
</div>

templates/categories.tpl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- IF !config.categoriesAsList -->
22
<div class="categories row <!-- IF !config.removeCategoriesAnimation --> display-animation<!-- ENDIF !config.removeCategoriesAnimation -->">
3-
<!-- BEGIN categories -->
3+
{{{ each categories }}}
44
<div component="categories/category" data-cid="{categories.cid}" class="<!-- IF categories.class -->{categories.class}<!-- ELSE -->col-md-3 col-sm-6 col-xs-12<!-- ENDIF categories.class -->">
55
<div class="category-card" style="{function.generateCategoryBackground}">
66
<!-- IF categories.link -->
@@ -26,7 +26,7 @@
2626
</div>
2727
</a>
2828
<div class="category-card-footer">
29-
<!-- BEGIN posts -->
29+
{{{each posts}}}
3030
<!-- IF @first -->
3131
<div component="category/posts">
3232
<div class="pull-left hidden-xs user-avatar">
@@ -43,11 +43,11 @@
4343
</div>
4444
</div>
4545
<!-- ENDIF @first -->
46-
<!-- END posts -->
46+
{{{end}}}
4747
</div>
4848
</div>
4949
</div>
50-
<!-- END categories -->
50+
{{{ end }}}
5151
</div>
5252
<!-- ENDIF !config.categoriesAsList -->
5353

@@ -56,7 +56,7 @@
5656
<div class="card">
5757
<div class="listview lv-bordered lv-lg">
5858
<div class="lv-body">
59-
<!-- BEGIN categories -->
59+
{{{ each categories }}}
6060
<div class="lv-item media row clearfix" component="categories/category" data-cid="{categories.cid}">
6161
<div class="col-xs-12 col-sm-8 col-md-7">
6262
<div class="icon pull-left" style="{function.generateCategoryBackground}">
@@ -89,7 +89,7 @@
8989
</div>
9090
</div>
9191
<div class="col-md-3 hidden-xs last-post">
92-
<!-- BEGIN posts -->
92+
{{{ each posts }}}
9393
<!-- IF @first -->
9494
<div component="category/posts">
9595
<div class="pull-left hidden-xs user-avatar">
@@ -109,10 +109,10 @@
109109
</div>
110110
</div>
111111
<!-- ENDIF @first -->
112-
<!-- END posts -->
112+
{{{ end }}}
113113
</div>
114114
<!-- IF config.listSubcategories -->
115-
<!-- BEGIN categories.children -->
115+
{{{ each categories.children }}}
116116
<div class="subcategories lv-item media row">
117117
<div class="col-xs-12 col-sm-8 col-md-7 sub-category">
118118
<div class="icon pull-left" style="{function.generateCategoryBackground}">
@@ -145,7 +145,7 @@
145145
</div>
146146
</div>
147147
<div class="col-md-3 hidden-xs last-post">
148-
<!-- BEGIN posts -->
148+
{{{ each posts }}}
149149
<!-- IF @first -->
150150
<div component="category/posts">
151151
<div class="pull-left hidden-xs user-avatar">
@@ -165,13 +165,13 @@
165165
</div>
166166
</div>
167167
<!-- ENDIF @first -->
168-
<!-- END posts -->
168+
{{{ end }}}
169169
</div>
170170
</div>
171-
<!-- END categories.children -->
171+
{{{ end }}}
172172
<!-- ENDIF config.listSubcategories -->
173173
</div>
174-
<!-- END categories -->
174+
{{{ end }}}
175175
</div>
176176
</div>
177177
</div>

templates/footer.tpl

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,10 @@
1717
</div>
1818
<!-- ENDIF !isSpider -->
1919

20-
<script defer src="{relative_path}/assets/nodebb.min.js?{config.cache-buster}"></script>
21-
22-
<!-- BEGIN scripts -->
23-
<script defer type="text/javascript" src="{scripts.src}"></script>
24-
<!-- END scripts -->
25-
26-
<script>
27-
window.addEventListener('load', function () {
28-
require(['forum/footer']);
29-
30-
<!-- IF useCustomJS -->
31-
{{customJS}}
32-
<!-- ENDIF useCustomJS -->
33-
});
34-
</script>
35-
3620
<div class="hide">
3721
<!-- IMPORT 500-embed.tpl -->
3822
</div>
23+
24+
<!-- IMPORT partials/footer/js.tpl -->
3925
</body>
4026
</html>

templates/partials/account/header.tpl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<h4 class="username"><!-- IF !banned -->@{username}<!-- ELSE -->[[user:banned]]<!-- ENDIF !banned --></h4>
2525
</div>
2626

27-
<!-- IF template.account/profile -->
2827
<div class="account-stats">
2928
<!-- IF !reputation:disabled -->
3029
<div class="stat">
@@ -59,16 +58,13 @@
5958
<!-- IF !config.disableChat -->
6059
<a component="account/chat" href="#" class="btn btn-primary btn-sm"><i class="fa fa-fw fa-comment-o"></i> [[user:chat]]</a>
6160
<!-- ENDIF !config.disableChat -->
62-
<a id="follow-btn" component="account/follow" href="#" class="btn btn-success btn-sm <!-- IF isFollowing -->hide<!-- ENDIF isFollowing -->">[[user:follow]]</a>
63-
<a id="unfollow-btn" component="account/unfollow" href="#" class="btn btn-warning btn-sm <!-- IF !isFollowing -->hide<!-- ENDIF !isFollowing -->">[[user:unfollow]]</a>
61+
62+
<a id="follow-btn" component="account/follow" href="#" class="btn btn-success btn-sm <!-- IF isFollowing -->hide<!-- ENDIF isFollowing -->"><i class="fa fa-fw fa-heart-o"></i> [[user:follow]]</a>
63+
<a id="unfollow-btn" component="account/unfollow" href="#" class="btn btn-warning btn-sm <!-- IF !isFollowing -->hide<!-- ENDIF !isFollowing -->"><i class="fa fa-fw fa-heart"></i> [[user:unfollow]]</a>
6464
<!-- ENDIF !banned -->
6565
<!-- ENDIF !isSelf -->
6666
<!-- ENDIF loggedIn -->
6767

68-
<!-- ELSE -->
69-
<hr/>
70-
<!-- ENDIF template.account/profile -->
71-
7268
<!-- IMPORT partials/account/menu.tpl -->
7369
</div>
7470
</div>

templates/partials/category/subcategory.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</div>
8181
</a>
8282
<div class="category-card-footer">
83-
<!-- BEGIN posts -->
83+
{{{each posts}}}
8484
<div component="category/posts">
8585
<div class="pull-left hidden-xs user-avatar">
8686
<a href="{config.relative_path}/user/{children.posts.user.userslug}">
@@ -95,7 +95,7 @@
9595
<a href="{config.relative_path}/topic/{children.posts.topic.slug}">{children.posts.topic.title}</a>
9696
</div>
9797
</div>
98-
<!-- END posts -->
98+
{{{end}}}
9999
</div>
100100
</div>
101101
</div>

templates/partials/groups/list.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- BEGIN groups -->
1+
{{{ each groups }}}
22
<div class="col-lg-4 col-md-6 col-sm-12" data-slug="{groups.slug}">
33
<div class="card">
44
<div class="card-header ch-alt">
@@ -7,7 +7,7 @@
77
<a href="{config.relative_path}/groups/{groups.slug}" class="card-body group-cover list-cover" style="<!-- IF groups.cover:thumb:url -->background-image: url({groups.cover:thumb:url});<!-- ENDIF groups.cover:thumb:url -->"></a>
88
<div class="card-body card-padding">
99
<ul class="members">
10-
<!-- BEGIN groups.members -->
10+
{{{ each groups.members }}}
1111
<li>
1212
<a href="{config.relative_path}/user/{groups.members.userslug}">
1313
<!-- IF groups.members.picture -->
@@ -17,7 +17,7 @@
1717
<!-- ENDIF groups.members.picture -->
1818
</a>
1919
</li>
20-
<!-- END groups.members -->
20+
{{{ end }}}
2121
<!-- IF groups.truncated -->
2222
<li class="truncated"><i class="fa fa-ellipsis-h"></i></li>
2323
<!-- ENDIF groups.truncated -->
@@ -28,4 +28,4 @@
2828
</div>
2929
</div>
3030
</div>
31-
<!-- END groups -->
31+
{{{ end }}}

templates/partials/post_bar.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="tags hidden-xs">
2-
<!-- BEGIN tags -->
2+
{{{each tags}}}
33
<div class="pull-left tag-container">
44
<a href="{config.relative_path}/tags/{tags.value}">
55
<span class="tag-item" data-tag="{tags.value}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.value}</span><span class="tag-topic-count">{tags.score}</span></a>
66
</div>
7-
<!-- END tags -->
7+
{{{end}}}
88
</div>
99

1010
<ul class="postbar-actions pull-right">

0 commit comments

Comments
 (0)