Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/view/PonderVotableView.php
Show All 22 Lines | final class PonderVotableView extends AphrontView { | ||||
} | } | ||||
public function setVote($vote) { | public function setVote($vote) { | ||||
$this->vote = $vote; | $this->vote = $vote; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function render() { | public function render() { | ||||
require_celerity_resource('ponder-vote-css'); | require_celerity_resource('ponder-view-css'); | ||||
require_celerity_resource('javelin-behavior-ponder-votebox'); | require_celerity_resource('javelin-behavior-ponder-votebox'); | ||||
Javelin::initBehavior('ponder-votebox', array()); | Javelin::initBehavior('ponder-votebox', array()); | ||||
$uri = id(new PhutilURI($this->uri))->alter('phid', $this->phid); | $uri = id(new PhutilURI($this->uri))->alter('phid', $this->phid); | ||||
$up = javelin_tag( | $up = javelin_tag( | ||||
'a', | 'a', | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |