1 <form novalidate [formGroup]=
"form" (ngSubmit)=
"formValidated()">
2 <div class=
"avatar-and-textarea">
3 <img [src]=
"getAvatarUrl()" alt=
"Avatar" />
5 <div class=
"form-group">
6 <my-help class=
"markdown-guide" helpType=
"custom" iconName=
"markdown" i18n-title
title=
"Markdown compatible">
7 <ng-template ptTemplate=
"customHtml">
9 Markdown compatible that supports:
12 <li>Emphasis:
<strong>**bold**
</strong>,
<i>_italic_
</i></li>
21 <textarea i18n-placeholder
placeholder=
"Add comment..." myAutoResize
22 [readonly]=
"(user === null) ? true : false"
23 (click)=
"openVisitorModal($event)"
24 formControlName=
"text" [ngClass]=
"{ 'input-error': formErrors['text'] }"
25 (keyup.control.enter)=
"onValidKey()" (keyup.meta.enter)=
"onValidKey()" #textarea
>
28 <div *
ngIf=
"formErrors.text" class=
"form-error">
34 <div class=
"comment-buttons">
35 <button *
ngIf=
"isAddButtonDisplayed()" class=
"cancel-button" (click)=
"cancelCommentReply()" type=
"button" i18n
>
38 <button *
ngIf=
"isAddButtonDisplayed()" [ngClass]=
"{ disabled: !form.valid || addingComment }">
39 {{ addingCommentButtonValue }}
44 <ng-template #visitorModal let-modal
>
45 <div class=
"modal-header">
46 <h4 class=
"modal-title" id=
"modal-basic-title" i18n
>You are one step away from commenting
</h4>
47 <my-global-icon iconName=
"cross" aria-label=
"Close" role=
"button" (click)=
"hideVisitorModal()"></my-global-icon>
49 <div class=
"modal-body">
51 You can comment using an account on any ActivityPub-compatible instance.
52 On most platforms, you can find the video by typing its URL in the search bar and then comment it
53 from within the software's interface.
56 If you have an account on Mastodon or Pleroma, you can open it directly in their interface:
58 <my-remote-subscribe [interact]=
"true" [uri]=
"getUri()"></my-remote-subscribe>
60 <div class=
"modal-footer inputs">
62 type=
"button" role=
"button" i18n-value
value=
"Cancel" class=
"action-button action-button-cancel"
63 (click)=
"hideVisitorModal()" (key.enter)=
"hideVisitorModal()"
67 type=
"submit" i18n-value
value=
"Login to comment" class=
"action-button-submit"