diff --git a/codepot/src/codepot/controllers/code.php b/codepot/src/codepot/controllers/code.php index 5415b2e2..63d82f97 100644 --- a/codepot/src/codepot/controllers/code.php +++ b/codepot/src/codepot/controllers/code.php @@ -262,7 +262,7 @@ class Code extends Controller { $data['message'] = 'DATABASE ERROR'; $this->load->view ($this->VIEW_ERROR, $data); - } + } else if ($project === NULL) { $data['message'] = @@ -395,6 +395,7 @@ class Code extends Controller $data['revision1'] = $rev1; $data['revision2'] = $rev2; $data['file'] = $file; + $data['fullview'] = $full; $this->load->view ($this->VIEW_DIFF, $data); } } diff --git a/codepot/src/codepot/views/code_diff.php b/codepot/src/codepot/views/code_diff.php index 505709c2..460817f9 100644 --- a/codepot/src/codepot/views/code_diff.php +++ b/codepot/src/codepot/views/code_diff.php @@ -91,6 +91,21 @@ $this->load->view ( $this->lang->line('Blame')); print ' | '; + if (!$fullview) + { + print anchor ( + "code/fulldiff/{$project->id}/{$xpar}{$revreq}", + $this->lang->line('Full Difference')); + } + else + { + print anchor ( + "code/diff/{$project->id}/{$xpar}{$revreq}", + $this->lang->line('Difference')); + } + + print ' | '; + if ($revision1 > 0) { @@ -115,9 +130,10 @@ $this->load->view ( ?>