[slbackup-commit] CVS update: slbackup-php/templates status.tpl

finnarne-guest at alioth.debian.org finnarne-guest at alioth.debian.org
Mon Apr 16 11:45:33 UTC 2007


  User: finnarne-guest
  Date: 07/04/16 11:45:33

  Added:       templates status.tpl
  Log:
  Added status view
  
  Revision  Changes    Path
  1.1                  slbackup-php/templates/status.tpl
  
  Index: status.tpl
  ===================================================================
  {*
      slbackup-php, an administration tool for slbackup
      Copyright (C) 2007  Finn-Arne Johansen <faj at bzz.no>, Bzzware AS, Norway
  
      This program is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation; either version 2 of the License, or
      (at your option) any later version.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License along
      with this program; if not, write to the Free Software Foundation, Inc.,
      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  *}
  <html>
      <head>
  	<title>{t}SLBackup Configuration{/t}</title>
      </head>
      <body>
  
      {include file="menu.tpl"}
  
      <H2>{t}Clients{/t}</H2>
      <UL>
      {foreach from=$log.clients key=client item=values}
         <LI>Status for {$client}
         <BR>
         {if $values.started > $values.ok and $values.started > $values.failed }
             Backup started as {$values.started|date_format}, and is still in progress<BR>
         {/if}
         {if $values.ok > $values.failed }
             OK at {$values.ok|date_format}
         {elseif $values.failed <> ''}
             Failed at {$values.ok|date_format}
         {elseif $values.started == ''}
             Client never backed up
         {/if}
         </LI>
      {/foreach}
      </UL>
      <H2>{t}Backup status{/t}</H2>
  
      {t 1=$log.end|date_format}Backup last finished at %1{/t}<BR>
      {if $log.start > $values.end }
  	{t 1=$log.end|date_format}A new backup started at %1{/t}<BR>
      {/if}
      </Body>
  </HTML>
  
  
  



More information about the slbackup-commit mailing list