Changes for page Profile of XWikiUserSheet
Last modified by Ludovic Dubost on 2024/07/22 15:51
From version 9.1
edited by Ludovic Dubost
on 2020/07/30 11:17
on 2020/07/30 11:17
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-profile-ui/12.3]
To 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]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -65,8 +65,7 @@ 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 - #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"/}} 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"/}} 70 70 #end 71 71 ))) 72 72 ##########
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -63,7 +63,7 @@ 63 63 if (history.pushState) { 64 64 var params = window.location.search.toQueryParams(); 65 65 params.category = category; 66 - newQueryString = Object.toQueryString(params); 66 + var newQueryString = Object.toQueryString(params); 67 67 68 68 var newURL = window.location.protocol + '//' + window.location.host + window.location.pathname + '?' + newQueryString; 69 69 window.history.pushState({category : category}, '', newURL); ... ... @@ -72,7 +72,7 @@ 72 72 73 73 updateField : function (fieldName, value) { 74 74 var element = $$('input[name=' + fieldName + ']'); 75 - if (element && element. size()> 0){75 + if (element && element.length) { 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. size()> 0){82 + if (elements && elements.length) { 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: 5px5px5px5px;15 + border-radius: 8px 8px 8px 8px; 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 { 76 - font-weight:bold; 77 - font-size:115%; 78 - margin:10px 0; 75 +.column h1, .column h2 { 76 + font-weight: bold; 77 + font-size: 115%; 78 + margin: 10px 0; 79 79 } 80 80 81 -.column h 2{81 +.column h3 { 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:none; 99 + display: none; 100 100 } 101 101 102 102 td.recentChangesRight { ... ... @@ -115,10 +115,6 @@ 115 115 background-color: $theme.backgroundSecondaryColor; 116 116 } 117 117 118 -.userInfo { 119 - -ms-word-break: break-all; /* IE8, IE9 */ 120 -} 121 - 122 122 .userInfo a { 123 123 word-wrap: break-word; 124 124 } ... ... @@ -130,6 +130,7 @@ 130 130 .userInfo h2 { 131 131 font-size: larger; 132 132 font-weight: bolder; 129 + margin-top: 10px; 133 133 } 134 134 135 135 div.userInfo input[type="text"], div.userInfo input[type="password"], div.userInfo textarea, div.userInfo select, div.userPreferences select { ... ... @@ -137,15 +137,9 @@ 137 137 } 138 138 139 139 div.editProfileCategory { 140 - float:right; 137 + float: right; 141 141 } 142 142 143 -div.editProfileCategory a { 144 - display:block; 145 - width: 16px; 146 - height: 16px; 147 - background: url("$xwiki.getSkinFile('icons/silk/pencil.png')") no-repeat; 148 -} 149 149 150 150 /* Watchlist */ 151 151 ... ... @@ -156,9 +156,9 @@ 156 156 } 157 157 158 158 span#avatarUpload { 159 - display:block; 160 - width:$tabswidth; 161 - position:absolute; 150 + display: block; 151 + width: $tabswidth; 152 + position: absolute; 162 162 font-size: 10px; 163 163 font-weight: bold; 164 164 background-color: white; ... ... @@ -173,28 +173,35 @@ 173 173 margin: 0; 174 174 padding: 0; 175 175 } 167 + 176 176 #networkPane .following li { 177 177 padding: 2px 20px 2px 2px; 178 178 } 171 + 179 179 #networkPane .following li:hover { 180 180 background-color: $theme.highlightColor; 181 181 } 175 + 182 182 #networkPane .following img { 183 183 float: left; 184 184 margin-right: 5px; 185 185 } 180 + 186 186 #networkPane .following .user-info { 187 187 float: left; 188 188 } 184 + 189 189 #networkPane .following .user-id { 190 190 font-size: .8em; 191 191 font-weight: 900; 192 192 } 189 + 193 193 #networkPane .following .unfollow { 194 194 float: right; 195 195 margin-right: -16px; 196 196 padding: 0; 197 197 } 195 + 198 198 ## -------------------------------------- 199 199 ## Picker style 200 200 .attachment-picker { ... ... @@ -202,6 +202,7 @@ 202 202 margin: auto; 203 203 width: 100%; 204 204 } 203 + 205 205 .attachment-picker p { 206 206 padding: 0; 207 207 margin: 0; ... ... @@ -210,6 +210,7 @@ 210 210 .attachment-picker .picture { 211 211 z-index: -1; 212 212 } 212 + 213 213 .attachment-picker .buttonwrapper { 214 214 margin: 0; 215 215 } - Content Type
-
... ... @@ -1,0 +1,1 @@ 1 +LESS