aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/instance/instance-features-table.component.html
blob: 845876f5564fd158f6aaa0f2fc9480471dffc220 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<div class="feature-table">

  <table class="table" *ngIf="config">
    <tr>
      <td i18n class="label">
        <div>Default NSFW/sensitive videos policy</div>
        <div class="more-info">can be redefined by the users</div>
      </td>

      <td class="value">{{ buildNSFWLabel() }}</td>
    </tr>

    <tr>
      <td i18n class="label">User registration allowed</td>
      <td>
        <my-feature-boolean [value]="config.signup.allowed"></my-feature-boolean>
      </td>
    </tr>

    <tr>
      <td i18n class="label" colspan="2">Video uploads</td>
    </tr>

    <tr>
      <td i18n class="sub-label">Transcoding in multiple resolutions</td>
      <td>
        <my-feature-boolean [value]="config.transcoding.enabledResolutions.length !== 0"></my-feature-boolean>
      </td>
    </tr>

    <tr>
      <td i18n class="sub-label">Video uploads</td>
      <td>
        <span *ngIf="config.autoBlacklist.videos.ofUsers.enabled">Requires manual validation by moderators</span>
        <span *ngIf="!config.autoBlacklist.videos.ofUsers.enabled">Automatically published</span>
      </td>
    </tr>

    <tr>
      <td i18n class="sub-label">Video quota</td>

      <td class="value">
        <ng-container *ngIf="initialUserVideoQuota !== -1">
          {{ initialUserVideoQuota | bytes: 0 }} <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>

          <my-help tooltipPlacement="auto" helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
        </ng-container>

        <ng-container i18n *ngIf="initialUserVideoQuota === -1">
          Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
        </ng-container>
      </td>
    </tr>

    <tr>
      <td i18n class="label" colspan="2">Import</td>
    </tr>

    <tr>
      <td i18n class="sub-label">HTTP import (YouTube, Vimeo, direct URL...)</td>
      <td>
        <my-feature-boolean [value]="config.import.videos.http.enabled"></my-feature-boolean>
      </td>
    </tr>

    <tr>
      <td i18n class="sub-label">Torrent import</td>
      <td>
        <my-feature-boolean [value]="config.import.videos.torrent.enabled"></my-feature-boolean>
      </td>
    </tr>


    <tr>
      <td i18n class="label" colspan="2">Player</td>
    </tr>

    <tr>
      <td i18n class="sub-label">P2P enabled</td>
      <td>
        <my-feature-boolean [value]="config.tracker.enabled"></my-feature-boolean>
      </td>
    </tr>
  </table>
</div>