mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
e96c0394f0
commit
df2cbf1d29
2 changed files with 2 additions and 3 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue