nodebb-theme-persona 12.1.12 → 12.1.14

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/chats.less CHANGED
@@ -144,7 +144,7 @@
144
144
 
145
145
  [component="chat/message/remaining"] {
146
146
  position: absolute;
147
- right: 5.25em;
147
+ right: 10em;
148
148
  z-index: 2;
149
149
  bottom: 0;
150
150
  color: @gray-light;
package/library.js CHANGED
@@ -69,6 +69,16 @@ library.defineWidgetAreas = async function (areas) {
69
69
  });
70
70
 
71
71
  areas = areas.concat([
72
+ {
73
+ name: 'Main post header',
74
+ template: 'topic.tpl',
75
+ location: 'mainpost-header',
76
+ },
77
+ {
78
+ name: 'Main post footer',
79
+ template: 'topic.tpl',
80
+ location: 'mainpost-footer',
81
+ },
72
82
  {
73
83
  name: 'Account Header',
74
84
  template: 'account/profile.tpl',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "12.1.12",
3
+ "version": "12.1.14",
4
4
  "nbbpm": {
5
5
  "compatibility": "^2.0.0"
6
6
  },
@@ -19,6 +19,7 @@
19
19
 
20
20
  <div component="chat/composer">
21
21
  <textarea component="chat/input" placeholder="[[modules:chat.placeholder]]" class="form-control chat-input mousetrap" rows="1"></textarea>
22
+ <button component="chat/upload/button" class="btn btn-light" type="button"><i class="fa fa-fw fa-2x fa-upload"></i></button>
22
23
  <button class="btn btn-primary" type="button" data-action="send"><i class="fa fa-fw fa-2x fa-paper-plane"></i></button>
23
24
  <span component="chat/message/remaining">{maximumChatMessageLength}</span>
24
25
  <form component="chat/upload" method="post" enctype="multipart/form-data">
@@ -60,10 +60,9 @@
60
60
  <div class="form-group">
61
61
  <h2 class="h4" for="state">[[flags:state]]</h2>
62
62
  <select class="form-control" id="state" name="state" disabled>
63
- <option value="open">[[flags:state-open]]</option>
64
- <option value="wip">[[flags:state-wip]]</option>
65
- <option value="resolved">[[flags:state-resolved]]</option>
66
- <option value="rejected">[[flags:state-rejected]]</option>
63
+ {{{ each states }}}
64
+ <option value="{@key}">{./label}</option>
65
+ {{{ end }}}
67
66
  </select>
68
67
  </div>
69
68
  <div class="form-group">
@@ -1,11 +1,11 @@
1
- <!-- IF ../isSection -->
2
- {../name}
3
- <!-- ELSE -->
4
- <!-- IF ../link -->
5
- <a href="{../link}" itemprop="url">
6
- <!-- ELSE -->
7
- <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
- <!-- ENDIF ../link -->
9
- {../name}
10
- </a>
1
+ <!-- IF ../isSection -->
2
+ {../name}
3
+ <!-- ELSE -->
4
+ <!-- IF ../link -->
5
+ <a href="{../link}" itemprop="url">
6
+ <!-- ELSE -->
7
+ <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
+ <!-- ENDIF ../link -->
9
+ {../name}
10
+ </a>
11
11
  <!-- ENDIF ../isSection -->
@@ -18,6 +18,7 @@
18
18
  </ul>
19
19
  <div component="chat/composer">
20
20
  <textarea component="chat/input" placeholder="[[modules:chat.placeholder]]" class="form-control chat-input mousetrap" rows="2"></textarea>
21
+ <button component="chat/upload/button" class="btn btn-light" type="button"><i class="fa fa-fw fa-2x fa-upload"></i></button>
21
22
  <button class="btn btn-primary" type="button" data-action="send"><i class="fa fa-fw fa-2x fa-paper-plane"></i></button>
22
23
  <span component="chat/message/remaining">{maximumChatMessageLength}</span>
23
24
  <form component="chat/upload" method="post" enctype="multipart/form-data">
@@ -1,3 +1,11 @@
1
+ {{{ if (!./index && widgets.mainpost-header.length) }}}
2
+ <div data-widget-area="mainpost-header">
3
+ {{{ each widgets.mainpost-header }}}
4
+ {widgets.mainpost-header.html}
5
+ {{{ end }}}
6
+ </div>
7
+ {{{ end }}}
8
+
1
9
  <div class="clearfix post-header">
2
10
  <div class="icon pull-left">
3
11
  <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
@@ -76,7 +84,7 @@
76
84
  </a>
77
85
  {{{ end }}}
78
86
 
79
- <small class="pull-right">
87
+ <small class="pull-right" component="post/actions">
80
88
  <!-- IMPORT partials/topic/reactions.tpl -->
81
89
  <span class="post-tools">
82
90
  <a component="post/reply" href="#" class="no-select <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">[[topic:reply]]</a>
@@ -103,4 +111,11 @@
103
111
  </small>
104
112
  </div>
105
113
  <div component="post/replies/container"></div>
106
- </div>
114
+ </div>
115
+ {{{ if (!./index && widgets.mainpost-footer.length) }}}
116
+ <div data-widget-area="mainpost-footer">
117
+ {{{ each widgets.mainpost-footer }}}
118
+ {widgets.mainpost-footer.html}
119
+ {{{ end }}}
120
+ </div>
121
+ {{{ end }}}
package/theme.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "id": "nodebb-theme-persona",
3
- "name": "Persona",
4
- "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
- "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
- "screenshot": "screenshot.png"
1
+ {
2
+ "id": "nodebb-theme-persona",
3
+ "name": "Persona",
4
+ "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
+ "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
+ "screenshot": "screenshot.png"
7
7
  }