Changes for page Profile of XWikiUserSheet
Last modified by Ludovic Dubost on 2024/07/22 15:51
From version 12.1
edited by Ludovic Dubost
on 2024/07/22 15:51
on 2024/07/22 15:51
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-profile-ui/16.5.0]
To version 11.1
edited by Ludovic Dubost
on 2022/04/20 17:59
on 2022/04/20 17:59
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-profile-ui/14.0]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -65,7 +65,8 @@ 65 65 ## By specifying the image width we enable server side resizing. The width value we use is greater than the 66 66 ## available space because we don't want to loose too much of the image quality (we rely on the browser to fit the 67 67 ## image in the available space). 68 - {{attachmentSelector classname="XWiki.XWikiUsers" object="$obj.number" property="avatar" #if ($hasEdit) savemode="direct" #end defaultValue="XWiki.XWikiUserSheet@noavatar.png" width="180" alternateText="$xwiki.getUserName($doc.fullName, false)" buttontext="$services.localization.render('platform.core.profile.changePhoto')" displayImage="true" filter="png,jpg,jpeg,gif"/}} 68 + #set($isMyProfile = ($services.model.resolveDocument($xcontext.user) == $doc.documentReference)) 69 + {{attachmentSelector classname="XWiki.XWikiUsers" object="$obj.number" property="avatar" #if ($isMyProfile) savemode="direct" #end defaultValue="XWiki.XWikiUserSheet@noavatar.png" width="180" alternateText="$xwiki.getUserName($doc.fullName, false)" buttontext="$services.localization.render('platform.core.profile.changePhoto')" displayImage="true" filter="png,jpg,jpeg,gif"/}} 69 69 #end 70 70 ))) 71 71 ##########
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -72,7 +72,7 @@ 72 72 73 73 updateField : function (fieldName, value) { 74 74 var element = $$('input[name=' + fieldName + ']'); 75 - if (element && element. length) {75 + if (element && element.size() > 0) { 76 76 element[0].value = value; 77 77 } 78 78 }, ... ... @@ -79,7 +79,7 @@ 79 79 80 80 handleCancelAction : function() { 81 81 var elements = $$('form .buttons input[type=submit][name=action_cancel]'); 82 - if (elements && elements. length) {82 + if (elements && elements.size() > 0) { 83 83 var button = elements[0]; 84 84 Event.stopObserving(button, 'click'); 85 85 button.observe('click', function(event){
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -12,7 +12,7 @@ 12 12 13 13 #avatar img { 14 14 border: 1px solid $theme.borderColor; 15 - border-radius: 8px8px8px8px;15 + border-radius: 5px 5px 5px 5px; 16 16 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); 17 17 margin: 0 auto; 18 18 padding: 0.3em; ... ... @@ -72,13 +72,13 @@ 72 72 margin-left: 14em; 73 73 } 74 74 75 -.column h1 ,.column h2{76 - font-weight: 77 - font-size: 78 - margin: 75 +.column h1 { 76 + font-weight:bold; 77 + font-size:115%; 78 + margin:10px 0; 79 79 } 80 80 81 -.column h 3{81 +.column h2 { 82 82 font-size: 110%; 83 83 } 84 84 ... ... @@ -96,7 +96,7 @@ 96 96 97 97 /* ----- Profile ----- */ 98 98 td.recentChangesLeft, .recentChangesMoreActions { 99 - display: 99 + display:none; 100 100 } 101 101 102 102 td.recentChangesRight { ... ... @@ -126,7 +126,6 @@ 126 126 .userInfo h2 { 127 127 font-size: larger; 128 128 font-weight: bolder; 129 - margin-top: 10px; 130 130 } 131 131 132 132 div.userInfo input[type="text"], div.userInfo input[type="password"], div.userInfo textarea, div.userInfo select, div.userPreferences select { ... ... @@ -134,9 +134,15 @@ 134 134 } 135 135 136 136 div.editProfileCategory { 137 - float: 136 + float:right; 138 138 } 139 139 139 +div.editProfileCategory a { 140 + display:block; 141 + width: 16px; 142 + height: 16px; 143 + background: url("$xwiki.getSkinFile('icons/silk/pencil.png')") no-repeat; 144 +} 140 140 141 141 /* Watchlist */ 142 142 ... ... @@ -147,9 +147,9 @@ 147 147 } 148 148 149 149 span#avatarUpload { 150 - display: 151 - width: 152 - position: 155 + display:block; 156 + width:$tabswidth; 157 + position:absolute; 153 153 font-size: 10px; 154 154 font-weight: bold; 155 155 background-color: white; ... ... @@ -164,35 +164,28 @@ 164 164 margin: 0; 165 165 padding: 0; 166 166 } 167 - 168 168 #networkPane .following li { 169 169 padding: 2px 20px 2px 2px; 170 170 } 171 - 172 172 #networkPane .following li:hover { 173 173 background-color: $theme.highlightColor; 174 174 } 175 - 176 176 #networkPane .following img { 177 177 float: left; 178 178 margin-right: 5px; 179 179 } 180 - 181 181 #networkPane .following .user-info { 182 182 float: left; 183 183 } 184 - 185 185 #networkPane .following .user-id { 186 186 font-size: .8em; 187 187 font-weight: 900; 188 188 } 189 - 190 190 #networkPane .following .unfollow { 191 191 float: right; 192 192 margin-right: -16px; 193 193 padding: 0; 194 194 } 195 - 196 196 ## -------------------------------------- 197 197 ## Picker style 198 198 .attachment-picker { ... ... @@ -200,7 +200,6 @@ 200 200 margin: auto; 201 201 width: 100%; 202 202 } 203 - 204 204 .attachment-picker p { 205 205 padding: 0; 206 206 margin: 0; ... ... @@ -209,7 +209,6 @@ 209 209 .attachment-picker .picture { 210 210 z-index: -1; 211 211 } 212 - 213 213 .attachment-picker .buttonwrapper { 214 214 margin: 0; 215 215 } - Content Type
-
... ... @@ -1,1 +1,0 @@ 1 -LESS