refactor subscribe button and comment-add for visitor-interact UX (#1100)
[oweals/peertube.git] / client / src / app / shared / user-subscription / remote-subscribe.component.html
1 <form novalidate [formGroup]="form" 
2       (ngSubmit)="formValidated()">
3   <div class="form-group">
4     <input type="email"
5       formControlName="text"
6       class="form-control"
7       (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()"
8       placeholder="jane_doe@example.com">
9   </div>
10   <button type="submit"
11     [disabled]="!form.valid"
12     class="btn btn-sm btn-remote-follow"
13     i18n>
14     <span *ngIf="!interact">Remote subscribe</span>
15     <span *ngIf="interact">Remote interact</span>
16   </button>
17   <my-help *ngIf="!interact && showHelp"
18            helpType="custom"
19            i18n-customHtml customHtml="You can subscribe to the channel via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type the channel URL in the search box and subscribe there.">
20   </my-help>
21   <my-help *ngIf="showHelp && interact"
22            helpType="custom"
23            i18n-customHtml customHtml="You can interact with this via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type the current URL in the search box and interact with it there.">
24   </my-help>
25 </form>