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:
		@@ -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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user