mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Use callsigns, cards on repository lists
Summary: Minor, adds the Callsign and changes to cards view when listing repositories. Test Plan: Reload sandbox list of repositories, see new items. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8036
This commit is contained in:
parent
c5c9cd415d
commit
ad8d17f579
1 changed files with 2 additions and 0 deletions
|
@ -36,12 +36,14 @@ final class DiffusionRepositoryListController extends DiffusionController
|
|||
$project_handles = $this->loadViewerHandles($project_phids);
|
||||
|
||||
$list = new PHUIObjectItemListView();
|
||||
$list->setCards(true);
|
||||
foreach ($repositories as $repository) {
|
||||
$id = $repository->getID();
|
||||
|
||||
$item = id(new PHUIObjectItemView())
|
||||
->setUser($viewer)
|
||||
->setHeader($repository->getName())
|
||||
->setObjectName('r'.$repository->getCallsign())
|
||||
->setHref($this->getApplicationURI($repository->getCallsign().'/'));
|
||||
|
||||
$commit = $repository->getMostRecentCommit();
|
||||
|
|
Loading…
Reference in a new issue