aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-23 14:10:17 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-23 16:00:49 +0200
commit67ed6552b831df66713bac9e672738796128d33f (patch)
tree59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/shared/shared-user-subscription/remote-subscribe.component.html
parent0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff)
downloadPeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz
PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst
PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip
Reorganize client shared modules
Diffstat (limited to 'client/src/app/shared/shared-user-subscription/remote-subscribe.component.html')
-rw-r--r--client/src/app/shared/shared-user-subscription/remote-subscribe.component.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html
new file mode 100644
index 000000000..acfec0a8e
--- /dev/null
+++ b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.html
@@ -0,0 +1,32 @@
1<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
2 <div class="form-group mb-2">
3 <input type="email"
4 formControlName="text"
5 class="form-control"
6 (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()"
7 placeholder="jane_doe@example.com">
8 </div>
9
10 <button type="submit" [disabled]="!form.valid" class="btn btn-sm btn-remote-follow" i18n>
11 <span *ngIf="!interact">Remote subscribe</span>
12 <span *ngIf="interact">Remote interact</span>
13 </button>
14
15 <my-help *ngIf="!interact && showHelp">
16 <ng-template ptTemplate="customHtml">
17 <ng-container i18n>
18 You can subscribe to the channel via any ActivityPub-capable fediverse instance.<br /><br />
19 For instance with Mastodon or Pleroma you can type the channel URL in the search box and subscribe there.
20 </ng-container>
21 </ng-template>
22 </my-help>
23
24 <my-help *ngIf="showHelp && interact">
25 <ng-template ptTemplate="customHtml">
26 <ng-container i18n>
27 You can interact with this via any ActivityPub-capable fediverse instance.<br /><br />
28 For instance with Mastodon or Pleroma you can type the current URL in the search box and interact with it there.
29 </ng-container>
30 </ng-template>
31 </my-help>
32</form>