{if $postResponses|@count eq 0} {*Be the first to post a comment*} {else} {if !$user->isGuest() && !$user->isInvalid()}
{if $categoryaccess->getData('canPostComments') && $cPost->data.post_moderationstatus lt 2 && $isCurrentPhase} + {"Add your comment"|gettext} {else}
+ {"Comments are closed"|gettext}
{/if}
{/if}

{"Comments"|gettext} ({$postResponses|@count})

{foreach from=$postResponses item=cComment}
{include file="$templateSource/html/post/view_comments_comment.html"}
{/foreach} {/if} {if !$categoryaccess->getData('canVoteComments')}
{"Voting on comments has been closed in this challenge"|gettext}
{/if} {if is_object($currentMilestone)} {assign var=milestone_allow_comments value=$currentMilestone->data.milestone_allowcomments} {else} {assign var=milestone_allow_comments value=true} {/if} {if !$user->isGuest() && !$user->isInvalid()} {if $postResponses|@count ne 0 && $allowComment && $cPost->data.post_moderationstatus neq 5 && $milestone_allow_comments} {"Add your comment"|gettext} {else if !$milestone_allow_comments || $cPost->data.post_moderationstatus eq 5}
+ {"Comments are closed"|gettext}
{/if} {/if}
{if $user->isGuest()}

{"SIGN IN or REGISTER NOW to join the discussion"|gettext}

{elseif $user->isInvalid()} Validate your email address to join the discussion {else}
getData('canPostComments')}style="display:none;"{/if}> {if $allowComment && $cPost->data.post_moderationstatus neq 5 && $milestone_allow_comments}
{if $current_milestone_id} {/if}
{assign var='selectedFile' value=$user->joined.obj_user_profilepic} data.user_id}>{$user->getDisplayName()|escape}
{if $hubbub->hubbub_arrOptions.userTagsEnabledOnComments eq 1}
{"Notify individual users about this comment by typing their names here"|gettext}
{if count($userTags) eq 0} {else} {*foreach from=$userTags item=userTag} {if $userTag ne ''} {assign var='selectedFile' value=$userTag->joined.obj_user_profilepic}
{$userTag->getDisplayName()}  X
{/if} {/foreach*} {/if}
{/if}
{if isset($errors.post_text)}
{$errors.post_text}
{/if}
{**}
data.user_id,$userFollowingPostIds)} checked{/if} type="checkbox" name="subscribeToIdea" value="1" id="subscribeToIdea" data-tip="{'You will receive a notification each time a comment is posted to this idea'|gettext}" />
{if !$isCurrentPhase && $allowCommentBecauseModerator}

As a moderator, you can add comments to ideas in previous phases.

{/if}
{else} {if !$isCurrentPhase && !$isFuturePhase} {"Comments cannot be added to old versions of ideas"|gettext} {elseif $isFuturePhase} {else} {"Comments have been closed in this challenge"|gettext} {/if} {/if}
{/if} {if $allowComment} {/if}