Page MenuHomec4science

ReleephRevisionFieldSpecification.php
No OneTemporary

File Metadata

Created
Mon, Dec 23, 02:26

ReleephRevisionFieldSpecification.php

<?php
final class ReleephRevisionFieldSpecification
extends ReleephFieldSpecification {
public function getName() {
return 'Revision';
}
public function renderValueForHeaderView() {
$phid = $this
->getReleephRequest()
->loadRequestCommitDiffPHID();
if (!$phid) {
return null;
}
$handles = $this->getReleephRequest()->getHandles();
$handle = $handles[$phid];
$link = $handle
// Hack to remove the strike-through rendering of diff links
->setStatus(null)
->renderLink();
return phutil_tag(
'div',
array(
'class' => 'releeph-header-text-truncated',
),
$link);
}
}

Event Timeline