Make image macro name selectable
Test Plan: Double clicked near macro name. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3668
This commit is contained in:
@@ -49,13 +49,13 @@ final class PhabricatorPinboardItemView extends AphrontView {
|
|||||||
public function render() {
|
public function render() {
|
||||||
$header = null;
|
$header = null;
|
||||||
if ($this->header) {
|
if ($this->header) {
|
||||||
|
$header = hsprintf('<a href="%s">%s</a>', $this->uri, $this->header);
|
||||||
$header = phutil_render_tag(
|
$header = phutil_render_tag(
|
||||||
'a',
|
'div',
|
||||||
array(
|
array(
|
||||||
'href' => $this->uri,
|
|
||||||
'class' => 'phabricator-pinboard-item-header',
|
'class' => 'phabricator-pinboard-item-header',
|
||||||
),
|
),
|
||||||
phutil_escape_html($this->header));
|
$header);
|
||||||
}
|
}
|
||||||
|
|
||||||
$image = phutil_render_tag(
|
$image = phutil_render_tag(
|
||||||
|
|||||||
Reference in New Issue
Block a user