Changes for page ユーザープロフィール
Last modified by Super Admin on 2026/03/22 00:39
From version
21.1
edited by Super Admin
on 2026/03/10 21:30
on 2026/03/10 21:30
Change comment:
There is no comment for this version
To version
28.1
edited by XWikiGuest
on 2026/03/18 03:51
on 2026/03/18 03:51
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +XWiki.XWikiGuest - Content
-
... ... @@ -88,9 +88,6 @@ 88 88 #elseif($profileUserRole == 'graduate') 89 89 <span class="badge badge-role-graduate"><svg class="ico" viewBox="0 0 24 24"><path d="M22 10l-10-5L2 10l10 5 10-5z"/><path d="M6 12v5c0 1.66 2.69 3 6 3s6-1.34 6-3v-5"/></svg> 卒業生</span> 90 90 #end 91 - #if($profileGrade && $profileGrade != '') 92 - <span class="badge badge-grade">$profileGrade</span> 93 - #end 94 94 #if($profileUserStatus == 'graduated') 95 95 <span class="badge badge-status-graduated"><svg class="ico" viewBox="0 0 24 24"><path d="M22 10l-10-5L2 10l10 5 10-5z"/><path d="M6 12v5c0 1.66 2.69 3 6 3s6-1.34 6-3v-5"/></svg> 卒業済み</span> 96 96 #elseif($profileUserStatus == 'on_leave') ... ... @@ -105,7 +105,7 @@ 105 105 106 106 {{html clean="false"}} 107 107 <div class="school-info-card"> 108 - <h2><svg class="ico" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> 公開情報</h2> 105 + <h2><span><svg class="ico" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> 公開情報</span></h2> 109 109 <table class="wiki-table school-info-table"> 110 110 <tr><th>表示名</th><td><strong>$profileDisplayName</strong></td></tr> 111 111 <tr><th>アカウント種別</th><td> ... ... @@ -127,9 +127,7 @@ 127 127 未公開 128 128 #end 129 129 </td></tr> 130 - #if($profileUserRole == 'student' && $profileGrade != '') 131 - <tr><th>学年</th><td>$profileGrade</td></tr> 132 - #end 127 + ## 学年はプライバシー保護のため公開プロフィールには表示しない 133 133 <tr><th>在籍状態</th><td> 134 134 #if($profileUserStatus == 'active')在籍中 135 135 #elseif($profileUserStatus == 'graduated')卒業済み ... ... @@ -144,7 +144,7 @@ 144 144 == このユーザーの投稿・編集履歴 == 145 145 146 146 {{velocity}} 147 -#set($query = $services.query.xwql("where doc.author = '${targetUser}'order by doc.date desc"))142 +#set($query = $services.query.xwql("where doc.author = :author order by doc.date desc").bindValue('author', $targetUser)) 148 148 #set($query = $query.setLimit(20)) 149 149 #set($results = $query.execute()) 150 150 ... ... @@ -152,7 +152,7 @@ 152 152 |=ページ|=日時 153 153 #foreach($docName in $results) 154 154 #set($actDoc = $xwiki.getDocument($docName)) 155 -|[[$actDoc.title>>$docName]]|$ xwiki.formatDate($actDoc.date,"yyyy/MM/dd HH:mm")150 +|[[$actDoc.title>>$docName]]|$datetool.format("yyyy/MM/dd HH:mm", $actDoc.date) 156 156 #end 157 157 #else 158 158 //このユーザーの公開投稿はまだありません。//