Last modified by Super Admin on 2026/03/22 00:39

From version Icon 30.1 Icon
edited by Super Admin
on 2026/03/18 18:45
Change comment: There is no comment for this version
To version Icon 18.1 Icon
edited by Super Admin
on 2026/03/08 18:52
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -79,7 +79,7 @@
79 79   #end
80 80   #if($profileUserRole == 'student')
81 81   <span class="badge badge-role-student"><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>
82 - #set($profileIsOfficer = $!targetDoc.getValue('isOfficer'))
82 + #set($profileIsOfficer = $!profileUserDoc.getValue('isOfficer'))
83 83   #if($profileIsOfficer == 'true')
84 84   <span class="badge badge-role-officer"><svg class="ico" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg> 役員</span>
85 85   #end
... ... @@ -88,6 +88,9 @@
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
91 91   #if($profileUserStatus == 'graduated')
92 92   <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>
93 93   #elseif($profileUserStatus == 'on_leave')
... ... @@ -102,7 +102,7 @@
102 102  
103 103  {{html clean="false"}}
104 104  <div class="school-info-card">
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>
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>
106 106   <table class="wiki-table school-info-table">
107 107   <tr><th>表示名</th><td><strong>$profileDisplayName</strong></td></tr>
108 108   <tr><th>アカウント種別</th><td>
... ... @@ -119,12 +119,14 @@
119 119   </td></tr>
120 120   <tr><th>所属校</th><td>
121 121   #if($profileSchoolCode && $profileSchoolCode != '')
122 - <a href="/bin/Schools/${profileSchoolCode}/WebHome">$!profileSchoolName</a>
125 + <a href="/bin/view/Schools/${profileSchoolCode}/WebHome">$!profileSchoolName</a>
123 123   #else
124 124   未公開
125 125   #end
126 126   </td></tr>
127 - ## 学年はプライバシー保護のため公開プロフィールには表示しない
130 + #if($profileUserRole == 'student' && $profileGrade != '')
131 + <tr><th>学年</th><td>$profileGrade</td></tr>
132 + #end
128 128   <tr><th>在籍状態</th><td>
129 129   #if($profileUserStatus == 'active')在籍中
130 130   #elseif($profileUserStatus == 'graduated')卒業済み
... ... @@ -136,6 +136,24 @@
136 136  </div>
137 137  {{/html}}
138 138  
144 +== このユーザーの投稿・編集履歴 ==
145 +
146 +{{velocity}}
147 +#set($query = $services.query.xwql("where doc.author = '${targetUser}' order by doc.date desc"))
148 +#set($query = $query.setLimit(20))
149 +#set($results = $query.execute())
150 +
151 +#if($results.size() > 0)
152 +|=ページ|=日時
153 +#foreach($docName in $results)
154 + #set($actDoc = $xwiki.getDocument($docName))
155 +|[[$actDoc.title>>$docName]]|$xwiki.formatDate($actDoc.date, "yyyy/MM/dd HH:mm")
156 +#end
157 +#else
158 +//このユーザーの公開投稿はまだありません。//
159 +#end
160 +{{/velocity}}
161 +
139 139  {{html clean="false"}}
140 140  <div class="info-note info-note-lg" style="margin-top:24px;text-align:center;">
141 141   <svg class="ico" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg> 本名・メールアドレス・警告状態などの個人情報は非公開です