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

From version Icon 65.1 Icon
edited by Super Admin
on 2026/03/18 08:56
Change comment: There is no comment for this version
To version Icon 57.1 Icon
edited by Super Admin
on 2026/03/17 13:41
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -574,13 +574,6 @@
574 574   #end
575 575   <button class="activity-fy-tab" onclick="switchActivityFY('all', this)">全期間</button>
576 576   </div>
577 - <div class="activity-toolbar-right">
578 - <button class="btn-view-toggle" id="btnViewToggle" onclick="toggleCompactView()" title="タイトルのみ表示">
579 - <svg class="ico-list" viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
580 - <svg class="ico-detail" viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>
581 - <span class="toggle-label">一覧表示</span>
582 - </button>
583 - </div>
584 584   <div class="author-legend-wrapper">
585 585   <button class="author-legend-toggle" onclick="this.classList.toggle('open');this.nextElementSibling.classList.toggle('open')"><svg class="ico" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg> バッジの見方 <span class="chevron">▼</span></button>
586 586   <div class="author-legend-body">
... ... @@ -672,12 +672,6 @@
672 672   <div class="activity-thread-title">
673 673   <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>
674 674   <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span>
675 - #set($actTagsList = $activity.getValue('tags'))
676 - #if($actTagsList && !$actTagsList.isEmpty())
677 - #foreach($tagItem in $actTagsList)
678 - #if($tagItem && $tagItem.trim() != '')<span class="activity-tag-badge">$escapetool.xml($tagItem)</span>#end
679 - #end
680 - #end
681 681   </div>
682 682   <div class="thread-meta-row">
683 683   <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span>
... ... @@ -990,35 +990,6 @@
990 990  ## --- 年度タブ切り替え JavaScript ---
991 991  {{html clean="false"}}
992 992  <script>
993 -// コンパクト表示(タイトルのみ)トグル
994 -function toggleCompactView() {
995 - var container = document.querySelector('.xwiki-content') || document.body;
996 - var isCompact = container.classList.toggle('activity-compact-view');
997 - var btn = document.getElementById('btnViewToggle');
998 - if (btn) {
999 - btn.querySelector('.toggle-label').textContent = isCompact ? '詳細表示' : '一覧表示';
1000 - btn.title = isCompact ? '詳細表示に戻す' : 'タイトルのみ表示';
1001 - }
1002 - // コンパクトモードでは各スレッドヘッダーをクリックで個別展開可能にする
1003 - document.querySelectorAll('.activity-thread').forEach(function(thread) {
1004 - if (isCompact) {
1005 - thread.classList.remove('compact-expanded');
1006 - }
1007 - });
1008 -}
1009 -
1010 -// コンパクトモードで個別スレッドを展開/折りたたみ
1011 -function toggleThreadExpand(e) {
1012 - var container = document.querySelector('.xwiki-content') || document.body;
1013 - if (!container.classList.contains('activity-compact-view')) return;
1014 - // リンクやボタンのクリックはスルー
1015 - if (e.target.closest('a, button, .btn-featured-toggle')) return;
1016 - var thread = e.target.closest('.activity-thread');
1017 - if (thread) {
1018 - thread.classList.toggle('compact-expanded');
1019 - }
1020 -}
1021 -
1022 1022  function switchActivityFY(fy, btn) {
1023 1023   // タブのアクティブ状態を切り替え
1024 1024   document.querySelectorAll('.activity-fy-tab').forEach(function(t) { t.classList.remove('active'); });
... ... @@ -1045,25 +1045,17 @@
1045 1045   window.history.replaceState({}, document.title, window.location.pathname);
1046 1046   }
1047 1047   }
1048 - // コンパクトモード: スレッドヘッダークリックで個別展開
1049 - document.querySelectorAll('.activity-thread-header').forEach(function(header) {
1050 - header.addEventListener('click', toggleThreadExpand);
1051 - });
1052 1052   // 長文投稿の折りたたみ初期化
1053 1053   document.querySelectorAll('.thread-post-body').forEach(function(body) {
1054 - // 先にtruncatedを仮適用してline-clampを有効にし、高さの差分で判定
1055 - var fullH = body.scrollHeight;
1056 - body.classList.add('truncated');
1057 - var clampedH = body.clientHeight;
1058 - body.classList.remove('truncated');
1059 - if (fullH > clampedH + 10) {
1008 + // 画像・ファイル添付を除いたテキスト部分の高さを判定
1009 + if (body.scrollHeight > body.clientHeight + 10 || body.textContent.length > 300) {
1060 1060   body.classList.add('truncated');
1061 1061   var btn = document.createElement('button');
1062 1062   btn.className = 'btn-read-more';
1063 - btn.textContent = '広げて読む ▼';
1013 + btn.textContent = '続きを読む ▼';
1064 1064   btn.addEventListener('click', function() {
1065 1065   var isExpanded = body.classList.toggle('expanded');
1066 - btn.textContent = isExpanded ? '折りたたむ ▲' : '広げて読む ▼';
1016 + btn.textContent = isExpanded ? '折りたたむ ▲' : '続きを読む ▼';
1067 1067   });
1068 1068   body.parentNode.insertBefore(btn, body.nextSibling);
1069 1069   }
... ... @@ -1130,7 +1130,7 @@
1130 1130   var csrfEl = document.querySelector('input[name="form_token"]');
1131 1131   var csrfToken = csrfEl ? csrfEl.value : '';
1132 1132   var xhr = new XMLHttpRequest();
1133 - xhr.open('POST', '/bin/get/SeitokaiCode/EditPost?outputSyntax=plain', true);
1083 + xhr.open('POST', '/bin/SeitokaiCode/EditPost?outputSyntax=plain', true);
1134 1134   xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1135 1135   var editPostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&newContent=' + encodeURIComponent(newContent) + '&form_token=' + encodeURIComponent(csrfToken);
1136 1136   xhr.onload = function() {
... ... @@ -1152,7 +1152,7 @@
1152 1152  function confirmDeletePost(schoolPage, postObjNum, token) {
1153 1153   if (!confirm('この投稿を削除しますか?\\n削除後は「この投稿は削除されました」と表示されます。')) return;
1154 1154   var xhr = new XMLHttpRequest();
1155 - xhr.open('POST', '/bin/get/SeitokaiCode/DeletePost?outputSyntax=plain', true);
1105 + xhr.open('POST', '/bin/SeitokaiCode/DeletePost?outputSyntax=plain', true);
1156 1156   xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1157 1157   var deletePostData = 'schoolPage=' + encodeURIComponent(schoolPage) + '&postObj=' + postObjNum + '&form_token=' + encodeURIComponent(token);
1158 1158   xhr.onload = function() {