diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index 86c7b2a7..3e722c5c 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -79,6 +79,26 @@ $(function() { return false; } ); + + 0; ) + { + $i--; + + $rc = $reviews[$i]; + if ($login['id'] == $rc->updatedby) + { + print (" + $('#code_revision_edit_review_comment_button_{$i}').button().click ( + function () { + alert ('not implemented {$i}'); + return false; + } + ) + "); + } + } + ?> }); @@ -318,6 +338,16 @@ $history = $file['history']; printf (" %d", $rc->sno); printf (" %s", $rc->updatedby); printf (" %s", $rc->updatedon); + + if ($login['id'] == $rc->updatedby) + { + print ' '; + print anchor ( + "#", $this->lang->line('Edit'), + array ('id' => 'code_revision_edit_review_comment_button_' . $i) + ); + } + print ("\n"); print "
\n"; @@ -353,7 +383,6 @@ $history = $file['history'];
id}${revreqroot}", 'id="code_revision_edit_logmsg_form"')?> 'edit_log_message', 'value' => $history['msg'], 'rows'=> 10, 'cols' => 70,