Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-15415: Create a compact user picker widget and use it in platform
* Update the usage of the user picker in XWikiGroupSheet, MessageSenderMacro, SharePage, AdminWikiDescriptorSheet, CreateWiki and WikiUsers * Fix AWM.ClassEditSheet to be able to load the user picker styles when a user picker field is added * Update AWM.LiveTableGenerator (no need to load the user displayer styles since we moved them to the skin) * Add users.less to hold the styles for the user/group displayer since they are used in losts of places * Update the user displayer usage in SolrUserFacet * Use the Bootstrap modal in Share Page dialog (also rewrite the JavaScript code using jQuery) * Modify the displayUser and displayGroup velocity macros to have a compact display * Modify the userPicker/groupPicker velocity macros to use the compact user picker * Add support for JSON output in uorgsuggest.vm
- Loading branch information
Showing
18 changed files
with
580 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...o-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less/users.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Avatars ==================================================================== | ||
|
||
.avatar_30, .avatar_50 { | ||
border-radius: @thumbnail-border-radius; | ||
} | ||
|
||
.avatar_30 { | ||
max-width: 30px; | ||
max-height: 30px; | ||
} | ||
|
||
.avatar_50 { | ||
max-width: 50px; | ||
max-height: 50px; | ||
} | ||
|
||
// Users and Groups Displayer ================================================= | ||
|
||
ul.users, | ||
ul.groups { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
li.user, | ||
li.group { | ||
display: inline-block; | ||
margin-right: .6em; | ||
} | ||
|
||
.user, | ||
.group { | ||
white-space: nowrap; | ||
} | ||
|
||
.user .user-avatar, | ||
.group .group-avatar { | ||
margin-right: .3em; | ||
} | ||
|
||
.user img.user-avatar, | ||
.group img.group-avatar { | ||
border-radius: 3px; | ||
max-height: 18px; | ||
max-width: 18px; | ||
vertical-align: text-top; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I think this should be more generic as the AWM is not the only place where a CSS file is not loaded.
For instance, if you create a page and add the object
AppWithinMinutes.Users
, you'll end up with a missing CSS file.I've made a PR to fix this problem, you can see the commit here: 7c8aabf