Changes for page Message Sender Macro
Last modified by Ludovic Dubost on 2024/07/22 15:51
From version 9.1
edited by Ludovic Dubost
on 2019/08/02 10:59
on 2019/08/02 10:59
Change comment:
Migrated property [contentJavaType] from class [XWiki.WikiMacroClass]
To version 7.1
edited by Ludovic Dubost
on 2018/12/09 12:24
on 2018/12/09 12:24
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-messagestream-ui/10.10]
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -1,5 +3,3 @@ 1 -#template('colorThemeInit.vm') 2 - 3 3 .messagestream-tools { 4 4 display: flex; 5 5 position: relative; ... ... @@ -12,37 +12,3 @@ 12 12 flex-grow: 1; 13 13 margin-left: .3em; 14 14 } 15 - 16 -.messagestream .message-content { 17 - padding: .5em 0 .5em 75px; 18 -} 19 - 20 -.messagestream .activitySnapshot { 21 - height: 30px; 22 - margin: 5px 0 0 -50px; 23 - position: absolute; 24 -} 25 - 26 -.messagestream .activitySnapshot img { 27 - border-radius: 10px 10px 0 10px; 28 - box-shadow: -1px 1px 1px rgba(128,128,128,0.6); 29 -} 30 - 31 -/* User's avatar */ 32 -.messagestream .activitySnapshot .avatar { 33 - border-radius: 4px; 34 - box-shadow: 0 0 2px 1px rgba(128,128,128,0.6); 35 -} 36 - 37 -.messagestream .activitySnapshot .activityActionAvatar { 38 - background: $theme.pageContentBackgroundColor; 39 - border-color: $theme.pageContentBackgroundColor; 40 - border-style: solid; 41 - border-width: 4px 1px 1px 3px; 42 - box-sizing: content-box; 43 - bottom: -5px; 44 - height: 16px; 45 - position: absolute; 46 - right: -10px; 47 - width: 16px; 48 -} - Parse content
-
... ... @@ -1,1 +1,1 @@ 1 - Yes1 +No
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -32,6 +32,7 @@ 32 32 ## 33 33 ## Skin Extensions 34 34 ##-------------------------------------------------------------- 35 +#set ($discard = $xwiki.ssx.use('Main.Activity')) 35 35 #set ($discard = $xwiki.ssx.use('Main.MessageSenderMacro')) 36 36 #set ($discard = $xwiki.jsx.use('Main.MessageSenderMacro')) 37 37 {{/velocity}} ... ... @@ -110,11 +110,11 @@ 110 110 #set ($actionQueryString = "xredirect=$escapetool.url($xredirect)") 111 111 {{html}} 112 112 ## Wrap the form in a div so that the layout is preserved in inline mode (where the form is stripped by the rendering). 113 - <div class='messagestream xform'> 114 + <div class='messagestream activityUser xform'> 114 114 #if (!$inEditMode) 115 115 <form action="${xwiki.getURL('Main.MessageSenderMacro', 'view', $!{actionQueryString})}" method='post'> 116 116 #end 117 - <div class=' message-content'>118 + <div class='activityContent'> 118 118 #if(!$inEditMode) 119 119 ## CSRF prevention 120 120 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />