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
c4a99c7f
Commit
c4a99c7f
authored
Feb 16, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render rooms and bookmarks lists according to mockups
parent
ede21e7c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
23 deletions
+31
-23
css/converse.css
css/converse.css
+2
-0
css/inverse.css
css/inverse.css
+2
-0
mockup/user-panel.html
mockup/user-panel.html
+3
-3
sass/_core.scss
sass/_core.scss
+4
-0
src/converse-bookmarks.js
src/converse-bookmarks.js
+4
-4
src/templates/bookmark.html
src/templates/bookmark.html
+5
-5
src/templates/room_item.html
src/templates/room_item.html
+2
-2
src/templates/room_panel.html
src/templates/room_panel.html
+2
-3
src/templates/rooms_list.html
src/templates/rooms_list.html
+1
-1
src/templates/rooms_list_item.html
src/templates/rooms_list_item.html
+6
-5
No files found.
css/converse.css
View file @
c4a99c7f
...
...
@@ -4789,6 +4789,8 @@ body.reset {
background-color
:
#DCF9F6
;
}
#conversejs
::-moz-selection
{
background-color
:
#DCF9F6
;
}
#conversejs
a
:hover
{
text-decoration
:
none
;
}
#conversejs
canvas
{
background
:
#777
;
border-radius
:
4px
;
}
...
...
css/inverse.css
View file @
c4a99c7f
...
...
@@ -4789,6 +4789,8 @@ body.reset {
background-color
:
#DCF9F6
;
}
#conversejs
::-moz-selection
{
background-color
:
#DCF9F6
;
}
#conversejs
a
:hover
{
text-decoration
:
none
;
}
#conversejs
canvas
{
background
:
#777
;
border-radius
:
4px
;
}
...
...
mockup/user-panel.html
View file @
c4a99c7f
...
...
@@ -22,19 +22,19 @@
<div
class=
"rooms-list"
>
<div
class=
"available-chatroom d-flex flex-row"
>
<a
class=
"open-room available-room w-100"
data-room-jid=
"public@conference.test.com"
title=
"Click to open this room"
href=
"#"
>
public
</a>
<a
href=
"#"
class=
"fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
<a
href=
"#"
class=
"
room-info
fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
data-html=
"true"
data-content=
"<b>Room Address (JID): </b><br>public@conference.test.com<br><b>Discussions: </b><br>Public discussions<br><b>Participants: </b>1<br><b>Features: </b><br>Non-anonymous"
>
</a>
<a
href=
"#"
class=
"fa fa-bookmark-o align-self-center"
title=
"Click to bookmark this room"
>
</a>
<a
href=
"#"
class=
"fa fa-times align-self-center"
title=
"Click to leave this room"
>
</a>
</div>
<div
class=
"available-chatroom d-flex flex-row"
>
<a
class=
"open-room available-room w-100"
data-room-jid=
"team@conference.test.com"
title=
"Click to open this room"
href=
"#"
>
team
</a>
<a
href=
"#"
class=
"fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
<a
href=
"#"
class=
"
room-info
fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
data-html=
"true"
data-content=
"<b>Room Address (JID): </b><br>team@conference.test.com<br><b>Discussions: </b><br>Public discussions<br><b>Participants: </b>1<br><b>Features: </b><br>Non-anonymous"
>
</a>
</div>
<div
class=
"available-chatroom d-flex flex-row"
>
<a
class=
"open-room available-room w-100"
data-room-jid=
"test@conference.test.com"
title=
"Click to open this room"
href=
"#"
>
test
</a>
<a
href=
"#"
class=
"fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
<a
href=
"#"
class=
"
room-info
fa fa-info-circle align-self-center"
data-container=
"body"
data-toggle=
"popover"
title=
"Room info"
data-html=
"true"
data-content=
"<b>Room Address (JID): </b><br>test@conference.test.com<br><b>Discussions: </b><br>Public discussions<br><b>Participants: </b>1<br><b>Features: </b><br>Non-anonymous"
>
</a>
</div>
</div>
...
...
sass/_core.scss
View file @
c4a99c7f
...
...
@@ -48,6 +48,10 @@ body.reset {
background-color
:
$highlight-color
;
}
a
:hover
{
text-decoration
:
none
;
}
canvas
{
background
:
$text-color
;
border-radius
:
$chatbox-border-radius
;
...
...
src/converse-bookmarks.js
View file @
c4a99c7f
...
...
@@ -433,7 +433,7 @@
_converse
.
BookmarksView
=
Backbone
.
OrderedListView
.
extend
({
tagName
:
'
div
'
,
className
:
'
bookmarks-list rooms-list-container
'
,
className
:
'
bookmarks-list
list-container
rooms-list-container
'
,
events
:
{
'
click .add-bookmark
'
:
'
addBookmark
'
,
'
click .bookmarks-toggle
'
:
'
toggleBookmarksList
'
,
...
...
@@ -479,9 +479,9 @@
const
controlboxview
=
_converse
.
chatboxviews
.
get
(
'
controlbox
'
);
if
(
!
_
.
isUndefined
(
controlboxview
)
&&
!
_converse
.
root
.
contains
(
this
.
el
))
{
const
container
=
controlboxview
.
el
.
querySelector
(
'
#chatrooms
'
);
if
(
!
_
.
isNull
(
container
))
{
container
.
insertBefore
(
this
.
el
,
container
.
firstChild
);
const
el
=
controlboxview
.
el
.
querySelector
(
'
.bookmarks-list
'
);
if
(
!
_
.
isNull
(
el
))
{
el
.
parentNode
.
replaceChild
(
this
.
el
,
el
);
}
}
},
...
...
src/templates/bookmark.html
View file @
c4a99c7f
<d
d
class=
"available-chatroom
{[ if (o.hidden) { ]} hidden {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
>
<a
class=
"open-room"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.open_title}}}"
href=
"#"
>
{{{o.name}}}
</a>
<a
class=
"r
ight remove-bookmark icon-pushpin
{[ if (o.bookmarked) { ]} button-on {[ } ]}"
<d
iv
class=
"available-chatroom d-flex flex-row
{[ if (o.hidden) { ]} hidden {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
>
<a
class=
"open-room
w-100
"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.open_title}}}"
href=
"#"
>
{{{o.name}}}
</a>
<a
class=
"r
emove-bookmark fa fa-bookmark-o align-self-center
{[ if (o.bookmarked) { ]} button-on {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
data-bookmark-name=
"{{{o.name}}}"
title=
"{{{o.info_remove_bookmark}}}"
href=
"#"
>
</a>
<a
class=
"r
ight room-info icon-room-info
"
data-room-jid=
"{{{o.jid}}}"
<a
class=
"r
oom-info fa fa-info-circle align-self-center
"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.info_title}}}"
href=
"#"
>
</a>
</d
d
>
</d
iv
>
src/templates/room_item.html
View file @
c4a99c7f
<d
d
class=
"available-chatroom
"
>
<d
iv
class=
"available-chatroom d-flex flex-row
"
>
<a
class=
"open-room available-room"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.open_title}}}"
...
...
@@ -6,4 +6,4 @@
<a
class=
"right room-info icon-room-info"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.info_title}}}"
href=
"#"
>
</a>
</d
d
>
</d
iv
>
src/templates/room_panel.html
View file @
c4a99c7f
...
...
@@ -4,7 +4,6 @@
<span
class=
"w-100"
>
Chatrooms
</span>
<a
class=
"chatbox-btn fa fa-users"
title=
"{{{o.title_new_room}}}"
data-toggle=
"modal"
data-target=
"#chatroomsModal"
></a>
</div>
<div
class=
"list-container open-rooms-list rooms-list-container"
>
<div
id=
"available-chatrooms"
class=
"rooms-list"
></div>
</div>
<div
class=
"list-container open-rooms-list rooms-list-container"
></div>
<div
class=
"list-container bookmarks-list rooms-list-container"
></div>
<!-- </div> -->
src/templates/rooms_list.html
View file @
c4a99c7f
<a
href=
"#"
class=
"rooms-toggle open-rooms-toggle icon-{{{o.toggle_state}}}"
title=
"{{{o.desc_rooms}}}"
>
{{{o.label_rooms}}}
</a>
<d
l
class=
"rooms-list open-rooms-list"
></dl
>
<d
iv
class=
"rooms-list open-rooms-list"
></div
>
src/templates/rooms_list_item.html
View file @
c4a99c7f
<d
d
class=
"available-chatroom
{[ if (o.num_unread_general) { ]} unread-msgs {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
>
<d
iv
class=
"available-chatroom d-flex flex-row
{[ if (o.num_unread_general) { ]} unread-msgs {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
>
{[ if (o.num_unread) { ]}
<span
class=
"msgs-indicator"
>
{{{ o.num_unread }}}
</span>
{[ } ]}
<a
class=
"open-room"
<a
class=
"open-room
available-room w-100
"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.open_title}}}"
href=
"#"
>
{{{o.name}}}
</a>
<a
class=
"right close-room icon-leave"
data-room-jid=
"{{{o.jid}}}"
data-room-name=
"{{{o.name}}}"
title=
"{{{o.info_leave_room}}}"
href=
"#"
>
</a>
{[ if (o.allow_bookmarks) { ]}
<a
class=
"
right icon-pushpin
{[ if (o.bookmarked) { ]} remove-bookmark button-on {[ } else { ]} add-bookmark {[ } ]}"
<a
class=
"
fa fa-bookmark-o align-self-center
{[ if (o.bookmarked) { ]} remove-bookmark button-on {[ } else { ]} add-bookmark {[ } ]}"
data-room-jid=
"{{{o.jid}}}"
data-bookmark-name=
"{{{o.name}}}"
title=
"{[ if (o.bookmarked) { ]} {{{o.info_remove_bookmark}}} {[ } else { ]} {{{o.info_add_bookmark}}} {[ } ]}"
href=
"#"
>
</a>
{[ } ]}
<a
class=
"r
ight room-info icon-room-info
"
data-room-jid=
"{{{o.jid}}}"
<a
class=
"r
oom-info fa fa-info-circle align-self-center
"
data-room-jid=
"{{{o.jid}}}"
title=
"{{{o.info_title}}}"
href=
"#"
>
</a>
</d
d
>
</d
iv
>
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