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

From version Icon 56.1 Icon
edited by Super Admin
on 2026/03/15 16:10
Change comment: There is no comment for this version
To version Icon 63.1 Icon
edited by XWikiGuest
on 2026/03/18 03:51
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
... ... @@ -665,6 +665,12 @@
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($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
672 + #end
673 + #end
668 668   </div>
669 669   <div class="thread-meta-row">
670 670   <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span>
... ... @@ -1003,6 +1003,25 @@
1003 1003   window.history.replaceState({}, document.title, window.location.pathname);
1004 1004   }
1005 1005   }
1012 + // 長文投稿の折りたたみ初期化
1013 + document.querySelectorAll('.thread-post-body').forEach(function(body) {
1014 + // 先にtruncatedを仮適用してline-clampを有効にし、高さの差分で判定
1015 + var fullH = body.scrollHeight;
1016 + body.classList.add('truncated');
1017 + var clampedH = body.clientHeight;
1018 + body.classList.remove('truncated');
1019 + if (fullH > clampedH + 10) {
1020 + body.classList.add('truncated');
1021 + var btn = document.createElement('button');
1022 + btn.className = 'btn-read-more';
1023 + btn.textContent = '広げて読む ▼';
1024 + btn.addEventListener('click', function() {
1025 + var isExpanded = body.classList.toggle('expanded');
1026 + btn.textContent = isExpanded ? '折りたたむ ▲' : '広げて読む ▼';
1027 + });
1028 + body.parentNode.insertBefore(btn, body.nextSibling);
1029 + }
1030 + });
1006 1006  });
1007 1007  
1008 1008  // トースト通知表示
... ... @@ -1065,7 +1065,7 @@
1065 1065   var csrfEl = document.querySelector('input[name="form_token"]');
1066 1066   var csrfToken = csrfEl ? csrfEl.value : '';
1067 1067   var xhr = new XMLHttpRequest();
1068 - xhr.open('POST', '/bin/SeitokaiCode/EditPost?outputSyntax=plain', true);
1093 + xhr.open('POST', '/bin/get/SeitokaiCode/EditPost?outputSyntax=plain', true);
1069 1069   xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1070 1070   var editPostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken);
1071 1071   xhr.onload = function() {
... ... @@ -1087,7 +1087,7 @@
1087 1087  function confirmDeletePost(schoolPage, postObjNum, token) {
1088 1088   if (!confirm('この投稿を削除しますか?\\n削除後は「この投稿は削除されました」と表示されます。')) return;
1089 1089   var xhr = new XMLHttpRequest();
1090 - xhr.open('POST', '/bin/SeitokaiCode/DeletePost?outputSyntax=plain', true);
1115 + xhr.open('POST', '/bin/get/SeitokaiCode/DeletePost?outputSyntax=plain', true);
1091 1091   xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1092 1092   var deletePostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token);
1093 1093   xhr.onload = function() {