mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Don't link commit uri in Crumbs
Summary: These are not needed I think? and handy for cut and paste. Fixes T7628 Test Plan: cut and paste easier from commit hash. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T7628 Differential Revision: https://secure.phabricator.com/D15245
This commit is contained in:
parent
5383ea9d56
commit
f163d83935
1 changed files with 2 additions and 3 deletions
|
@ -147,7 +147,7 @@ abstract class DiffusionController extends PhabricatorController {
|
||||||
$crumb_list[] = $crumb;
|
$crumb_list[] = $crumb;
|
||||||
|
|
||||||
$stable_commit = $drequest->getStableCommit();
|
$stable_commit = $drequest->getStableCommit();
|
||||||
$commit_name = $repository->formatCommitName($stable_commit);
|
$commit_name = $repository->formatCommitName($stable_commit, $local = true);
|
||||||
$commit_uri = $repository->getCommitURI($stable_commit);
|
$commit_uri = $repository->getCommitURI($stable_commit);
|
||||||
|
|
||||||
if ($spec['tags']) {
|
if ($spec['tags']) {
|
||||||
|
@ -171,8 +171,7 @@ abstract class DiffusionController extends PhabricatorController {
|
||||||
|
|
||||||
if ($spec['commit']) {
|
if ($spec['commit']) {
|
||||||
$crumb = id(new PHUICrumbView())
|
$crumb = id(new PHUICrumbView())
|
||||||
->setName($commit_name)
|
->setName($commit_name);
|
||||||
->setHref($commit_uri);
|
|
||||||
$crumb_list[] = $crumb;
|
$crumb_list[] = $crumb;
|
||||||
return $crumb_list;
|
return $crumb_list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue