Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
76.1
edited by Super Admin
on 2026/03/19 13:11
on 2026/03/19 13:11
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
-
... ... @@ -881,13 +881,6 @@ 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 891 891 </div> 892 892 <div class="thread-post-body"> 893 893 $!escapetool.xml($!postContent) ... ... @@ -959,8 +959,9 @@ 959 959 #set($postObjNumED = $post.number) 960 960 #set($showPinBtn = ($viewerAccountType == 'admin' || $viewerAccountType == 'verified')) 961 961 #set($showEditDeleteBtn = ($xcontext.user == $postAuthorRef || $viewerAccountType == 'admin')) 955 + #set($showReportBtn = (!$isGuest && $xcontext.user != $postAuthorRef)) 962 962 #set($showHideBtn = ($viewerAccountType == 'admin')) 963 - #if($showPinBtn || $showEditDeleteBtn || $showHideBtn) 957 + #if($showPinBtn || $showEditDeleteBtn || $showReportBtn || $showHideBtn) 964 964 <div class="post-edit-actions post-action-mt"> 965 965 #if($showPinBtn) 966 966 #set($postObjNum = $post.number) ... ... @@ -984,6 +984,11 @@ 984 984 <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> 削除 985 985 </button> 986 986 #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 987 987 #if($showHideBtn) 988 988 <button type="button" class="btn-post-hide" onclick="openHideDialog(this, '${doc.fullName}', $postObjNumED, '${services.csrf.getToken()}')" title="この投稿を非表示にする"> 989 989 <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> 非表示