Last modified by Super Admin on 2026/04/05 18:59

From version Icon 37.1 Icon
edited by Super Admin
on 2026/03/10 14:41
Change comment: There is no comment for this version
To version Icon 35.1 Icon
edited by Super Admin
on 2026/03/10 14:36
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -224,12 +224,6 @@
224 224   #end
225 225  #end
226 226  
227 -## --- 学校名見出し(XWikiデフォルトタイトルを非表示にし、学校名を表示) ---
228 -#if($schoolName && $schoolName != '')
229 -<style>#document-title { display: none; }</style>
230 -<h1 class="school-page-title">$!escapetool.xml($schoolName)</h1>
231 -#end
232 -
233 233  ## --- 編集ボタン(権限があるユーザーのみ表示) ---
234 234  #set($canEditSchool = false)
235 235  #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode))
... ... @@ -1018,6 +1018,10 @@
1018 1018  }
1019 1019  // ページ読み込み時の初期化
1020 1020  document.addEventListener('DOMContentLoaded', function() {
1015 + // ページタイトルを学校名に置換(デフォルトでは学校コードが表示されるため)
1016 + var titleEl = document.querySelector('#document-title h1');
1017 + var schoolNameVal = "$!escapetool.javascript($!schoolName)";
1018 + if (titleEl && schoolNameVal) { titleEl.textContent = schoolNameVal; }
1021 1021   // デフォルトで現在の年度を表示
1022 1022   var defaultTab = document.querySelector('.activity-fy-tab.active');
1023 1023   if (defaultTab) { defaultTab.click(); }