Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
60.1
edited by Super Admin
on 2026/03/17 15:14
on 2026/03/17 15:14
Change comment:
There is no comment for this version
To version
63.1
edited by XWikiGuest
on 2026/03/18 03:51
on 2026/03/18 03:51
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +XWiki.XWikiGuest - Content
-
... ... @@ -665,11 +665,10 @@ 665 665 <div class="activity-thread-title"> 666 666 <h3 #if($actFeatured == '1')class="featured-title"#end>$!escapetool.xml($!actTitle) #if($actFeatured == '1')<svg class="ico ico-fixed-14 ico-star-offset" 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>#end</h3> 667 667 <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span> 668 - #set($actTagsStr = $!activity.getValue('tags')) 669 - #if($actTagsStr && $actTagsStr.trim() != '') 670 - #foreach($tagItem in $actTagsStr.split(',')) 671 - #set($tagTrimmed = $tagItem.trim()) 672 - #if($tagTrimmed != '')<span class="activity-tag-badge">$escapetool.xml($tagTrimmed)</span>#end 668 + #set($actTagsList = $activity.getValue('tags')) 669 + #if($actTagsList && !$actTagsList.isEmpty()) 670 + #foreach($tagItem in $actTagsList) 671 + #if($tagItem && $tagItem.trim() != '')<span class="activity-tag-badge">$escapetool.xml($tagItem)</span>#end 673 673 #end 674 674 #end 675 675 </div> ... ... @@ -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('POST', '/bin/SeitokaiCode/EditPost?outputSyntax=plain', true); 1093 + xhr.open('POST', '/bin/get/SeitokaiCode/EditPost?outputSyntax=plain', true); 1095 1095 xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 1096 1096 var editPostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken); 1097 1097 xhr.onload = function() { ... ... @@ -1113,7 +1113,7 @@ 1113 1113 function confirmDeletePost(schoolPage, postObjNum, token) { 1114 1114 if (!confirm('この投稿を削除しますか?\\n削除後は「この投稿は削除されました」と表示されます。')) return; 1115 1115 var xhr = new XMLHttpRequest(); 1116 - xhr.open('POST', '/bin/SeitokaiCode/DeletePost?outputSyntax=plain', true); 1115 + xhr.open('POST', '/bin/get/SeitokaiCode/DeletePost?outputSyntax=plain', true); 1117 1117 xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 1118 1118 var deletePostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token); 1119 1119 xhr.onload = function() {