From 29354a812c5c01367170aef0e48a34f5d6c90ef6 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 14 May 2015 08:01:53 +0000 Subject: [PATCH] changed the number part in the revision number of the diff view to link to the code listing view --- codepot/src/codepot/views/code_diff.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/views/code_diff.php b/codepot/src/codepot/views/code_diff.php index 3f992ec4..d20d4c56 100644 --- a/codepot/src/codepot/views/code_diff.php +++ b/codepot/src/codepot/views/code_diff.php @@ -405,7 +405,10 @@ else // show the history details of the previous revision at the root directory $revanc = "code/revision/{$project->id}/!/{$file['against']['created_rev']}"; - print anchor ($revanc, ($this->lang->line('Revision') . ' ' . $file['against']['created_rev'])); + $codeanc = "code/file/{$project->id}/{$xpar}/{$file['against']['created_rev']}"; + print anchor ($revanc, $this->lang->line('Revision')); + print ' '; + print anchor ($codeanc, $file['against']['created_rev']); $currev = $file['created_rev']; $nextrev = $file['against']['next_rev']; @@ -506,7 +509,10 @@ else // show the history details of the current revision at the root directory $revanc = "code/revision/{$project->id}/!/{$file['created_rev']}"; - print anchor ($revanc, ($this->lang->line('Revision') . ' ' . $file['created_rev'])); + $codeanc = "code/file/{$project->id}/${xpar}/{$file['created_rev']}"; + print anchor ($revanc, $this->lang->line('Revision')); + print ' '; + print anchor ($codeanc, $file['created_rev']); $currev = $file['against']['created_rev']; $nextrev = $file['next_rev'];