Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
26.1
edited by Super Admin
on 2026/03/09 12:38
on 2026/03/09 12:38
Change comment:
There is no comment for this version
To version
24.1
edited by Super Admin
on 2026/03/09 12:10
on 2026/03/09 12:10
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -3,7 +3,8 @@ 3 3 ## このテンプレートは学校ページの表示と入力フォームを制御します。 4 4 5 5 ## メンテナンスバナー 6 -{{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}{{html clean="false"}} 6 +{{include reference="SeitokaiCode.MaintenanceBannerInclude" /}} 7 + 7 7 ## --- 学校基本情報フィールド --- 8 8 #set($schoolCode = $doc.getValue('schoolCode')) 9 9 #set($schoolName = $doc.getValue('schoolName')) ... ... @@ -173,8 +173,7 @@ 173 173 #set($authorEnrollmentYear = $!lastAuthorDoc.getValue('enrollmentYear')) 174 174 #set($authorDisplayName = $!lastAuthorDoc.getValue('displayName')) 175 175 #if(!$authorDisplayName || $authorDisplayName == '') 176 - ## false引数でプレーンテキスト(HTMLリンクなし)を取得 177 - #set($authorDisplayName = $xwiki.getUserName($doc.author, false)) 177 + #set($authorDisplayName = $xwiki.getUserName($doc.author)) 178 178 #end 179 179 ## --- 学年の動的計算(学校種別対応) --- 180 180 ## 日本の学校年度: 4月始まり。currentSchoolYear = (月>=4) ? 今年 : 去年 ... ... @@ -213,6 +213,7 @@ 213 213 #end 214 214 215 215 ## --- 信頼性バッジ + ユーザー情報 --- 216 +{{html clean="false"}} 216 216 <div class="seitokai-badge-container"> 217 217 ## 承認バッジ 218 218 #if($authorAccountType == 'admin') ... ... @@ -250,7 +250,10 @@ 250 250 #end 251 251 <span class="badge-info">最終編集: $!escapetool.xml($authorDisplayName) ($xwiki.formatDate($doc.date, "yyyy/MM/dd"))</span> 252 252 </div> 254 +{{/html}} 253 253 256 +{{html clean="false"}} 257 + 254 254 ## --- ① 学校基本情報 + 連絡先(左右グリッド・折りたたみ対応) --- 255 255 <div class="school-info-grid"> 256 256 <div class="school-info-card mobile-collapse" id="card-basic-info"> ... ... @@ -263,7 +263,7 @@ 263 263 <tr><th>共学・別学</th><td>$!escapetool.xml($!coeducation)</td></tr> 264 264 <tr><th>設置者</th><td>$!escapetool.xml($!establishment)</td></tr> 265 265 <tr><th>学校種</th><td>$!escapetool.xml($!schoolLevel)</td></tr> 266 - <tr><th>課程</th><td> #if($schoolSystem && $schoolSystem!= '' && $schoolSystem != '[]')$!escapetool.xml($!schoolSystem)#end</td></tr>270 + <tr><th>課程</th><td>$!escapetool.xml($!schoolSystem)</td></tr> 267 267 <tr><th>公式サイト</th><td>#if($website && $website != '')<a href="$!escapetool.xml($website)" target="_blank" rel="noopener">$!escapetool.xml($website)</a>#else<span class="text-placeholder">未登録</span>#end</td></tr> 268 268 </table> 269 269 #set($infoEditDate = $!doc.getValue('lastInfoEditedDate'))