Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/view/PhabricatorAuditListView.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | foreach ($this->commits as $commit) { | ||||
} else { | } else { | ||||
$author_name = $commit->getCommitData()->getAuthorName(); | $author_name = $commit->getCommitData()->getAuthorName(); | ||||
} | } | ||||
$item = id(new PHUIObjectItemView()) | $item = id(new PHUIObjectItemView()) | ||||
->setObjectName($commit_name) | ->setObjectName($commit_name) | ||||
->setHeader($commit_desc) | ->setHeader($commit_desc) | ||||
->setHref($commit_link) | ->setHref($commit_link) | ||||
->setDisabled($commit->isUnreachable()) | |||||
->addByline(pht('Author: %s', $author_name)) | ->addByline(pht('Author: %s', $author_name)) | ||||
->addIcon('none', $committed); | ->addIcon('none', $committed); | ||||
if ($show_drafts) { | if ($show_drafts) { | ||||
if ($commit->getHasDraft($viewer)) { | if ($commit->getHasDraft($viewer)) { | ||||
$item->addAttribute($draft_icon); | $item->addAttribute($draft_icon); | ||||
} | } | ||||
} | } | ||||
Show All 31 Lines |