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

From version Icon 38.1 Icon
edited by Super Admin
on 2026/03/10 14:46
Change comment: There is no comment for this version
To version Icon 18.1 Icon
edited by Super Admin
on 2026/03/08 00:14
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -1,21 +1,10 @@
1 1  {{velocity}}
2 2  ## ===== 学校ページ テンプレート =====
3 -{{html clean="false"}}
4 -## メンテナンスバナー({{include}}ではなくインラインで記述し、<p>タグ挿入を回避)
5 -#set($bannerDoc = $xwiki.getDocument('SeitokaiAdmin.MaintenanceBanner'))
6 -#set($bannerObj = $bannerDoc.getObject('SeitokaiCode.MaintenanceBannerClass'))
7 -#if($bannerObj && $bannerObj.getValue('enabled') == 1)
8 -#set($bannerMsg = $bannerObj.getValue('message'))
9 -#set($bannerLevel = $bannerObj.getValue('level'))
10 -#if(!$bannerLevel || $bannerLevel == '')#set($bannerLevel = 'warning')#end
11 -<div class="maintenance-banner active maintenance-${bannerLevel}" id="maintenance-banner">
12 - <div class="maintenance-banner-inner">
13 - <span class="maintenance-icon">#if($bannerLevel == 'urgent')<svg class="ico-banner" viewBox="0 0 24 24"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>#elseif($bannerLevel == 'info')<svg class="ico-banner" 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>#else<svg class="ico-banner" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z"/></svg>#end</span>
14 - <span class="maintenance-text">$!escapetool.xml($bannerMsg)</span>
15 - <button class="maintenance-close" onclick="document.getElementById('maintenance-banner').style.display='none'">&times;</button>
16 - </div>
17 -</div>
18 -#end
3 +## このテンプレートは学校ページの表示と入力フォームを制御します。
4 +
5 +## メンテナンスバナー
6 +{{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}
7 +
19 19  ## --- 学校基本情報フィールド ---
20 20  #set($schoolCode = $doc.getValue('schoolCode'))
21 21  #set($schoolName = $doc.getValue('schoolName'))
... ... @@ -171,7 +171,7 @@
171 171  ## --- ユーザー情報取得 ---
172 172  ## displayName: Wiki上の表示名(ニックネーム)。本名(firstName/lastName)は管理者のみ閲覧可能。
173 173  #set($lastAuthor = $doc.author)
174 -#set($lastAuthorDoc = $xwiki.getDocument($lastAuthor))
163 +#set($lastAuthorDoc = $xwiki.getDocument("XWiki.${lastAuthor}"))
175 175  #set($authorAccountType = '')
176 176  #set($authorUserRole = '')
177 177  #set($authorUserStatus = '')
... ... @@ -185,8 +185,7 @@
185 185   #set($authorEnrollmentYear = $!lastAuthorDoc.getValue('enrollmentYear'))
186 186   #set($authorDisplayName = $!lastAuthorDoc.getValue('displayName'))
187 187   #if(!$authorDisplayName || $authorDisplayName == '')
188 - ## false引数でプレーンテキスト(HTMLリンクなし)を取得
189 - #set($authorDisplayName = $xwiki.getUserName($doc.author, false))
177 + #set($authorDisplayName = $xwiki.getUserName($doc.author))
190 190   #end
191 191   ## --- 学年の動的計算(学校種別対応) ---
192 192   ## 日本の学校年度: 4月始まり。currentSchoolYear = (月>=4) ? 今年 : 去年
... ... @@ -224,26 +224,52 @@
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 -
233 -## --- 編集ボタン(権限があるユーザーのみ表示) ---
234 -#set($canEditSchool = false)
235 -#if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode))
236 - #set($canEditSchool = true)
237 -#end
238 -#if($canEditSchool)
239 -<div style="text-align:right; margin-bottom:12px;">
240 - <a href="$doc.getURL('view', 'sheet=SeitokaiCode.SchoolEditForm')" class="btn-school-edit"><svg class="ico" viewBox="0 0 24 24"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg> 基本情報を編集</a>
215 +## --- 信頼性バッジ + ユーザー情報 ---
216 +{{html clean="false"}}
217 +<div class="seitokai-badge-container">
218 + ## 承認バッジ
219 + #if($authorAccountType == 'admin')
220 + <span class="badge badge-admin"><svg class="ico" viewBox="0 0 24 24"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg> 管理者</span>
221 + #elseif($authorAccountType == 'verified')
222 + <span class="badge badge-verified"><svg class="ico" viewBox="0 0 24 24" stroke-width="2.5"><path d="M20 6L9 17l-5-5"/></svg> 承認済み</span>
223 + #elseif($authorAccountType == 'referred')
224 + <span class="badge badge-referred"><svg class="ico" viewBox="0 0 24 24"><path d="M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71"/></svg> 紹介</span>
225 + #else
226 + <span class="badge badge-general">一般</span>
227 + #end
228 + ## 役割バッジ
229 + #if($authorUserRole == 'student')
230 + <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>
231 + #set($authorIsOfficer = $!lastAuthorDoc.getValue('isOfficer'))
232 + #if($authorIsOfficer == 'true')
233 + <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>
234 + #end
235 + #elseif($authorUserRole == 'teacher')
236 + <span class="badge badge-role-teacher"><svg class="ico" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/></svg> 教員</span>
237 + #elseif($authorUserRole == 'graduate')
238 + <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>
239 + #end
240 + ## 学年(生徒のみ公開)
241 + #if($authorGrade && $authorGrade != '')
242 + <span class="badge badge-grade">$authorGrade</span>
243 + #end
244 + ## 在籍状態(卒業・休学等の場合のみ表示)
245 + #if($authorUserStatus == 'graduated')
246 + <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>
247 + #elseif($authorUserStatus == 'on_leave')
248 + <span class="badge badge-status-onleave"><svg class="ico" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="4" width="4" height="16" rx="1"/><rect x="14" y="4" width="4" height="16" rx="1"/></svg> 休学中</span>
249 + #elseif($authorUserStatus == 'transferred')
250 + <span class="badge badge-status-transferred"><svg class="ico" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"/></svg> 転校済み</span>
251 + #end
252 + <span class="badge-info">最終編集: $!escapetool.xml($authorDisplayName) ($xwiki.formatDate($doc.date, "yyyy/MM/dd"))</span>
241 241  </div>
242 -#end
254 +{{/html}}
243 243  
256 +{{html clean="false"}}
257 +
244 244  ## --- ① 学校基本情報 + 連絡先(左右グリッド・折りたたみ対応) ---
245 245  <div class="school-info-grid">
246 - <div class="school-info-card collapsed" id="card-basic-info">
260 + <div class="school-info-card mobile-collapse" id="card-basic-info">
247 247   <h2 onclick="toggleInfoCard('card-basic-info')"><span><svg class="ico ico-md" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/></svg> 学校基本情報</span><span class="collapse-toggle"><span class="collapse-label-open">たたむ</span><span class="collapse-label-closed">開く</span> <span class="collapse-arrow">▼</span></span></h2>
248 248   <table class="wiki-table school-info-table">
249 249   <tr><th>学校コード</th><td>$!escapetool.xml($!schoolCode)</td></tr>
... ... @@ -253,7 +253,7 @@
253 253   <tr><th>共学・別学</th><td>$!escapetool.xml($!coeducation)</td></tr>
254 254   <tr><th>設置者</th><td>$!escapetool.xml($!establishment)</td></tr>
255 255   <tr><th>学校種</th><td>$!escapetool.xml($!schoolLevel)</td></tr>
256 - <tr><th>課程</th><td>#if($schoolSystem && $schoolSystem != '' && $schoolSystem != '[]')$!escapetool.xml($!schoolSystem)#end</td></tr>
270 + <tr><th>課程</th><td>$!escapetool.xml($!schoolSystem)</td></tr>
257 257   <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>
258 258   </table>
259 259   #set($infoEditDate = $!doc.getValue('lastInfoEditedDate'))
... ... @@ -263,7 +263,7 @@
263 263   #end
264 264   </div>
265 265  
266 - <div class="school-info-card collapsed" id="card-contact">
280 + <div class="school-info-card mobile-collapse" id="card-contact">
267 267   <h2 onclick="toggleInfoCard('card-contact')"><span><svg class="ico ico-md" viewBox="0 0 24 24"><path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z"/></svg> 連絡先・SNS</span><span class="collapse-toggle"><span class="collapse-label-open">たたむ</span><span class="collapse-label-closed">開く</span> <span class="collapse-arrow">▼</span></span></h2>
268 268   <table class="wiki-table school-info-table">
269 269   <tr><th>問い合わせ先</th><td>#if($contactInfo && $contactInfo != '')$!escapetool.xml($contactInfo)#else<span class="text-placeholder">未登録</span>#end</td></tr>
... ... @@ -532,12 +532,6 @@
532 532   <span class="author-legend-item"><span class="badge badge-school-external badge-sm"><svg class="ico" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg> 他校</span> 他校所属</span>
533 533   <span class="author-legend-item text-hint">※一般アカウントは所属未確認のため非表示</span>
534 534   </div>
535 - <div class="author-legend">
536 - <span class="author-legend-title">役割:</span>
537 - <span class="author-legend-item"><span class="badge badge-role-student badge-sm"><svg class="ico" viewBox="0 0 24 24"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c0 2 4 3 6 3s6-1 6-3v-5"/></svg> 生徒</span></span>
538 - <span class="author-legend-item"><span class="badge badge-role-officer badge-sm"><svg class="ico" viewBox="0 0 24 24"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> 役員</span></span>
539 - <span class="author-legend-item"><span class="badge badge-role-teacher badge-sm"><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></span>
540 - </div>
541 541   </div>
542 542  </div>
543 543  
... ... @@ -617,17 +617,6 @@
617 617   #set($threadPosts = [])
618 618   #set($discard = $threadPosts.addAll($pinnedPosts))
619 619   #set($discard = $threadPosts.addAll($normalPosts))
620 - ## report/comment カウント
621 - #set($reportCount = 0)
622 - #set($commentCount = 0)
623 - #foreach($tp in $threadPosts)
624 - #set($tpType = $!tp.getValue('postType'))
625 - #if($tpType == 'comment')
626 - #set($commentCount = $commentCount + 1)
627 - #else
628 - #set($reportCount = $reportCount + 1)
629 - #end
630 - #end
631 631  
632 632  {{html clean="false"}}
633 633  <div class="activity-thread" data-fiscal-year="$!escapetool.xml($actFY)">
... ... @@ -637,7 +637,7 @@
637 637   <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span>
638 638   </div>
639 639   <div class="thread-meta-row">
640 - <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span>
637 + <span class="thread-post-count">${threadPosts.size()}件の投稿</span>
641 641   #if($viewerAccountType == 'admin' || $viewerAccountType == 'verified' || $viewerAccountType == 'referred')
642 642   #if($actFeatured == '1')
643 643   <a href="$doc.getURL('view', "action=unfeature&actObj=${actIdx}&form_token=${services.csrf.getToken()}")" class="btn-featured-toggle btn-unfeature" title="特色ある活動の選定を解除"><svg class="ico ico-fixed-14" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> 特色解除</a>
... ... @@ -648,10 +648,7 @@
648 648   </div>
649 649   </div>
650 650  
651 - ## --- 活動報告セクション ---
652 652   #foreach($post in $threadPosts)
653 - #set($thisPostType = $!post.getValue('postType'))
654 - #if($thisPostType != 'comment')
655 655   #set($postContent = $post.getValue('content'))
656 656   #set($postAuthor = $post.getValue('author'))
657 657   #set($postAccountType = $!post.getValue('authorAccountType'))
... ... @@ -873,52 +873,14 @@
873 873   #end## /canViewPost
874 874   #end## /postHidden
875 875   #end## /postDeleted
876 - #end## /postType != comment
877 - #end## /foreach reports
878 -
879 - ## --- コメントセクション(折りたたみ) ---
880 - #if($commentCount > 0)
881 - <details class="thread-comments-section">
882 - <summary class="thread-comments-toggle">
883 - <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> ${commentCount}件のコメント
884 - </summary>
885 - #foreach($post in $threadPosts)
886 - #set($thisPostType = $!post.getValue('postType'))
887 - #if($thisPostType == 'comment')
888 - #set($postContent = $post.getValue('content'))
889 - #set($postAuthor = $post.getValue('author'))
890 - #set($postAccountType = $!post.getValue('authorAccountType'))
891 - #set($postDate = $post.getValue('createdDate'))
892 - #set($postDeleted = $!post.getValue('deleted'))
893 - #if($postDeleted == 1 || $postDeleted == '1')
894 - <div class="thread-comment thread-comment-deleted">
895 - <span class="thread-comment-meta">このコメントは削除されました</span>
896 - </div>
897 - #else
898 - #set($postHidden = $!post.getValue('hidden'))
899 - #if($postHidden == 1 || $postHidden == '1')
900 - <div class="thread-comment thread-comment-hidden">
901 - <span class="thread-comment-meta">このコメントは非表示にされました</span>
902 - </div>
903 - #else
904 - <div class="thread-comment">
905 - <span class="thread-comment-author">$!escapetool.xml($postAuthor)</span>
906 - <span class="thread-comment-date">$!postDate</span>
907 - <div class="thread-comment-body">$!escapetool.xml($postContent)</div>
908 - </div>
909 - #end
910 - #end
911 - #end
912 - #end
913 - </details>
914 914   #end
915 915  
916 916   #if($xcontext.user != "XWiki.XWikiGuest")
917 917   <div class="thread-add-post">
918 - <a href="/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add">
874 + <a href="/xwiki/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add">
919 919   + 活動報告を追加
920 920   </a>
921 - <a href="/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment">
877 + <a href="/xwiki/bin/view/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment">
922 922   <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> コメントを書く
923 923   </a>
924 924   </div>
... ... @@ -940,7 +940,7 @@
940 940  #if($xcontext.user != "XWiki.XWikiGuest")
941 941  {{html clean="false"}}
942 942  <div class="activity-add-section">
943 - <a href="/bin/view/SeitokaiCode/ActivityForm?schoolPage=${doc.fullName}&schoolCode=$!escapetool.url($schoolCode)" class="btn btn-primary btn-add-activity">
899 + <a href="/xwiki/bin/view/SeitokaiCode/ActivityForm?schoolPage=${doc.fullName}&schoolCode=$!escapetool.url($schoolCode)" class="btn btn-primary btn-add-activity">
944 944   <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> 活動を追加
945 945   </a>
946 946  </div>
... ... @@ -990,7 +990,7 @@
990 990   ## 新年度に移行ボタン(承認済み・管理者のみ)
991 991   #if($viewerAccountType == 'admin' || $viewerAccountType == 'verified')
992 992   <div class="archive-action">
993 - <a href="/bin/view/SeitokaiCode/YearArchiveAction?schoolPage=${doc.fullName}" class="btn-accent">
949 + <a href="/xwiki/bin/view/SeitokaiCode/YearArchiveAction?schoolPage=${doc.fullName}" class="btn-accent">
994 994   <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>
995 995   ${pageFiscalYear}年度をアーカイブして新年度に移行
996 996   </a>
... ... @@ -1009,18 +1009,25 @@
1009 1009   btn.classList.add('active');
1010 1010   // 活動スレッドの表示切り替え
1011 1011   document.querySelectorAll('.activity-thread[data-fiscal-year]').forEach(function(thread) {
1012 - if (fy === 'all' || thread.getAttribute('data-fiscal-year') === fy) {
1013 - thread.classList.remove('fy-hidden');
968 + if (fy === 'all') {
969 + thread.style.display = '';
970 + } else if (thread.getAttribute('data-fiscal-year') === fy) {
971 + thread.style.display = '';
1014 1014   } else {
1015 - thread.classList.add('fy-hidden');
973 + thread.style.display = 'none';
1016 1016   }
1017 1017   });
1018 1018  }
1019 -// ページ読み込み時の初期化
977 +// ページ読み込み時にデフォルトで現在年度を表示
1020 1020  document.addEventListener('DOMContentLoaded', function() {
1021 - // デフォルトで現在の年度を表示
1022 1022   var defaultTab = document.querySelector('.activity-fy-tab.active');
1023 1023   if (defaultTab) { defaultTab.click(); }
981 + // モバイルでは基本情報・連絡先をデフォルト折りたたみ
982 + if (window.innerWidth <= 768) {
983 + document.querySelectorAll('.school-info-card.mobile-collapse').forEach(function(card) {
984 + card.classList.add('collapsed');
985 + });
986 + }
1024 1024   // 保存成功時のトースト通知
1025 1025   if (window.location.search.indexOf('archived=1') !== -1) {
1026 1026   showToast('年度アーカイブを作成しました', 'success');
... ... @@ -1060,6 +1060,7 @@
1060 1060   var card = document.getElementById(cardId);
1061 1061   if (!card) return;
1062 1062   card.classList.toggle('collapsed');
1026 + card.classList.remove('mobile-collapse');
1063 1063  }
1064 1064  
1065 1065  // 投稿の編集(インライン編集フォームを開く)
... ... @@ -1091,7 +1091,7 @@
1091 1091   var csrfEl = document.querySelector('input[name="form_token"]');
1092 1092   var csrfToken = csrfEl ? csrfEl.value : '';
1093 1093   var xhr = new XMLHttpRequest();
1094 - xhr.open('GET', '/bin/view/SeitokaiCode/EditPost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken), true);
1058 + xhr.open('GET', '/xwiki/bin/view/SeitokaiCode/EditPost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken), true);
1095 1095   xhr.onload = function() {
1096 1096   try {
1097 1097   var res = JSON.parse(xhr.responseText);
... ... @@ -1111,7 +1111,7 @@
1111 1111  function confirmDeletePost(schoolPage, postObjNum, token) {
1112 1112   if (!confirm('この投稿を削除しますか?\\n削除後は「この投稿は削除されました」と表示されます。')) return;
1113 1113   var xhr = new XMLHttpRequest();
1114 - xhr.open('GET', '/bin/view/SeitokaiCode/DeletePost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token), true);
1078 + xhr.open('GET', '/xwiki/bin/view/SeitokaiCode/DeletePost?outputSyntax=plain&schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token), true);
1115 1115   xhr.onload = function() {
1116 1116   try {
1117 1117   var res = JSON.parse(xhr.responseText);