Use status header stuff for "Edit Repository"
Summary: Ref T2231. Use status info element instead of tags.
Test Plan: {F75092}
Reviewers: chad, btrahan
Reviewed By: chad
CC: aran
Maniphest Tasks: T2231
Differential Revision: https://secure.phabricator.com/D7411
			
			
This commit is contained in:
		@@ -41,12 +41,10 @@ final class DiffusionRepositoryEditMainController
 | 
			
		||||
 | 
			
		||||
    $header = id(new PHUIHeaderView())
 | 
			
		||||
      ->setHeader($title);
 | 
			
		||||
    if (!$repository->isTracked()) {
 | 
			
		||||
      $header->addTag(
 | 
			
		||||
        id(new PhabricatorTagView())
 | 
			
		||||
          ->setType(PhabricatorTagView::TYPE_STATE)
 | 
			
		||||
          ->setName(pht('Inactive'))
 | 
			
		||||
          ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK));
 | 
			
		||||
    if ($repository->isTracked()) {
 | 
			
		||||
      $header->setStatus('oh-ok', '', pht('Active'));
 | 
			
		||||
    } else {
 | 
			
		||||
      $header->setStatus('policy-noone', '', pht('Inactive'));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $basic_actions = $this->buildBasicActions($repository);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user