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
6ac01ed2
Commit
6ac01ed2
authored
Jul 19, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bookmark icon shown in open rooms list when `allow_bookmarks` set to `false`
parent
0edb38e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
CHANGES.md
CHANGES.md
+2
-0
src/converse-roomslist.js
src/converse-roomslist.js
+1
-0
src/templates/rooms_list_item.html
src/templates/rooms_list_item.html
+3
-0
No files found.
CHANGES.md
View file @
6ac01ed2
...
...
@@ -26,6 +26,8 @@
-
Room name wasn't being updated after changing it in the configuration form. [jcbrand]
-
Server disco features were "forgotten" after logging out and then logging in again. [jcbrand]
-
Don't show duplicate sent groupchat messages in Slack chat rooms. [jcbrand]
-
Bookmark icon shown in the open rooms list when
`allow_bookmarks`
is to
`false`
. [jcbrand]
-
#879 Text in links are converted to smileys leading to non-clickable links.
## 3.1.1 (2017-07-12)
...
...
src/converse-roomslist.js
View file @
6ac01ed2
...
...
@@ -117,6 +117,7 @@
}
const
div
=
document
.
createElement
(
'
div
'
);
div
.
innerHTML
=
tpl_rooms_list_item
(
_
.
extend
(
item
.
toJSON
(),
{
'
allow_bookmarks
'
:
_converse
.
allow_bookmarks
,
'
info_leave_room
'
:
__
(
'
Leave this room
'
),
'
info_remove_bookmark
'
:
__
(
'
Unbookmark this room
'
),
'
info_title
'
:
__
(
'
Show more information on this room
'
),
...
...
src/templates/rooms_list_item.html
View file @
6ac01ed2
...
...
@@ -9,9 +9,12 @@
data-room-jid=
"{{{jid}}}"
data-room-name=
"{{{name}}}"
title=
"{{{info_leave_room}}}"
href=
"#"
>
</a>
{[ if (allow_bookmarks) { ]}
<a
class=
"right remove-bookmark icon-pushpin {[ if (bookmarked) { ]} button-on {[ } ]}"
data-room-jid=
"{{{jid}}}"
data-bookmark-name=
"{{{name}}}"
title=
"{{{info_remove_bookmark}}}"
href=
"#"
>
</a>
{[ } ]}
<a
class=
"right room-info icon-room-info"
data-room-jid=
"{{{jid}}}"
title=
"{{{info_title}}}"
href=
"#"
>
</a>
</dd>
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