0 Votes

Changes for page Incident Viewer

Last modified by Ryan C on 2025/06/08 19:28

From version 14.2
edited by Ryan C
on 2025/06/08 19:28
Change comment: Update document after refactoring.
To version 7.1
edited by Ryan C
on 2025/06/08 18:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -Incident Viewer
Parent
... ... @@ -1,1 +1,0 @@
1 -Main Categories.WebHome
Content
... ... @@ -1,19 +1,12 @@
1 1  {{velocity output="yes"}}
2 -#set($timestamp = $datetool.format("yyyyMMddHHmmss", $datetool.now()))
3 -#set($url = "/bin/edit/Help/Applications/Anti%20White%20Incidents/%20/WebHome?editor=inline&form_token=$services.csrf.token&AntiWhiteIncidents_${timestamp}_headline=Auto_$timestamp")
4 -{{html clean="false"}}
5 -<form action="$url" method="get" style="margin-bottom:20px;">
6 - <button class="btn btn-primary" type="submit">
7 - 📝 Submit an Incident
8 - </button>
9 -</form>
10 -{{/html}}
11 -{{/velocity}}
2 +## Load the working public interface page
3 +#set($interfaceDoc = $xwiki.getDocument("Help.Applications.AntiWhiteIncidents.Code.PublicInterface"))
12 12  
5 +## Disable sheets, extra panels
6 +#set($hasSheet = false)
7 +#set($displayDocExtra = false)
13 13  
9 +## Output the content of the real PublicInterface page
10 +$interfaceDoc.getRenderedContent()
11 +{{/velocity}}
14 14  
15 -== Reported Incidents ==
16 -
17 -{{include reference="Help.Applications.Anti White Incidents.WebHome"/}}
18 -
19 -