Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

1.0 KB
Raw Blame
<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
  <div class="form-group">
    <input
      type="email"
      formControlName="text"
      class="form-control"
      (keyup.control.enter)="onValidKey()"
      (keyup.meta.enter)="onValidKey()"
      placeholder="[email protected]"
    >
  </div>

  <button type="submit" [disabled]="!form.valid" class="peertube-button primary-button">
    @if (interact()) {
      <span i18n>Remote interact</span>
    } @else {
      <span i18n>Remote subscribe</span>
    }
  </button>

  @if (showHelp()) {
    @if (!interact()) {
      <my-help>
        <ng-container i18n>
          You can subscribe to the channel via any ActivityPub-capable fediverse instance (PeerTube or Mastodon for example).
        </ng-container>
      </my-help>
    } @else {
      <my-help>
        <ng-container i18n>
          You can interact with this via any ActivityPub-capable fediverse instance (PeerTube or Mastodon for example).
        </ng-container>
      </my-help>
    }
  }
</form>