-converter->AsciiToHex ('.') . $revreq;
- }
+
- print anchor (
- "code/file/{$project->id}{$revreqroot}",
- htmlspecialchars($project->name));
+
+ 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 '/';
- if ($i == $expsize - 1)
+ $exps = explode ('/', $headpath);
+ $expsize = count($exps);
+ $par = '';
+ for ($i = 1; $i < $expsize; $i++)
{
- print anchor (
- "code/blame/{$project->id}/{$xpar}{$revreq}",
- htmlspecialchars($exps[$i]));
+ $par .= '/' . $exps[$i];
+ $xpar = $this->converter->AsciiToHex ($par);
+
+ print '/';
+ if ($i == $expsize - 1)
+ {
+ print anchor (
+ "code/blame/{$project->id}/{$xpar}{$revreq}",
+ htmlspecialchars($exps[$i]));
+ }
+ else
+ {
+ print anchor (
+ "code/file/{$project->id}/{$xpar}{$revreq}",
+ htmlspecialchars($exps[$i]));
+ }
}
- else
+
+ if ($headpath != $file['fullpath'])
{
- print anchor (
- "code/file/{$project->id}/{$xpar}{$revreq}",
- htmlspecialchars($exps[$i]));
+ print ' - ';
+ print htmlspecialchars($file['fullpath']);
}
- }
+ ?>
+
- if ($headpath != $file['fullpath'])
- {
- print ' - ';
- print htmlspecialchars($file['fullpath']);
- }
-?>
-
-
-
- ' . $this->lang->line('History');
-$download_anchor_text = ' ' . $this->lang->line('Download');
-$diff_anchor_text = ' ' . $this->lang->line('Difference');
-
-$xpar = $this->converter->AsciiToHex ($headpath);
-
-if ($file['created_rev'] != $file['head_rev'])
-{
- $head_revision_text = ' ' . $this->lang->line('Head revision');
- print anchor ("code/blame/{$project->id}/${xpar}", $head_revision_text);
- print ' | ';
-}
-
-print anchor ("code/file/{$project->id}/${xpar}{$revreq}", $this->lang->line('Details'));
-print ' | ';
-print anchor ("code/diff/{$project->id}/{$xpar}{$revreq}", $diff_anchor_text);
-print ' | ';
-
-if ($revision > 0)
-{
- if ($xpar == '') $revtrailer = $revreqroot;
- else $revtrailer = "/{$xpar}{$revreq}";
- print anchor ("code/history/{$project->id}{$revtrailer}", $history_anchor_text);
-}
-else
-{
- print anchor ("code/history/{$project->id}/{$xpar}", $history_anchor_text);
-}
-
-print ' | ';
-print anchor ("code/fetch/{$project->id}/${xpar}{$revreq}", $download_anchor_text);
-
-?>
-
-
-
- id}/${xpar}/{$file['prev_rev']}", '
');
+
+ id}/{$hex_headpath}/{$file['prev_rev']}", '');
print ' ';
// anchor to the revision history at the root directory
@@ -200,7 +196,7 @@ print anchor ("code/fetch/{$project->id}/${xpar}{$revreq}", $download_anchor_tex
print ('');
}
print ' ';
- print anchor ("code/blame/{$project->id}/${xpar}/{$file['next_rev']}", '');
+ print anchor ("code/blame/{$project->id}/{$hex_headpath}/{$file['next_rev']}", '');
print ' | ';
printf ('%s: %s', $this->lang->line('Size'), $file['size']);
@@ -208,10 +204,77 @@ print anchor ("code/fetch/{$project->id}/${xpar}{$revreq}", $download_anchor_tex
if ((isset($login['id']) && $login['id'] != ''))
{
print ' ';
- print anchor ("code/bledit/{$project->id}/{$xpar}{$revreq}", $this->lang->line('Edit'), 'id="code_blame_mainarea_edit_button"');
+ print anchor ("code/bledit/{$project->id}/{$hex_headpath}{$revreq}", $this->lang->line('Edit'), 'id="code_blame_mainarea_edit_button"');
}
+
+ print anchor ("#", "LOC", "id=code_blame_mainarea_loc_button");
+ ?>
+
+
+
+
+
+
+
+ ';
+ $user_icon_url = codepot_merge_path (site_url(), '/user/icon/' . $this->converter->AsciiToHex($file['last_author']));
+ print "
";
+ print htmlspecialchars ($file['last_author']);
+ print '
';
+
+ print '';
+
+ print '
';
+ printf ('[%s] ', $file['created_rev']);
+ print strftime ('%Y-%m-%d %H:%M:%S %z', $file['time_t']);
+ print '
';
?>
-
lang->line('Metadata')?>
+
+
+
+
+
+
+ 0)
+ {
+ print '
';
+ foreach ($file['properties'] as $pn => $pv)
+ {
+ print '- ';
+ print htmlspecialchars($pn);
+ if ($pv != '')
+ {
+ print ' - ';
+ print htmlspecialchars($pv);
+ }
+ print '
';
+ }
+ print '
';
+ }
+ ?>
+
@@ -259,7 +322,7 @@ if ($login['settings'] != NULL &&
$rev_to_show = $rev;
$xpar = $this->converter->AsciiTohex ($headpath);
- $rev_to_show = anchor ("code/blame/{$project->id}/{$xpar}/{$rev}", $rev_to_show);
+ $rev_to_show = anchor ("code/blame/{$project->id}/{$hex_headpath}/{$rev}", $rev_to_show);
}
else
{
@@ -340,41 +403,15 @@ if ($login['settings'] != NULL &&
?>
-
-
lang->line('CODE_COMMIT') ?>
-
-- lang->line('CODE_MSG_COMMITTED_BY_ON'), $file['last_author'], $file['time']); ?>
-
-
-
-
lang->line('Message') ?>
-
-
-
-
- 0)
-{
- print '
';
- print $this->lang->line('CODE_PROPERTIES');
- print '
';
-
- print '
';
- foreach ($file['properties'] as $pn => $pv)
- {
- print '- ';
- print htmlspecialchars($pn);
- print ' - ';
- print htmlspecialchars($pv);
- print '
';
- }
- print '
';
-}
-?>
-
-
-
-
+
+
LOC
+ id}/{$hex_headpath}{$revreq}");
+ print "
";
+ ?>
+
+