aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/accounts.component.html
blob: 1903bb36f10a0ce65145406b33a92f194975c7ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div *ngIf="account" class="row">
  <div class="sub-menu">

    <div class="actor">
      <img [src]="account.avatarUrl" alt="Avatar" />

      <div class="actor-info">
        <div class="actor-names">
          <div class="actor-display-name">{{ account.displayName }}</div>
          <div class="actor-name">
            <span>{{ account.nameWithHost }}</span>
            <button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()"
                    class="btn btn-outline-secondary btn-sm copy-button"
            >
              <span class="glyphicon glyphicon-duplicate"></span>
            </button>
          </div>
          <span *ngIf="accountUser?.blocked" [ngbTooltip]="accountUser.blockedReason" class="badge badge-danger" i18n>Banned</span>
          <span *ngIf="account.mutedByUser" class="badge badge-danger" i18n>Muted</span>
          <span *ngIf="account.mutedServerByUser" class="badge badge-danger" i18n>Instance muted</span>
          <span *ngIf="account.mutedByInstance" class="badge badge-danger" i18n>Muted by your instance</span>
          <span *ngIf="account.mutedServerByInstance" class="badge badge-danger" i18n>Instance muted by your instance</span>

          <my-user-moderation-dropdown
            [prependActions]="prependModerationActions"
            buttonSize="small" [account]="account" [user]="accountUser" placement="bottom-left auto"
            (userChanged)="onUserChanged()" (userDeleted)="onUserDeleted()"
          ></my-user-moderation-dropdown>
        </div>
        <div class="actor-followers" [title]="accountFollowerTitle">
          {{ subscribersDisplayFor(naiveAggregatedSubscribers) }}
        </div>
      </div>

      <div class="right-buttons">
        <a *ngIf="isAccountManageable && !isInSmallView" routerLink="/my-account" class="btn btn-outline-tertiary mr-2" i18n>Manage account</a>
        <my-subscribe-button *ngIf="videoChannels" [account]="account" [videoChannels]="videoChannels"></my-subscribe-button>
      </div>
    </div>

    <div class="links w-100">
      <ng-template #linkTemplate let-item="item">
        <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a>
      </ng-template>

      <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow>

      <simple-search-input (searchChanged)="searchChanged($event)" name="search-videos" i18n-placeholder placeholder="Search videos"></simple-search-input>
    </div>
  </div>

  <div class="margin-content">
    <router-outlet (activate)="onOutletLoaded($event)"></router-outlet>
  </div>
</div>

<ng-container *ngIf="prependModerationActions">
  <my-account-report #accountReportModal [account]="account"></my-account-report>
</ng-container>