diff --git a/codepot/src/codepot/views/code_blame.php b/codepot/src/codepot/views/code_blame.php index c2dab8e2..ba331df9 100644 --- a/codepot/src/codepot/views/code_blame.php +++ b/codepot/src/codepot/views/code_blame.php @@ -50,7 +50,12 @@ $(function () { }); -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/code_diff.php b/codepot/src/codepot/views/code_diff.php index cbfca6dd..2cc4f97d 100644 --- a/codepot/src/codepot/views/code_diff.php +++ b/codepot/src/codepot/views/code_diff.php @@ -12,7 +12,12 @@ -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 87bd7e86..31f14c3d 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -77,7 +77,12 @@ function showRawCode() -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/code_folder.php b/codepot/src/codepot/views/code_folder.php index 24fa1b77..be0da14e 100644 --- a/codepot/src/codepot/views/code_folder.php +++ b/codepot/src/codepot/views/code_folder.php @@ -185,7 +185,12 @@ $(function () { -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/code_history.php b/codepot/src/codepot/views/code_history.php index bf0a7f77..d5bf7efe 100644 --- a/codepot/src/codepot/views/code_history.php +++ b/codepot/src/codepot/views/code_history.php @@ -6,7 +6,12 @@ -<?=htmlspecialchars($project->name)?> +<?php + if ($fullpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($fullpath)); +?> diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index e5b8bfde..8aef6d7d 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -174,7 +174,12 @@ function render_wiki() } -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/code_search.php b/codepot/src/codepot/views/code_search.php index ff1d54aa..7a2e41c1 100644 --- a/codepot/src/codepot/views/code_search.php +++ b/codepot/src/codepot/views/code_search.php @@ -16,7 +16,12 @@ $file_count = count($file['content']); ?> -<?=htmlspecialchars($project->name)?> +<?php + if ($headpath == '') + printf ('%s', htmlspecialchars($project->name)); + else + printf ('%s-%s', htmlspecialchars($project->name), htmlspecialchars($headpath)); +?> diff --git a/codepot/src/codepot/views/file_show.php b/codepot/src/codepot/views/file_show.php index 007b9d00..98bbd1a3 100644 --- a/codepot/src/codepot/views/file_show.php +++ b/codepot/src/codepot/views/file_show.php @@ -57,7 +57,7 @@ function render_wiki() } -<?=htmlspecialchars($file->name)?> +<?=htmlspecialchars($project->name)?> - <?=htmlspecialchars($file->name)?> diff --git a/codepot/src/codepot/views/issue_show.php b/codepot/src/codepot/views/issue_show.php index 6dd406c5..f1f31721 100644 --- a/codepot/src/codepot/views/issue_show.php +++ b/codepot/src/codepot/views/issue_show.php @@ -151,7 +151,7 @@ $(function () { }); -<?=htmlspecialchars($project->id)?> <?=htmlspecialchars($issue->type)?> <?=htmlspecialchars($issue->id)?> +<?=htmlspecialchars($project->name)?> - <?=$this->lang->line('Issue')?> <?=htmlspecialchars($issue->id)?> diff --git a/codepot/src/codepot/views/wiki_show.php b/codepot/src/codepot/views/wiki_show.php index c6d07847..8e472c04 100644 --- a/codepot/src/codepot/views/wiki_show.php +++ b/codepot/src/codepot/views/wiki_show.php @@ -19,7 +19,9 @@ -<?=htmlspecialchars($wiki->name)?> +<?php + printf ('%s - %s', htmlspecialchars($project->name), htmlspecialchars($wiki->name)); +?>