Wiki source code of Legacy Notification Administration
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity output="false"}} | ||
2 | $services.localization.use('document', 'XWiki.Notifications.Code.LegacyNotificationAdministrationTranslations') | ||
3 | |||
4 | #if ($request.migrate) | ||
5 | #if ($request.mode == 'since') | ||
6 | #set($since = $request.since) | ||
7 | #if ($since) | ||
8 | #set($since = $datetool.toDate('yyyy-MM-dd', $since)) | ||
9 | #end | ||
10 | #end | ||
11 | $services.eventstream.startLegacyMigration($since) | ||
12 | #end | ||
13 | {{/velocity}} | ||
14 | |||
15 | {{translation key="legacy.event.migration.description"/}} | ||
16 | |||
17 | {{velocity}} | ||
18 | {{info}} | ||
19 | {{translation key="legacy.event.count.store"/}}: **$services.eventstream.eventCount** | ||
20 | {{translation key="legacy.event.count.legacy"/}}: **$services.eventstream.legacyEventCount** | ||
21 | {{/info}} | ||
22 | |||
23 | {{html}} | ||
24 | <form id="migrate" action="$escapetool.xml($xwiki.relativeRequestURL)" method="post" class="xform third"> | ||
25 | <div> | ||
26 | <input type="radio" id="mode_alltime" name="mode" value="alltime"#if($request.mode != 'since')checked#end/> | ||
27 | <label for="mode_alltime">$services.localization.render('legacy.event.migration.alltime')</label> | ||
28 | </div> | ||
29 | <div> | ||
30 | <input type="radio" id="mode_since" name="mode" value="since"#if($request.mode == 'since')checked#end/> | ||
31 | <label for="mode_since">$escapetool.html($services.localization.render('legacy.event.migration.since'))</label> | ||
32 | <input type="date" id="since" name="since"#if($request.since) value="$escapetool.xml($request.since)"#end max="$datetool.format('yyyy-MM-dd', $datetool.date)"/> | ||
33 | </div> | ||
34 | <div class="buttons"><span class="buttonwrapper"><input type="submit" value="$escapetool.xml($services.localization.render('legacy.event.migration.start'))" name="migrate" class="button"/></span></div> | ||
35 | </form> | ||
36 | |||
37 | #set($jobStatus = $services.eventstream.getLegacyMigrationStatus()) | ||
38 | #if ($jobStatus) | ||
39 | #template("job_macros.vm") | ||
40 | #displayJobStatus($jobStatus) | ||
41 | #end | ||
42 | {{/html}} | ||
43 | |||
44 | #set ($showCompleteStepButton = true) | ||
45 | {{/velocity}} |