$action.getActionName($action.getClass().getName())

#set ($selectedTab = "queue") #parse("/admin/indexing/indexing-tabs.vm")

$action.getText("viewindex.description")

#if ($action.flushing)$action.getText("viewindex.status.flushing")#else$action.getText("viewindex.status.idle")#end #if ($action.lastFlushStats.queueSize == 0)

$action.getText("viewindex.lastflush.empty", [$dateFormatter.formatDateTime($action.lastFlushStats.started)])

#end #if ($action.lastNonEmptyFlushStats)

$action.getText("viewindex.lastnonemptyflush.title")
$action.getText("viewindex.lastflush.started") | $dateFormatter.formatDateTime($action.lastNonEmptyFlushStats.started)
$action.getText("viewindex.lastflush.duration") | ${action.lastNonEmptyFlushStats.elapsedMilliseconds}ms
$action.getText("viewindex.lastflush.tasks") | $action.lastNonEmptyFlushStats.queueSize
$action.getText("viewindex.lastflush.recreated") | #yesno ($action.lastNonEmptyFlushStats.wasRecreated())
$action.getText("viewindex.lastflush.optimised") | #yesno ($action.lastNonEmptyFlushStats.wasOptimised())

#end #if ($action.flushing)

## $action.getText("viewindex.flush.title")

$action.getText("viewindex.flush.starttime"): $dateFormatter.formatDateTime($action.flushStarted) #end

## $action.getText("viewindex.queue.title")

#if ($queue.empty) $action.getText("viewindex.queue.empty") #else $action.getText("viewindex.flush.size"): $queue.size()

$action.getText("viewindex.queued.title")
#foreach ($task in $queueFirstHundred)
$action.getText($task.description, [$!task.handle])
#end

$action.getText("viewindex.flush.queue") #end #parse("/breadcrumbs.vm")