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

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

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +XWiki.XWikiGuest
Content
... ... @@ -224,6 +224,12 @@
224 224   #end
225 225  #end
226 226  
227 +## --- 学校名見出し(XWikiデフォルトタイトルを非表示にし、学校名を表示) ---
228 +#if($schoolName && $schoolName != '')
229 +<style>.document-header { display: none !important; }</style>
230 +<h1 class="school-page-title">$!escapetool.xml($schoolName)</h1>
231 +#end
232 +
227 227  ## --- 編集ボタン(権限があるユーザーのみ表示) ---
228 228  #set($canEditSchool = false)
229 229  #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode))
... ... @@ -909,10 +909,10 @@
909 909  
910 910   #if($xcontext.user != "XWiki.XWikiGuest")
911 911   <div class="thread-add-post">
912 - <a href="/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add">
918 + <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add">
913 913   + 活動報告を追加
914 914   </a>
915 - <a href="/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment">
921 + <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment">
916 916   <svg class="ico" viewBox="0 0 24 24"><path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/></svg> コメントを書く
917 917   </a>
918 918   </div>
... ... @@ -934,7 +934,7 @@
934 934  #if($xcontext.user != "XWiki.XWikiGuest")
935 935  {{html clean="false"}}
936 936  <div class="activity-add-section">
937 - <a href="/bin/view/SeitokaiCode/ActivityForm?schoolPage=${doc.fullName}&schoolCode=$!escapetool.url($schoolCode)" class="btn btn-primary btn-add-activity">
943 + <a href="/bin/SeitokaiCode/ActivityForm?schoolPage=${doc.fullName}&schoolCode=$!escapetool.url($schoolCode)" class="btn btn-primary btn-add-activity">
938 938   <svg class="ico" viewBox="0 0 24 24" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> 活動を追加
939 939   </a>
940 940  </div>
... ... @@ -984,7 +984,7 @@
984 984   ## 新年度に移行ボタン(承認済み・管理者のみ)
985 985   #if($viewerAccountType == 'admin' || $viewerAccountType == 'verified')
986 986   <div class="archive-action">
987 - <a href="/bin/view/SeitokaiCode/YearArchiveAction?schoolPage=${doc.fullName}" class="btn-accent">
993 + <a href="/bin/SeitokaiCode/YearArchiveAction?schoolPage=${doc.fullName}" class="btn-accent">
988 988   <svg class="ico" viewBox="0 0 24 24" stroke-width="2.5"><path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/></svg>
989 989   ${pageFiscalYear}年度をアーカイブして新年度に移行
990 990   </a>
... ... @@ -1012,10 +1012,6 @@
1012 1012  }
1013 1013  // ページ読み込み時の初期化
1014 1014  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; }
1019 1019   // デフォルトで現在の年度を表示
1020 1020   var defaultTab = document.querySelector('.activity-fy-tab.active');
1021 1021   if (defaultTab) { defaultTab.click(); }
... ... @@ -1089,7 +1089,7 @@
1089 1089   var csrfEl = document.querySelector('input[name="form_token"]');
1090 1090   var csrfToken = csrfEl ? csrfEl.value : '';
1091 1091   var xhr = new XMLHttpRequest();
1092 - xhr.open('GET', '/bin/view/SeitokaiCode/EditPost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken), true);
1094 + xhr.open('GET', '/bin/SeitokaiCode/EditPost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken), true);
1093 1093   xhr.onload = function() {
1094 1094   try {
1095 1095   var res = JSON.parse(xhr.responseText);
... ... @@ -1109,7 +1109,7 @@
1109 1109  function confirmDeletePost(schoolPage, postObjNum, token) {
1110 1110   if (!confirm('この投稿を削除しますか?\\n削除後は「この投稿は削除されました」と表示されます。')) return;
1111 1111   var xhr = new XMLHttpRequest();
1112 - xhr.open('GET', '/bin/view/SeitokaiCode/DeletePost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token), true);
1114 + xhr.open('GET', '/bin/SeitokaiCode/DeletePost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token), true);
1113 1113   xhr.onload = function() {
1114 1114   try {
1115 1115   var res = JSON.parse(xhr.responseText);