]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/comment/video-comment-add.component.html
Add emoji list to markdown infos
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment-add.component.html
CommitLineData
4635f59d 1<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
cf117aaa 2 <div class="avatar-and-textarea">
660d11e9 3 <img [src]="getAvatarUrl()" alt="Avatar" />
cf117aaa
C
4
5 <div class="form-group">
ee3bd9db 6 <textarea i18n-placeholder placeholder="Add comment..." myAutoResize
7 [readonly]="(user === null) ? true : false"
8 (click)="openVisitorModal($event)"
9 formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
10 (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
fd9c3c8d 11
12 </textarea>
ee3bd9db 13 <my-help class="markdown-guide" helpType="custom" iconName="markdown" tooltipPlacement="left auto" i18n-title title="Markdown compatible">
3c176894 14 <ng-template ptTemplate="customHtml">
fd9c3c8d 15 <span i18n>Markdown compatible that supports:</span>
3c176894 16
fd9c3c8d 17 <ul>
18 <li><span i18n>Auto generated links</span></li>
19 <li><span i18n>Break lines</span></li>
20 <li><span i18n>Lists</span></li>
21 <li>
22 <span i18n>Emphasis</span>
23 <code>**<strong i18n>bold</strong>** _<i i18n>italic</i>_</code>
24 </li>
25 <li>
26 <span i18n>Emoji shortcuts</span>
27 <code>:) &lt;3</code>
28 </li>
29 <li>
30 <span i18n>Emoji markup</span>
31 <code>:smile:</code>
ee3bd9db 32 <div><a href="" (click)="openEmojiModal($event)" i18n>See complete list</a></div>
fd9c3c8d 33 </li>
34 </ul>
3c176894 35 </ng-template>
36 </my-help>
cf117aaa
C
37 <div *ngIf="formErrors.text" class="form-error">
38 {{ formErrors.text }}
39 </div>
4635f59d
C
40 </div>
41 </div>
42
88adad2d 43 <div class="comment-buttons">
79671021 44 <button *ngIf="isAddButtonDisplayed()" class="cancel-button" (click)="cancelCommentReply()" type="button" i18n>
88adad2d
RK
45 Cancel
46 </button>
cb54210c 47 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid || addingComment }">
48 {{ addingCommentButtonValue }}
4635f59d
C
49 </button>
50 </div>
51</form>
660d11e9
RK
52
53<ng-template #visitorModal let-modal>
54 <div class="modal-header">
55 <h4 class="modal-title" id="modal-basic-title" i18n>You are one step away from commenting</h4>
ee3bd9db 56 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideModals()"></my-global-icon>
660d11e9 57 </div>
28da43cf 58 <div class="modal-body">
660d11e9 59 <span i18n>
54e78847 60 You can comment using an account on any ActivityPub-compatible instance.
8be9f43a
RK
61 On most platforms, you can find the video by typing its URL in the search bar and then comment it
62 from within the software's interface.
63 </span>
64 <span i18n>
65 If you have an account on Mastodon or Pleroma, you can open it directly in their interface:
660d11e9 66 </span>
3ddb1ec5 67 <my-remote-subscribe [interact]="true" [uri]="getUri()"></my-remote-subscribe>
660d11e9
RK
68 </div>
69 <div class="modal-footer inputs">
a6d5ff76
RK
70 <input
71 type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel"
ee3bd9db 72 (click)="hideModals()" (key.enter)="hideModals()"
a6d5ff76 73 >
54e78847
RK
74
75 <input
76 type="submit" i18n-value value="Login to comment" class="action-button-submit"
77 (click)="gotoLogin()"
78 >
660d11e9
RK
79 </div>
80</ng-template>
ee3bd9db 81
82<ng-template #emojiModal>
83 <div class="modal-header">
84 <h4 class="modal-title" id="modal-basic-title" i18n>Markdown Emoji List</h4>
85 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideModals()"></my-global-icon>
86 </div>
87 <div class="modal-body">
88 <table class="table-emoji" *ngFor="let emojiMarkup of emojiMarkupList | keyvalue">
89 <tr>
90 <td>
91 <span>{{ emojiMarkup.value }}</span>
92 </td>
93 <td>
94 <code>:{{ emojiMarkup.key }}:</code>
95 </td>
96 </tr>
97 </table>
98 </div>
99</ng-template>