Permalink
Browse files

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
  • Loading branch information...
vrana
vrana committed Oct 9, 2012
1 parent 07db53b commit 4b4e140f7b444b96dda8a75485630ceb511a8085
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/view/layout/PhabricatorPinboardItemView.php
@@ -49,13 +49,13 @@ public function setImageSize($x, $y) {
public function render() {
$header = null;
if ($this->header) {
+ $header = hsprintf('<a href="%s">%s</a>', $this->uri, $this->header);
$header = phutil_render_tag(
- 'a',
+ 'div',
array(
- 'href' => $this->uri,
'class' => 'phabricator-pinboard-item-header',
),
- phutil_escape_html($this->header));
+ $header);
}
$image = phutil_render_tag(

0 comments on commit 4b4e140

Please sign in to comment.