From 67dd3a3262fb589ffec59283519716ab8350695e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 8 Jan 2016 20:47:14 +0000 Subject: [PATCH] changed the code revision view to use the title band class --- codepot/src/codepot/views/code_revision.php | 127 ++++++++++---------- 1 file changed, 65 insertions(+), 62 deletions(-) diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index fb638094..c0bc1658 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -555,68 +555,46 @@ $this->load->view ( $history = $file['history']; ?> -
-id}{$revreqroot}", - htmlspecialchars($project->name)); - - $exps = explode ('/', $headpath); - $expsize = count($exps); - $par = ''; - for ($i = 1; $i < $expsize; $i++) - { - $par .= '/' . $exps[$i]; - $xpar = $this->converter->AsciiToHex ($par); - - print '/'; - print anchor ( - "code/revision/{$project->id}/{$xpar}{$revreq}", - htmlspecialchars($exps[$i])); - } - - if ($headpath != $file['fullpath']) - { - // this comparsion doesn't work well for a file. - // $file['fullpath'] for a file doesn't include the directory. - // is this a bug of peclsvn? never mind. it's ok to show the file name again. - // - // [created_rev] => 322 - // [name] => subversionmodel.php - // [type] => file - // [fullpath] => subversionmodel.php - - print ' - '; - print htmlspecialchars($file['fullpath']); - } -?> -
- - - -
+
+
id}{$revreqroot}", + htmlspecialchars($project->name)); + + $exps = explode ('/', $headpath); + $expsize = count($exps); + $par = ''; + for ($i = 1; $i < $expsize; $i++) + { + $par .= '/' . $exps[$i]; + $xpar = $this->converter->AsciiToHex ($par); + + print '/'; + print anchor ( + "code/revision/{$project->id}/{$xpar}{$revreq}", + htmlspecialchars($exps[$i])); + } + + if ($headpath != $file['fullpath']) + { + // this comparsion doesn't work well for a file. + // $file['fullpath'] for a file doesn't include the directory. + // is this a bug of peclsvn? never mind. it's ok to show the file name again. + // + // [created_rev] => 322 + // [name] => subversionmodel.php + // [type] => file + // [fullpath] => subversionmodel.php + + print ' - '; + print htmlspecialchars($file['fullpath']); + } + ?> +
+ +
+ id}/${hex_headpath}/{$prev_revision}", ''); print ' '; @@ -645,9 +623,34 @@ $history = $file['history']; print ' | '; printf ('%s: %s', $this->lang->line('Last updated on'), date('r', strtotime($history['date']))); - ?> + ?> +
+ +
+