private function renderChangesetLink(DifferentialChangeset $changeset, $ref) { $display_file = $changeset->getDisplayFilename(); return javelin_render_tag('a', array('href' => '#' . $changeset->getAnchorName(), 'meta' => array('id' => 'diff-' . $changeset->getAnchorName(), 'ref' => $ref), 'sigil' => 'differential-load'), phutil_escape_html($display_file)); }
private function renderChangesetLink(DifferentialChangeset $changeset, $ref, $display_file) { return javelin_tag('a', array('href' => '#' . $changeset->getAnchorName(), 'sigil' => 'differential-load', 'meta' => array('id' => 'diff-' . $changeset->getAnchorName())), $display_file); }
private function renderChangesetLink(DifferentialChangeset $changeset) { $display_file = $changeset->getDisplayFilename(); if ($this->standaloneViewLink) { $id = $changeset->getID(); $vs_id = idx($this->vsMap, $id); $ref = $vs_id ? $id . '/' . $vs_id : $id; $detail_uri = new PhutilURI($this->renderURI); $detail_uri->setQueryParams(array('ref' => $ref, 'whitespace' => $this->whitespace, 'revision_id' => $this->revisionID)); return phutil_render_tag('a', array('href' => $detail_uri, 'target' => '_blank'), phutil_escape_html($display_file)); } return phutil_render_tag('a', array('href' => '#' . $changeset->getAnchorName()), phutil_escape_html($display_file)); }