]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/instance/instance-features-table.component.html
Improve features table
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / instance / instance-features-table.component.html
1 <div class="feature-table">
2
3 <table class="table" *ngIf="config">
4 <tr>
5 <td i18n class="label">
6 <div>Default NSFW/sensitive videos policy</div>
7 <div class="more-info">can be redefined by the users</div>
8 </td>
9
10 <td class="value">{{ buildNSFWLabel() }}</td>
11 </tr>
12
13 <tr>
14 <td i18n class="label">User registration allowed</td>
15 <td>
16 <my-feature-boolean [value]="config.signup.allowed"></my-feature-boolean>
17 </td>
18 </tr>
19
20 <tr>
21 <td i18n class="label" colspan="2">Video uploads</td>
22 </tr>
23
24 <tr>
25 <td i18n class="sub-label">Transcoding in multiple resolutions</td>
26 <td>
27 <my-feature-boolean [value]="config.transcoding.enabledResolutions.length !== 0"></my-feature-boolean>
28 </td>
29 </tr>
30
31 <tr>
32 <td i18n class="sub-label">Video uploads</td>
33 <td>
34 <span *ngIf="config.autoBlacklist.videos.ofUsers.enabled">Requires manual validation by moderators</span>
35 <span *ngIf="!config.autoBlacklist.videos.ofUsers.enabled">Automatically published</span>
36 </td>
37 </tr>
38
39 <tr>
40 <td i18n class="sub-label">Video quota</td>
41
42 <td class="value">
43 <ng-container *ngIf="initialUserVideoQuota !== -1">
44 {{ initialUserVideoQuota | bytes: 0 }} <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
45
46 <my-help tooltipPlacement="auto" helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
47 </ng-container>
48
49 <ng-container i18n *ngIf="initialUserVideoQuota === -1">
50 Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
51 </ng-container>
52 </td>
53 </tr>
54
55 <tr>
56 <td i18n class="label" colspan="2">Import</td>
57 </tr>
58
59 <tr>
60 <td i18n class="sub-label">HTTP import (YouTube, Vimeo, direct URL...)</td>
61 <td>
62 <my-feature-boolean [value]="config.import.videos.http.enabled"></my-feature-boolean>
63 </td>
64 </tr>
65
66 <tr>
67 <td i18n class="sub-label">Torrent import</td>
68 <td>
69 <my-feature-boolean [value]="config.import.videos.torrent.enabled"></my-feature-boolean>
70 </td>
71 </tr>
72
73
74 <tr>
75 <td i18n class="label" colspan="2">Player</td>
76 </tr>
77
78 <tr>
79 <td i18n class="sub-label">P2P enabled</td>
80 <td>
81 <my-feature-boolean [value]="config.tracker.enabled"></my-feature-boolean>
82 </td>
83 </tr>
84 </table>
85 </div>