[slbackup-commit] CVS update: slbackup-php/templates restore.tpl
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Wed Apr 25 08:15:47 UTC 2007
User: finnarne-guest
Date: 07/04/25 08:15:47
Modified: templates restore.tpl
Log:
Now it works to restore a snapshot of a file
Revision Changes Path
1.9 +21 -2 slbackup-php/templates/restore.tpl
Index: restore.tpl
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/templates/restore.tpl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- restore.tpl 20 Apr 2007 06:24:49 -0000 1.8
+++ restore.tpl 25 Apr 2007 08:15:47 -0000 1.9
@@ -42,9 +42,9 @@
<IMG SRC="/icons/unknown.gif" alt="[ ]">
{/if}
{if $dir.type == "file"}
- <A HREF=index.php?restorefile&client={$client}&file={$dir.sub}&location={$location}>{$dir.name}</A>
+ <A HREF=index.php?restorefile&client={$client}&sub={$dir.sub}&location={$location}>{$dir.name}</A>
{elseif $dir.type == "delfile"}
- <A HREF=index.php?restorefile&client={$client}&file={$dir.sub}&location={$location}>{$dir.name}(deleted)</A>
+ <A HREF=index.php?restorefile&client={$client}&sub={$dir.sub}&location={$location}>{$dir.name}(deleted)</A>
{elseif $dir.type == deldir}
<A HREF=index.php?restorelocation&client={$client}&sub={$dir.sub}&location={$location}>{$dir.name} ({t}Deleted{/t})</A>
{else}
@@ -52,5 +52,24 @@
{/if}
<BR>
{/foreach}
+ {foreach item=version name=version from=$revisions}
+ {if $version.type == "parent"}
+ <IMG SRC="/icons/back.gif" alt="[DIR]">
+ {else}
+ <IMG SRC="/icons/unknown.gif" alt="[ ]">
+ {/if}
+ {if $version.type == "parent"}
+ <A HREF=index.php?restorelocation&client={$client}&sub={$version.sub}&location={$location}>{$version.name}</A>
+ {elseif $version.type == "currentfile"}
+ <A HREF=index.php?restorefile&client={$client}&file={$version.sub}&location={$location}&revision=current>current</A>
+ {elseif $version.type == "diff.gz"}
+ <A HREF=index.php?restorefile&client={$client}&parent={$version.parent}&location={$location}&revision={$version.revision}&name={$version.name}>{$version.ts}</A>
+ {elseif $version.type == "snapshot.gz"}
+ <A HREF=index.php?restorefile&client={$client}&parent={$version.parent}&location={$location}&revision={$version.revision}&name={$version.name}>{$version.ts}</A>
+ {else}
+ unknown snapshot type $version.type
+ {/if}
+ <BR>
+ {/foreach}
</FORM>
</HTML>
More information about the slbackup-commit
mailing list