Hide deleted histories so everything looks like the previous version.

This commit is contained in:
James Taylor
2006-12-20 21:58:51 +00:00
parent a11d9618cf
commit ca4a90d1c4
2 changed files with 5 additions and 5 deletions
+3 -5
View File
@@ -54,11 +54,8 @@ function OnSubmitForm()
<table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="header" align="center"><td>Name</td><td>Size</td><td>Last modified</td><td>Actions</td></tr>
#for $history in $user.histories
#set $c = ""
#if $history.deleted
#set $c = "history_row_deleted"
#end if
<tr class="$c">
#if not( $history.deleted )
<tr>
<td><input type=checkbox name="id" value="$history.id"
#if $str($history.id) in $ids:
checked
@@ -76,6 +73,7 @@ function OnSubmitForm()
<a href="/history_delete?id=$history.id" onclick="confirm_click('/history_delete?id=$history.id');return false;">delete</a>
</td>
</tr>
#end if
#end for
<tr><th colspan="100%">Action</th></tr>
<tr><td colspan="100%" align="center"><input type="radio" name="operation" value="1" checked>Share <input type="radio" name="operation" value="2">Rename <input type="radio" name="operation" value="3">Delete </td></tr>
+2
View File
@@ -24,7 +24,9 @@
<table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="header"><td>Name</td><td># datasets<td>created</td><td></td></tr>
#for $history in $user.histories:
#if not( $history.deleted )
<tr><td>$history.name </td><td>${len(history.datasets)}<td>$history.create_time</td><td><a href="history_switch?id=$history.id">switch to</a></td></tr>
#end if
#end for
</table>
#else