Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
adeac37b
Commit
adeac37b
authored
Feb 27, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move more features HTML to chatroom_features.html
parent
946a2400
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/converse-muc.js
src/converse-muc.js
+2
-2
src/templates/chatroom_features.html
src/templates/chatroom_features.html
+3
-0
src/templates/chatroom_sidebar.html
src/templates/chatroom_sidebar.html
+1
-4
No files found.
src/converse-muc.js
View file @
adeac37b
...
...
@@ -1972,7 +1972,6 @@
tpl_chatroom_sidebar
(
_
.
extend
(
this
.
chatroomview
.
model
.
toJSON
(),
{
'
allow_muc_invitations
'
:
_converse
.
allow_muc_invitations
,
'
label_features
'
:
__
(
'
Features
'
),
'
label_occupants
'
:
__
(
'
Occupants
'
)
}))
);
...
...
@@ -2002,9 +2001,10 @@
},
renderRoomFeatures
:
function
()
{
this
.
$
(
'
.
features-list
'
).
html
(
this
.
$
(
'
.
chatroom-features
'
).
html
(
tpl_chatroom_features
(
_
.
extend
(
this
.
chatroomview
.
model
.
toJSON
(),
{
'
label_features
'
:
__
(
'
Features
'
),
'
label_hidden
'
:
__
(
'
Hidden
'
),
'
label_mam_enabled
'
:
__
(
'
Message archiving
'
),
'
label_membersonly
'
:
__
(
'
Members only
'
),
...
...
src/templates/chatroom_features.html
View file @
adeac37b
<p
class=
"occupants-heading"
>
{{{label_features}}}
</p>
<ul
class=
"features-list"
>
{[ if (passwordprotected) { ]}
<li
class=
"feature"
title=
"{{{ tt_passwordprotected }}}"
><span
class=
"icon-lock-2"
></span>
{{{ label_passwordprotected }}}
</li>
{[ } ]}
...
...
@@ -37,3 +39,4 @@
{[ if (mam_enabled) { ]}
<li
class=
"feature"
title=
"{{{ tt_mam_enabled }}}"
><span
class=
"icon-database"
></span>
{{{ label_mam_enabled }}}
</li>
{[ } ]}
</ul>
src/templates/chatroom_sidebar.html
View file @
adeac37b
<!-- <div class="occupants"> -->
<p
class=
"occupants-heading"
>
{{{label_occupants}}}
</p>
<ul
class=
"occupant-list"
></ul>
<div
class=
"chatroom-features"
>
<p
class=
"occupants-heading"
>
{{{label_features}}}
</p>
<ul
class=
"features-list"
></ul>
</div>
<div
class=
"chatroom-features"
></div>
<!-- </div> -->
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment