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
77.1
edited by Super Admin
on 2026/03/19 15:12
on 2026/03/19 15:12
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -881,6 +881,13 @@ 881 881 #if($postEdited == 1 || $postEdited == '1') 882 882 <span class="post-edited-label">(編集済み)</span> 883 883 #end 884 + #set($postAuthorRefH = $!post.getValue('authorRef')) 885 + #set($postObjNumH = $post.number) 886 + #if(!$isGuest && $xcontext.user != $postAuthorRefH) 887 + <button type="button" class="btn-post-report btn-post-report-header" onclick="openReportDialog(this, '${doc.fullName}', $postObjNumH, '${services.csrf.getToken()}')" title="この投稿を通報"> 888 + <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> 通報 889 + </button> 890 + #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)963 + #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"> 1041 + #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> 1045 + #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>