mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +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;
|
$comment_anchor = null;
|
||||||
$num = $this->commentNumber;
|
$num = $this->commentNumber;
|
||||||
if ($num) {
|
if ($num && !$this->preview) {
|
||||||
Javelin::initBehavior('phabricator-watch-anchor');
|
Javelin::initBehavior('phabricator-watch-anchor');
|
||||||
$info[] = phutil_render_tag(
|
$info[] = phutil_render_tag(
|
||||||
'a',
|
'a',
|
||||||
|
|
|
@ -183,10 +183,9 @@ class ManiphestTransactionDetailView extends AphrontView {
|
||||||
$info = array();
|
$info = array();
|
||||||
$info[] = $timestamp;
|
$info[] = $timestamp;
|
||||||
|
|
||||||
|
|
||||||
$comment_anchor = null;
|
$comment_anchor = null;
|
||||||
$num = $this->commentNumber;
|
$num = $this->commentNumber;
|
||||||
if ($num) {
|
if ($num && !$this->preview) {
|
||||||
Javelin::initBehavior('phabricator-watch-anchor');
|
Javelin::initBehavior('phabricator-watch-anchor');
|
||||||
$info[] = javelin_render_tag(
|
$info[] = javelin_render_tag(
|
||||||
'a',
|
'a',
|
||||||
|
|
Loading…
Reference in a new issue