Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/view/PhabricatorProjectCardView.php
Show All 30 Lines | final class PhabricatorProjectCardView extends AphrontTagView { | ||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
$classes = array(); | $classes = array(); | ||||
$classes[] = 'project-card-view'; | $classes[] = 'project-card-view'; | ||||
$color = $this->project->getColor(); | $color = $this->project->getColor(); | ||||
$classes[] = 'project-card-'.$color; | $classes[] = 'project-card-'.$color; | ||||
return array( | return array( | ||||
'class' => implode($classes, ' '), | 'class' => implode(' ', $classes), | ||||
); | ); | ||||
} | } | ||||
protected function getTagContent() { | protected function getTagContent() { | ||||
$project = $this->project; | $project = $this->project; | ||||
$viewer = $this->viewer; | $viewer = $this->viewer; | ||||
require_celerity_resource('project-card-view-css'); | require_celerity_resource('project-card-view-css'); | ||||
Show All 37 Lines |