diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index 86ab21aa..9125e111 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -30,6 +30,7 @@ $revreqroot = ''; $history_path = "/code/history/{$project->id}/{$hex_headpath}"; + $code_path = "/code/file/{$project->id}/{$hex_headpath}"; } else { @@ -39,6 +40,7 @@ if ($hex_headpath == '') $revtrailer = $revreqroot; else $revtrailer = "/{$hex_headpath}{$revreq}"; $history_path = "/code/history/{$project->id}{$revtrailer}"; + $code_path = "/code/file/{$project->id}{$revtrailer}"; } $creole_base = site_url() . "/wiki/show/{$project->id}/"; @@ -102,6 +104,11 @@ $(function() { return false; }); + $("#code_revision_code_button").button().click (function() { + $(location).attr ('href', codepot_merge_path("", '')); + return false; + }); + $('#code_revision_edit_revision_message_form').dialog ( { @@ -661,6 +668,9 @@ $history = $file['history']; $history_anchor_text = ' ' . $this->lang->line('History'); print anchor ("#", $history_anchor_text, 'id="code_revision_history_button"'); + + $history_anchor_text = ' ' . $this->lang->line('Code'); + print anchor ("#", $history_anchor_text, 'id="code_revision_code_button"'); print ''; print '
';