diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-24 09:52:41 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-24 09:52:41 +0100 |
commit | 8da3d5d0ea69aa9fc991c136ba6274cfc5f459ba (patch) | |
tree | 1cac3d9e59957b3e6b9fc0250ed0bb65406fc635 /edit_columns.rb | |
parent | e4d1de4f78d03bb3d9b5b759f2950c99f368ae6b (diff) |
bugfix for empty history
Diffstat (limited to 'edit_columns.rb')
-rwxr-xr-x | edit_columns.rb | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/edit_columns.rb b/edit_columns.rb index 5033a48..c331c8d 100755 --- a/edit_columns.rb +++ b/edit_columns.rb @@ -117,21 +117,35 @@ if urevs.max </td> UNDO end - if rrevs.min $html << <<REDO <td> <form method='post' action=''> <div> - <input type='submit' title='#{title}' value='Redo' /> + <input type='submit' title='#{title}' value='Redo' #{rrevs.min ? "" : "disabled='disabled'"}/> +REDO + if rrevs.min + $html << <<REDO <input type='hidden' name='redo'/> <input type='hidden' name='undo_revision' value='#{rrevs.min.rev()}' /> #{hidden} +REDO + end + $html << <<REDO </div> </form> </td> REDO - urhist += rrevs - end + urhist += rrevs + + $html << <<READY +<td> +<form method='get' action='.'> + <div> + <input type='submit' value='Ready' /> + </div> +</form> +</td> +READY $html << "</tr></table>" $html << (urhist).to_html(urevs.max.rev,"") |