nodebb-theme-persona 11.2.21 → 11.3.2

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/less/style.less CHANGED
@@ -1,304 +1,304 @@
1
- html {
2
- overflow-y: scroll;
3
- min-height: 100%;
4
- }
5
-
6
- body {
7
- @media (min-width: 979px)
8
- {
9
- padding-top: 70px;
10
- }
11
-
12
- @media (max-width: 979px)
13
- {
14
- padding-top: 70px;
15
- padding-bottom: 50px;
16
- }
17
-
18
- min-height: 100%;
19
- }
20
-
21
- @media (max-width: @screen-xs-max) {
22
- .slideout-panel {
23
- min-height: 100vh;
24
- }
25
- }
26
-
27
- button, a {
28
- -webkit-tap-highlight-color: rgba(0,0,0,0);
29
- }
30
-
31
- .block, .show {
32
- display: block;
33
- }
34
-
35
- .bold {
36
- font-weight: bold;
37
- }
38
-
39
- a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
40
- text-decoration:none;
41
- }
42
-
43
- .alt-logins {
44
- margin: 0 0 0 1em;
45
- padding: 0;
46
- list-style-type: none;
47
-
48
- li {
49
- vertical-align: middle;
50
- background: transparent;
51
- margin: 0.25em;
52
- .pointer;
53
- .inline-block;
54
- }
55
- }
56
-
57
- .jumbotron {
58
- word-wrap: break-word;
59
- }
60
-
61
- #content {
62
- padding-bottom:20px;
63
- -webkit-transition: opacity 150ms linear;
64
- -moz-transition: opacity 150ms linear;
65
- -ms-transition: opacity 150ms linear;
66
- -o-transition: opacity 150ms linear;
67
- transition: opacity 150ms linear;
68
-
69
- &.ajaxifying {
70
- -moz-opacity: 0;
71
- opacity: 0;
72
- -ms-filter:~"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
73
- }
74
- }
75
-
76
- .status {
77
- font-size: 10px;
78
- vertical-align: middle;
79
-
80
- &.online {
81
- color: @material-success;
82
- }
83
-
84
- &.away {
85
- color: @material-warning;
86
- }
87
-
88
- &.dnd {
89
- color: @material-danger;
90
- }
91
-
92
- &.offline {
93
- color: @gray;
94
- }
95
- }
96
-
97
-
98
- .topic .topic-item, .category .category-item {
99
- -webkit-transition: background-color 500ms linear;
100
- -moz-transition: background-color 500ms linear;
101
- -ms-transition: background-color 500ms linear;
102
- -o-transition: background-color 500ms linear;
103
- transition: background-color 500ms linear;
104
- }
105
-
106
- .topic .topic-item.highlight, .category .category-item.highlight {
107
- background-color: lighten(@brand-info, 20%);
108
- }
109
-
110
- .fa-facebook-square {
111
- color:#3b5998;
112
- background:transparent;
113
- }
114
-
115
- .fa-twitter-square {
116
- color:#2fc2ef;
117
- background:transparent;
118
- }
119
-
120
- .fa-google-plus-square {
121
- color:#df5138;
122
- background:transparent;
123
- }
124
-
125
- .category .post-link, .topic .post-link {
126
- display:inline-block;
127
- width:90%;
128
- height:25px;
129
- font-size:10px;
130
- padding:0px;
131
- }
132
-
133
- .menu-icon {
134
- background: transparent;
135
- width: 20px;
136
- height: 20px;
137
- text-align: center;
138
- display: inline-block;
139
- line-height: 20px;
140
- cursor: pointer;
141
- }
142
-
143
- .dropdown-menu {
144
- .badge {
145
- vertical-align: 1px;
146
- }
147
-
148
- a[role="menuitem"]:focus {
149
- outline: none;
150
- }
151
- }
152
-
153
- .fade-out {
154
- position: absolute;
155
- top: 190px;
156
- left: 0;
157
- width: 100%;
158
- margin: 0;
159
- padding: 30px 0;
160
- }
161
-
162
- .skin-default, .skin-cerulean, .skin-cosmo, .skin-flatly, .skin-journal, .skin-lumen, .skin-paper, .skin-readable, .skin-sandstone, .skin-spacelab, .skin-united, .skin-yeti {
163
- .fade-out {
164
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, white));
165
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), white);
166
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), white);
167
- background-image: -ms-linear-gradient(top, transparent, white);
168
- background-image: -o-linear-gradient(top, transparent, white);
169
- }
170
- }
171
-
172
- .skin-cyborg .fade-out {
173
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #060606));
174
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #060606);
175
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #060606);
176
- background-image: -ms-linear-gradient(top, transparent, #060606);
177
- background-image: -o-linear-gradient(top, transparent, #060606);
178
- }
179
-
180
- .skin-darkly .fade-out {
181
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #222222));
182
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #222222);
183
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #222222);
184
- background-image: -ms-linear-gradient(top, transparent, #222222);
185
- background-image: -o-linear-gradient(top, transparent, #222222);
186
- }
187
-
188
- .skin-simplex .fade-out {
189
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #fcfcfc));
190
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #fcfcfc);
191
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #fcfcfc);
192
- background-image: -ms-linear-gradient(top, transparent, #fcfcfc);
193
- background-image: -o-linear-gradient(top, transparent, #fcfcfc);
194
- }
195
-
196
- .skin-slate .fade-out {
197
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #272b30));
198
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #272b30);
199
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #272b30);
200
- background-image: -ms-linear-gradient(top, transparent, #272b30);
201
- background-image: -o-linear-gradient(top, transparent, #272b30);
202
- }
203
-
204
- .skin-superhero .fade-out {
205
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #2b3e50));
206
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #2b3e50);
207
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #2b3e50);
208
- background-image: -ms-linear-gradient(top, transparent, #2b3e50);
209
- background-image: -o-linear-gradient(top, transparent, #2b3e50);
210
- }
211
-
212
- .skin-darkly, .skin-cyborg {
213
- [component="composer"] {
214
- background: #333;
215
-
216
- .title, .preview, textarea {
217
- background-color: #303030;
218
- color: #fff;
219
- }
220
-
221
- textarea {
222
- outline: none;
223
- border-color: #000;
224
- }
225
-
226
- .formatting-bar .formatting-group li, .formatting-bar span {
227
- color: #fff;
228
- }
229
-
230
- .formatting-bar .formatting-group li:focus, .formatting-bar .formatting-group li:hover {
231
- background-color: #444;
232
- }
233
- }
234
- }
235
-
236
- .icon-container {
237
- .row {
238
- margin: 0;
239
- i {
240
- width:20px;
241
- height:20px;
242
- margin: 1px;
243
- .pointer;
244
- line-height: 20px;
245
- text-align: center;
246
-
247
- &:hover, &.selected {
248
- background: black;
249
- color: white;
250
- }
251
- }
252
- }
253
- }
254
-
255
- .maintenance {
256
- .well {
257
- white-space: pre-line;
258
- }
259
- }
260
-
261
-
262
- .footer {
263
- margin-top: 1em;
264
- }
265
-
266
- a.permalink {
267
- &,
268
- &:hover,
269
- &:focus,
270
- &:active {
271
- color: @gray-light;
272
- text-decoration: underline;
273
- }
274
- }
275
-
276
- .deco-none, .deco-none:link, .deco-none:hover {
277
- color: inherit;
278
- text-decoration: inherit;
279
- }
280
-
281
- .disabled a {
282
- pointer-events: none;
283
- }
284
-
285
- @media (max-width: @screen-sm-max) {
286
- .form-control {
287
- font-size: 16px;
288
- }
289
- }
290
-
291
- .background-link-container {
292
- position: relative;
293
- a {
294
- position: relative;
295
- }
296
-
297
- a.background-link {
298
- position: absolute;
299
- width: 100%;
300
- height: 100%;
301
- top: 0;
302
- left: 0;
303
- }
1
+ html {
2
+ overflow-y: scroll;
3
+ min-height: 100%;
4
+ }
5
+
6
+ body {
7
+ @media (min-width: 979px)
8
+ {
9
+ padding-top: 70px;
10
+ }
11
+
12
+ @media (max-width: 979px)
13
+ {
14
+ padding-top: 70px;
15
+ padding-bottom: 50px;
16
+ }
17
+
18
+ min-height: 100%;
19
+ }
20
+
21
+ @media (max-width: @screen-xs-max) {
22
+ .slideout-panel {
23
+ min-height: 100vh;
24
+ }
25
+ }
26
+
27
+ button, a {
28
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
29
+ }
30
+
31
+ .block, .show {
32
+ display: block;
33
+ }
34
+
35
+ .bold {
36
+ font-weight: bold;
37
+ }
38
+
39
+ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
40
+ text-decoration:none;
41
+ }
42
+
43
+ .alt-logins {
44
+ margin: 0 0 0 1em;
45
+ padding: 0;
46
+ list-style-type: none;
47
+
48
+ li {
49
+ vertical-align: middle;
50
+ background: transparent;
51
+ margin: 0.25em;
52
+ .pointer;
53
+ .inline-block;
54
+ }
55
+ }
56
+
57
+ .jumbotron {
58
+ word-wrap: break-word;
59
+ }
60
+
61
+ #content {
62
+ padding-bottom:20px;
63
+ -webkit-transition: opacity 150ms linear;
64
+ -moz-transition: opacity 150ms linear;
65
+ -ms-transition: opacity 150ms linear;
66
+ -o-transition: opacity 150ms linear;
67
+ transition: opacity 150ms linear;
68
+
69
+ &.ajaxifying {
70
+ -moz-opacity: 0;
71
+ opacity: 0;
72
+ -ms-filter:~"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
73
+ }
74
+ }
75
+
76
+ .status {
77
+ font-size: 10px;
78
+ vertical-align: middle;
79
+
80
+ &.online {
81
+ color: @material-success;
82
+ }
83
+
84
+ &.away {
85
+ color: @material-warning;
86
+ }
87
+
88
+ &.dnd {
89
+ color: @material-danger;
90
+ }
91
+
92
+ &.offline {
93
+ color: @gray;
94
+ }
95
+ }
96
+
97
+
98
+ .topic .topic-item, .category .category-item {
99
+ -webkit-transition: background-color 500ms linear;
100
+ -moz-transition: background-color 500ms linear;
101
+ -ms-transition: background-color 500ms linear;
102
+ -o-transition: background-color 500ms linear;
103
+ transition: background-color 500ms linear;
104
+ }
105
+
106
+ .topic .topic-item.highlight, .category .category-item.highlight {
107
+ background-color: lighten(@brand-info, 20%);
108
+ }
109
+
110
+ .fa-facebook-square {
111
+ color:#3b5998;
112
+ background:transparent;
113
+ }
114
+
115
+ .fa-twitter-square {
116
+ color:#2fc2ef;
117
+ background:transparent;
118
+ }
119
+
120
+ .fa-google-plus-square {
121
+ color:#df5138;
122
+ background:transparent;
123
+ }
124
+
125
+ .category .post-link, .topic .post-link {
126
+ display:inline-block;
127
+ width:90%;
128
+ height:25px;
129
+ font-size:10px;
130
+ padding:0px;
131
+ }
132
+
133
+ .menu-icon {
134
+ background: transparent;
135
+ width: 20px;
136
+ height: 20px;
137
+ text-align: center;
138
+ display: inline-block;
139
+ line-height: 20px;
140
+ cursor: pointer;
141
+ }
142
+
143
+ .dropdown-menu {
144
+ .badge {
145
+ vertical-align: 1px;
146
+ }
147
+
148
+ a[role="menuitem"]:focus {
149
+ outline: none;
150
+ }
151
+ }
152
+
153
+ .fade-out {
154
+ position: absolute;
155
+ top: 190px;
156
+ left: 0;
157
+ width: 100%;
158
+ margin: 0;
159
+ padding: 30px 0;
160
+ }
161
+
162
+ .skin-default, .skin-cerulean, .skin-cosmo, .skin-flatly, .skin-journal, .skin-lumen, .skin-paper, .skin-readable, .skin-sandstone, .skin-spacelab, .skin-united, .skin-yeti {
163
+ .fade-out {
164
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, white));
165
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), white);
166
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), white);
167
+ background-image: -ms-linear-gradient(top, transparent, white);
168
+ background-image: -o-linear-gradient(top, transparent, white);
169
+ }
170
+ }
171
+
172
+ .skin-cyborg .fade-out {
173
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #060606));
174
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #060606);
175
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #060606);
176
+ background-image: -ms-linear-gradient(top, transparent, #060606);
177
+ background-image: -o-linear-gradient(top, transparent, #060606);
178
+ }
179
+
180
+ .skin-darkly .fade-out {
181
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #222222));
182
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #222222);
183
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #222222);
184
+ background-image: -ms-linear-gradient(top, transparent, #222222);
185
+ background-image: -o-linear-gradient(top, transparent, #222222);
186
+ }
187
+
188
+ .skin-simplex .fade-out {
189
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #fcfcfc));
190
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #fcfcfc);
191
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #fcfcfc);
192
+ background-image: -ms-linear-gradient(top, transparent, #fcfcfc);
193
+ background-image: -o-linear-gradient(top, transparent, #fcfcfc);
194
+ }
195
+
196
+ .skin-slate .fade-out {
197
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #272b30));
198
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #272b30);
199
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #272b30);
200
+ background-image: -ms-linear-gradient(top, transparent, #272b30);
201
+ background-image: -o-linear-gradient(top, transparent, #272b30);
202
+ }
203
+
204
+ .skin-superhero .fade-out {
205
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #2b3e50));
206
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #2b3e50);
207
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #2b3e50);
208
+ background-image: -ms-linear-gradient(top, transparent, #2b3e50);
209
+ background-image: -o-linear-gradient(top, transparent, #2b3e50);
210
+ }
211
+
212
+ .skin-darkly, .skin-cyborg {
213
+ [component="composer"] {
214
+ background: #333;
215
+
216
+ .title, .preview, textarea {
217
+ background-color: #303030;
218
+ color: #fff;
219
+ }
220
+
221
+ textarea {
222
+ outline: none;
223
+ border-color: #000;
224
+ }
225
+
226
+ .formatting-bar .formatting-group li, .formatting-bar span {
227
+ color: #fff;
228
+ }
229
+
230
+ .formatting-bar .formatting-group li:focus, .formatting-bar .formatting-group li:hover {
231
+ background-color: #444;
232
+ }
233
+ }
234
+ }
235
+
236
+ .icon-container {
237
+ .row {
238
+ margin: 0;
239
+ i {
240
+ width:20px;
241
+ height:20px;
242
+ margin: 1px;
243
+ .pointer;
244
+ line-height: 20px;
245
+ text-align: center;
246
+
247
+ &:hover, &.selected {
248
+ background: black;
249
+ color: white;
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ .maintenance {
256
+ .well {
257
+ white-space: pre-line;
258
+ }
259
+ }
260
+
261
+
262
+ .footer {
263
+ margin-top: 1em;
264
+ }
265
+
266
+ a.permalink {
267
+ &,
268
+ &:hover,
269
+ &:focus,
270
+ &:active {
271
+ color: @gray-light;
272
+ text-decoration: underline;
273
+ }
274
+ }
275
+
276
+ .deco-none, .deco-none:link, .deco-none:hover {
277
+ color: inherit;
278
+ text-decoration: inherit;
279
+ }
280
+
281
+ .disabled a {
282
+ pointer-events: none;
283
+ }
284
+
285
+ @media (max-width: @screen-sm-max) {
286
+ .form-control {
287
+ font-size: 16px;
288
+ }
289
+ }
290
+
291
+ .background-link-container {
292
+ position: relative;
293
+ a {
294
+ position: relative;
295
+ }
296
+
297
+ a.background-link {
298
+ position: absolute;
299
+ width: 100%;
300
+ height: 100%;
301
+ top: 0;
302
+ left: 0;
303
+ }
304
304
  }
@@ -1,16 +1,16 @@
1
- #new-topics-alert {
2
- margin-bottom: 0px;
3
- padding: 10px 16px;
4
- }
5
-
6
- .topic-list-header {
7
- position: sticky;
8
- top: @navbar-height;
9
- background-color: @body-bg;
10
- z-index: @zindex-navbar;
11
- padding-top: 10px;
12
- padding-bottom: 10px;
13
- margin-bottom: 10px;
14
- border-top: 1px solid @post-border-color;
15
- border-bottom: 1px solid @post-border-color;
1
+ #new-topics-alert {
2
+ margin-bottom: 0px;
3
+ padding: 10px 16px;
4
+ }
5
+
6
+ .topic-list-header {
7
+ position: sticky;
8
+ top: @navbar-height;
9
+ background-color: @body-bg;
10
+ z-index: @zindex-navbar;
11
+ padding-top: 10px;
12
+ padding-bottom: 10px;
13
+ margin-bottom: 10px;
14
+ border-top: 1px solid @post-border-color;
15
+ border-bottom: 1px solid @post-border-color;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "11.2.21",
3
+ "version": "11.3.2",
4
4
  "nbbpm": {
5
5
  "compatibility": "^1.18.0"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  "main": "library.js",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/psychobunny/nodebb-theme-persona"
11
+ "url": "https://github.com/NodeBB/nodebb-theme-persona"
12
12
  },
13
13
  "scripts": {
14
14
  "lint": "eslint ."
@@ -23,23 +23,23 @@
23
23
  "contributors": [
24
24
  {
25
25
  "name": "Andrew Rodrigues",
26
- "email": "andrew@designcreateplay.com",
26
+ "email": "andrew@nodebb.org",
27
27
  "url": "https://github.com/psychobunny"
28
28
  },
29
29
  {
30
30
  "name": "Julian Lam",
31
- "email": "julian@designcreateplay.com",
31
+ "email": "julian@nodebb.org",
32
32
  "url": "https://github.com/julianlam"
33
33
  },
34
34
  {
35
35
  "name": "Barış Soner Uşaklı",
36
- "email": "baris@designcreateplay.com",
36
+ "email": "baris@nodebb.org",
37
37
  "url": "https://github.com/barisusakli"
38
38
  }
39
39
  ],
40
40
  "license": "BSD-2-Clause",
41
41
  "bugs": {
42
- "url": "https://github.com/psychobunny/nodebb-theme-persona/issues"
42
+ "url": "https://github.com/NodeBB/nodebb-theme-persona/issues"
43
43
  },
44
44
  "dependencies": {
45
45
  "pulling": "^2.0.0",
package/public/persona.js CHANGED
@@ -23,11 +23,23 @@ $(document).ready(function () {
23
23
 
24
24
  function fixHeaderPadding() {
25
25
  var env = utils.findBootstrapEnvironment();
26
- if (env === 'sm' || env === 'xs' || env === 'md') {
27
- $('#panel').css('padding-top', $('#header-menu').outerHeight(true));
28
- } else {
29
- $('#panel').css('padding-top', $('#header-menu').outerHeight(true) - 70);
26
+ const headerEl = document.getElementById('header-menu');
27
+ const panelEl = document.getElementById('panel');
28
+
29
+ if (!headerEl || !panelEl) {
30
+ return;
31
+ }
32
+
33
+ const headerRect = headerEl.getBoundingClientRect();
34
+ const headerStyle = window.getComputedStyle(headerEl);
35
+
36
+ let paddingTop = headerRect.y + headerRect.height + (parseInt(headerStyle.marginTop, 10) || 0) + (parseInt(headerStyle.marginBottom, 10) || 0);
37
+ // body element itself introduces a hardcoded 70px padding on desktop resolution
38
+ if (env === 'lg') {
39
+ paddingTop -= 70;
30
40
  }
41
+
42
+ panelEl.style.paddingTop = `${paddingTop}px`;
31
43
  }
32
44
 
33
45
  var lastBSEnv = '';
@@ -1,5 +1,5 @@
1
1
  {{{each tags}}}
2
2
  <h3 class="pull-left tag-container">
3
- <a href="{config.relative_path}/tags/{tags.valueEscaped}" data-value="{tags.valueEscaped}"><span class="tag-item" data-tag="{tags.valueEscaped}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.valueEscaped}</span><span class="tag-topic-count human-readable-number" title="{tags.score}">{tags.score}</span></a>
3
+ <a href="{config.relative_path}/tags/{tags.valueEscaped}" data-value="{tags.valueEscaped}"><span class="tag-item tag-class-{tags.class}" data-tag="{tags.valueEscaped}" style="{{{ if tags.color }}}color: {tags.color};{{{ end }}}{{{ if tags.bgColor }}}background-color: {tags.bgColor};{{{ end }}}">{tags.valueEscaped}</span><span class="tag-topic-count human-readable-number" title="{tags.score}">{tags.score}</span></a>
4
4
  </h3>
5
5
  {{{end}}}
@@ -1,5 +1,5 @@
1
1
  {{{each tags}}}
2
- <a href="{config.relative_path}/tags/{tags.value}">
3
- <span class="tag tag-item tag-{tags.valueEscaped}" 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.valueEscaped}</span>
2
+ <a href="{config.relative_path}/tags/{tags.valueEscaped}">
3
+ <span class="tag tag-item tag-class-{tags.class}" data-tag="{tags.value}" style="{{{ if tags.color }}}color: {tags.color};{{{ end }}}{{{ if tags.bgColor }}}background-color: {tags.bgColor};{{{ end }}}">{tags.valueEscaped}</span>
4
4
  </a>
5
5
  {{{end}}}
@@ -51,14 +51,14 @@
51
51
  </small>
52
52
  <!-- ENDIF !template.category -->
53
53
 
54
- <!-- IF topics.tags.length -->
54
+ {{{ if topics.tags.length }}}
55
55
  <span class="tag-list hidden-xs">
56
56
  {{{each topics.tags}}}
57
- <a href="{config.relative_path}/tags/{topics.tags.valueEscaped}"><span class="tag tag-{topics.tags.valueEscaped}" style="<!-- IF topics.tags.color -->color: {topics.tags.color};<!-- ENDIF topics.tags.color --><!-- IF topics.tags.bgColor -->background-color: {topics.tags.bgColor};<!-- ENDIF topics.tags.bgColor -->">{topics.tags.valueEscaped}</span></a>
57
+ <a href="{config.relative_path}/tags/{topics.tags.valueEscaped}"><span class="tag tag-item tag-class-{topics.tags.class}" style="{{{ if topics.tags.color }}}color: {topics.tags.color};{{{ end }}}{{{ if topics.tags.bgColor }}}background-color: {topics.tags.bgColor};{{{ end }}}">{topics.tags.valueEscaped}</span></a>
58
58
  {{{end}}}
59
59
  <small>&bull;</small>
60
60
  </span>
61
- <!-- ENDIF topics.tags.length -->
61
+ {{{ end }}}
62
62
 
63
63
  <small class="hidden-xs"><span class="timeago" title="{topics.timestampISO}"></span> &bull; <a href="<!-- IF topics.user.userslug -->{config.relative_path}/user/{topics.user.userslug}<!-- ELSE -->#<!-- ENDIF topics.user.userslug -->">{topics.user.displayname}</a></small>
64
64
  <small class="visible-xs-inline">
@@ -67,7 +67,7 @@
67
67
 
68
68
  <!-- IMPORT partials/topic/post.tpl -->
69
69
  </li>
70
- {renderTopicEvents(@index)}
70
+ {renderTopicEvents(@index, config.topicPostSort)}
71
71
  {{{end}}}
72
72
  </ul>
73
73