Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From 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
To 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
Summary
Details
- Page properties
-
- Content
-
... ... @@ -736,16 +736,18 @@ 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>$!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 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 745 745 #end 746 - #end748 + </div> 747 747 </div> 748 - <div class="thread-meta-r ow">750 + <div class="thread-meta-right"> 749 749 <span class="thread-post-count">${reportCount}件の報告 ・ ${commentCount}件のコメント</span> 750 750 #if($viewerAccountType == 'admin' || $viewerAccountType == 'verified' || $viewerAccountType == 'referred') 751 751 #if($actFeatured == '1') ... ... @@ -881,6 +881,13 @@ 881 881 #if($postEdited == 1 || $postEdited == '1') 882 882 <span class="post-edited-label">(編集済み)</span> 883 883 #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 884 884 </div> 885 885 <div class="thread-post-body"> 886 886 $!escapetool.xml($!postContent) ... ... @@ -952,9 +952,8 @@ 952 952 #set($postObjNumED = $post.number) 953 953 #set($showPinBtn = ($viewerAccountType == 'admin' || $viewerAccountType == 'verified')) 954 954 #set($showEditDeleteBtn = ($xcontext.user == $postAuthorRef || $viewerAccountType == 'admin')) 955 - #set($showReportBtn = (!$isGuest && $xcontext.user != $postAuthorRef)) 956 956 #set($showHideBtn = ($viewerAccountType == 'admin')) 957 - #if($showPinBtn || $showEditDeleteBtn || $show ReportBtn || $showHideBtn)965 + #if($showPinBtn || $showEditDeleteBtn || $showHideBtn) 958 958 <div class="post-edit-actions post-action-mt"> 959 959 #if($showPinBtn) 960 960 #set($postObjNum = $post.number) ... ... @@ -978,11 +978,6 @@ 978 978 <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> 削除 979 979 </button> 980 980 #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 986 986 #if($showHideBtn) 987 987 <button type="button" class="btn-post-hide" onclick="openHideDialog(this, '${doc.fullName}', $postObjNumED, '${services.csrf.getToken()}')" title="この投稿を非表示にする"> 988 988 <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> 非表示 ... ... @@ -1037,9 +1037,11 @@ 1037 1037 1038 1038 #if($xcontext.user != "XWiki.XWikiGuest") 1039 1039 <div class="thread-add-post"> 1043 + #if($isSchoolMember || $isViewerAdmin) 1040 1040 <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=report" class="btn-thread-add"> 1041 1041 + 活動報告を追加 1042 1042 </a> 1047 + #end 1043 1043 <a href="/bin/SeitokaiCode/ActivityPostForm?schoolPage=${doc.fullName}&activityIndex=${actIdx}&schoolCode=$!escapetool.url($schoolCode)&postType=comment" class="btn-thread-comment"> 1044 1044 <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> コメントを書く 1045 1045 </a>