Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
80.1
edited by Super Admin
on 2026/03/19 15:50
on 2026/03/19 15:50
Change comment:
There is no comment for this version
To version
75.1
edited by Super Admin
on 2026/03/19 13:01
on 2026/03/19 13:01
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -736,18 +736,16 @@ 736 736 <div class="activity-thread" data-fiscal-year="$!escapetool.xml($actFY)"> 737 737 <div class="activity-thread-header"> 738 738 <div class="activity-thread-title"> 739 - <h3 #if($actFeatured == '1')class="featured-title"#end>#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$!escapetool.xml($!actTitle)</h3> 740 - <div class="activity-meta-line"> 741 - <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span> 742 - #set($actTagsList = $activity.getValue('tags')) 743 - #if($actTagsList && !$actTagsList.isEmpty()) 744 - #foreach($tagItem in $actTagsList) 745 - #if($tagItem && $tagItem.trim() != '')<span class="activity-tag-badge">$escapetool.xml($tagItem)</span>#end 746 - #end 739 + <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> 740 + <span class="activity-meta">$!escapetool.xml($!actCommittee) | $!escapetool.xml($!actPeriod) #if($actFY != 'unknown')| $!escapetool.xml($actFY)年度#end</span> 741 + #set($actTagsList = $activity.getValue('tags')) 742 + #if($actTagsList && !$actTagsList.isEmpty()) 743 + #foreach($tagItem in $actTagsList) 744 + #if($tagItem && $tagItem.trim() != '')<span class="activity-tag-badge">$escapetool.xml($tagItem)</span>#end 747 747 #end 748 - </div>746 + #end 749 749 </div> 750 - <div class="thread-meta-r ight">748 + <div class="thread-meta-row"> 751 751 <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span> 752 752 #if($viewerAccountType == 'admin' || $viewerAccountType == 'verified' || $viewerAccountType == 'referred') 753 753 #if($actFeatured == '1') ... ... @@ -883,13 +883,6 @@ 883 883 #if($postEdited == 1 || $postEdited == '1') 884 884 <span class="post-edited-label">(編集済み)</span> 885 885 #end 886 - #set($postAuthorRefH = $!post.getValue('authorRef')) 887 - #set($postObjNumH = $post.number) 888 - #if(!$isGuest && $xcontext.user != $postAuthorRefH) 889 - <button type="button" class="btn-post-report btn-post-report-header" onclick="openReportDialog(this, '${doc.fullName}', $postObjNumH, '${services.csrf.getToken()}')" title="この投稿を通報"> 890 - <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" y1="22" x2="4" y2="15"/></svg> 通報 891 - </button> 892 - #end 893 893 </div> 894 894 <div class="thread-post-body"> 895 895 $!escapetool.xml($!postContent) ... ... @@ -961,8 +961,9 @@ 961 961 #set($postObjNumED = $post.number) 962 962 #set($showPinBtn = ($viewerAccountType == 'admin' || $viewerAccountType == 'verified')) 963 963 #set($showEditDeleteBtn = ($xcontext.user == $postAuthorRef || $viewerAccountType == 'admin')) 955 + #set($showReportBtn = (!$isGuest && $xcontext.user != $postAuthorRef)) 964 964 #set($showHideBtn = ($viewerAccountType == 'admin')) 965 - #if($showPinBtn || $showEditDeleteBtn || $showHideBtn) 957 + #if($showPinBtn || $showEditDeleteBtn || $showReportBtn || $showHideBtn) 966 966 <div class="post-edit-actions post-action-mt"> 967 967 #if($showPinBtn) 968 968 #set($postObjNum = $post.number) ... ... @@ -986,6 +986,11 @@ 986 986 <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/></svg> 削除 987 987 </button> 988 988 #end 981 + #if($showReportBtn) 982 + <button type="button" class="btn-post-report" onclick="openReportDialog(this, '${doc.fullName}', $postObjNumED, '${services.csrf.getToken()}')" title="この投稿を通報"> 983 + <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" y1="22" x2="4" y2="15"/></svg> 通報 984 + </button> 985 + #end 989 989 #if($showHideBtn) 990 990 <button type="button" class="btn-post-hide" onclick="openHideDialog(this, '${doc.fullName}', $postObjNumED, '${services.csrf.getToken()}')" title="この投稿を非表示にする"> 991 991 <svg class="ico ico-fixed-14" viewBox="0 0 24 24"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg> 非表示 ... ... @@ -1040,11 +1040,9 @@ 1040 1040 1041 1041 #if($xcontext.user != "XWiki.XWikiGuest") 1042 1042 <div class="thread-add-post"> 1043 - #if($isSchoolMember || $isViewerAdmin) 1044 1044 <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add"> 1045 1045 + 活動報告を追加 1046 1046 </a> 1047 - #end 1048 1048 <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment"> 1049 1049 <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> コメントを書く 1050 1050 </a>