1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Don't render "Comment T1#1" links on previews

Summary:
I somehow missed this, we render silly nonsense in the comment previews right
now. Don't render these links if we're rendering a preview.

Test Plan:
Looked at comment previews, less nonsense.

Reviewed By: tuomaspelkonen
Reviewers: aran, jungejason, tuomaspelkonen
CC: aran, tuomaspelkonen
Differential Revision: 388
This commit is contained in:
epriestley 2011-05-31 19:19:11 -07:00
parent e96c0394f0
commit df2cbf1d29
2 changed files with 2 additions and 3 deletions

View file

@ -88,7 +88,7 @@ final class DifferentialRevisionCommentView extends AphrontView {
$comment_anchor = null;
$num = $this->commentNumber;
if ($num) {
if ($num && !$this->preview) {
Javelin::initBehavior('phabricator-watch-anchor');
$info[] = phutil_render_tag(
'a',

View file

@ -183,10 +183,9 @@ class ManiphestTransactionDetailView extends AphrontView {
$info = array();
$info[] = $timestamp;
$comment_anchor = null;
$num = $this->commentNumber;
if ($num) {
if ($num && !$this->preview) {
Javelin::initBehavior('phabricator-watch-anchor');
$info[] = javelin_render_tag(
'a',