{* * $Revision: 1.8 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="System Maintenance"}

{if isset($status.run)}
{capture name=taskTitle}{g->text text=$AdminMaintenance.tasks[$status.run.taskId].title l10Domain=$AdminMaintenance.tasks[$status.run.taskId].l10Domain}{/capture} {if ($status.run.success)}

{g->text text="Completed %s task successfully." arg1=$smarty.capture.taskTitle}

{else}

{g->text text="The %s task failed to complete successfully." arg1=$smarty.capture.taskTitle}

{/if}
{/if}
{foreach from=$AdminMaintenance.tasks key=taskId item=info} {cycle values="gbEven,gbOdd" assign="rowClass"} {/foreach}
{g->text text="Task name"} {g->text text="Last run"} {g->text text="Success/Fail"} {g->text text="Action"}
{if !isset($status.run) || $status.run.taskId != $taskId}+{else}-{/if} {g->text text=$info.title l10Domain=$info.l10Domain} {if isset($info.timestamp)} {g->date timestamp=$info.timestamp style="datetime"} {else} {g->text text="Not run yet"} {/if} {if isset($info.success)} {if $info.success}
{g->text text="Success"}
{else}
{g->text text="Failed"}
{/if} {else} {g->text text="Not run yet"} {/if}
{g->text text="run now"}
{g->text text=$info.description l10Domain=$info.l10Domain} {if !empty($info.details)}

{g->text text="Last Run Details:"}

{foreach from=$info.details item=text} {$text}
{/foreach}

{/if}