<img [src]="getAvatarUrl()" alt="Avatar" />
<div class="form-group">
- <my-help class="markdown-guide" helpType="custom" iconName="markdown" i18n-title title="Markdown compatible">
- <ng-template ptTemplate="customHtml">
- <div i18n>
- Markdown compatible that supports:
-
- <ul>
- <li>Emphasis: <strong>**bold**</strong>, <i>_italic_</i></li>
- <li>Links</li>
- <li>Break lines</li>
- <li>Lists</li>
- </ul>
- </div>
- </ng-template>
- </my-help>
<textarea i18n-placeholder placeholder="Add comment..." myAutoResize
[readonly]="(user === null) ? true : false"
(click)="openVisitorModal($event)"
(keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
</textarea>
+ <my-help class="markdown-guide" helpType="custom" iconName="markdown" tooltipPlacement="left auto" autoClose="true" i18n-title title="Markdown compatible">
+ <ng-template ptTemplate="customHtml">
+ <span i18n>Markdown compatible that supports:</span>
+
+ <ul>
+ <li><span i18n>Auto generated links</span></li>
+ <li><span i18n>Break lines</span></li>
+ <li><span i18n>Lists</span></li>
+ <li>
+ <span i18n>Emphasis</span>
+ <code>**<strong i18n>bold</strong>** _<i i18n>italic</i>_</code>
+ </li>
+ <li>
+ <span i18n>Emoji shortcuts</span>
+ <code>:) <3</code>
+ </li>
+ <li>
+ <span i18n>Emoji markup</span>
+ <code>:smile:</code>
+ <div><a href="" (click)="openEmojiModal($event)" i18n>See complete list</a></div>
+ </li>
+ </ul>
+ </ng-template>
+ </my-help>
<div *ngIf="formErrors.text" class="form-error">
{{ formErrors.text }}
</div>
<ng-template #visitorModal let-modal>
<div class="modal-header">
<h4 class="modal-title" id="modal-basic-title" i18n>You are one step away from commenting</h4>
- <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideVisitorModal()"></my-global-icon>
+ <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideModals()"></my-global-icon>
</div>
<div class="modal-body">
<span i18n>
<div class="modal-footer inputs">
<input
type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel"
- (click)="hideVisitorModal()" (key.enter)="hideVisitorModal()"
+ (click)="hideModals()" (key.enter)="hideModals()"
>
<input
>
</div>
</ng-template>
+
+<ng-template #emojiModal>
+ <div class="modal-header">
+ <h4 class="modal-title" id="modal-basic-title" i18n>Markdown Emoji List</h4>
+ <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideModals()"></my-global-icon>
+ </div>
+ <div class="modal-body">
+ <div class="emoji-flex">
+ <div class="emoji-flex-item" *ngFor="let emojiMarkup of emojiMarkupList">
+ {{ emojiMarkup[0] }} <code>:{{ emojiMarkup[1] }}:</code>
+ </div>
+ </div>
+ </div>
+</ng-template>