Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/view/PhabricatorAuditListView.php
Show First 20 Lines • Show All 151 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) | ||||
->addAttribute($status_text) | ->addAttribute(pht('Author: %s', $author_name)) | ||||
->addAttribute($reasons) | ->addAttribute($reasons) | ||||
->addIcon('none', $committed) | ->addIcon('none', $committed); | ||||
->setSubHead(pht('Author: %s', $author_name)); | |||||
if (!empty($auditors)) { | if (!empty($auditors)) { | ||||
$item->addByLine(pht('Auditors: %s', $auditors)); | $item->addByLine(pht('Auditors: %s', $auditors)); | ||||
} | } | ||||
if ($status_color) { | if ($status_color) { | ||||
$item->setStatusIcon('fa-exclamation-triangle '.$status_color); | $item->setStatusIcon( | ||||
'fa-exclamation-triangle '.$status_color, $status_text); | |||||
} | } | ||||
$list->addItem($item); | $list->addItem($item); | ||||
} | } | ||||
if ($this->noDataString) { | if ($this->noDataString) { | ||||
$list->setNoDataString($this->noDataString); | $list->setNoDataString($this->noDataString); | ||||
} | } | ||||
return $list; | return $list; | ||||
} | } | ||||
} | } |