aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/instance/instance-features-table.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-27 09:59:36 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-09-05 10:17:02 +0200
commita00045a2184e4cb24b838e95937e7ffedcd66b2b (patch)
treecedd031762f523652aee6306a4cec41e8931e25f /client/src/app/shared/instance/instance-features-table.component.html
parentccc00cb2aac1360921b957f3ecb3be7eb55dfa1b (diff)
downloadPeerTube-a00045a2184e4cb24b838e95937e7ffedcd66b2b.tar.gz
PeerTube-a00045a2184e4cb24b838e95937e7ffedcd66b2b.tar.zst
PeerTube-a00045a2184e4cb24b838e95937e7ffedcd66b2b.zip
Improve features table
Diffstat (limited to 'client/src/app/shared/instance/instance-features-table.component.html')
-rw-r--r--client/src/app/shared/instance/instance-features-table.component.html65
1 files changed, 58 insertions, 7 deletions
diff --git a/client/src/app/shared/instance/instance-features-table.component.html b/client/src/app/shared/instance/instance-features-table.component.html
index 2987bd00e..845876f55 100644
--- a/client/src/app/shared/instance/instance-features-table.component.html
+++ b/client/src/app/shared/instance/instance-features-table.component.html
@@ -1,22 +1,43 @@
1<div class="feature-table"> 1<div class="feature-table">
2 2
3 <table class="table"> 3 <table class="table" *ngIf="config">
4 <tr> 4 <tr>
5 <td i18n class="label">Default NSFW/sensitive videos policy (can be redefined by the users)</td> 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>
6 9
7 <td class="value">{{ buildNSFWLabel() }}</td> 10 <td class="value">{{ buildNSFWLabel() }}</td>
8 </tr> 11 </tr>
9 12
10 <tr *ngFor="let feature of features"> 13 <tr>
11 <td class="label">{{ feature.label }}</td> 14 <td i18n class="label">User registration allowed</td>
12 <td> 15 <td>
13 <span *ngIf="feature.value === true" class="glyphicon glyphicon-ok"></span> 16 <my-feature-boolean [value]="config.signup.allowed"></my-feature-boolean>
14 <span *ngIf="feature.value === false" class="glyphicon glyphicon-remove"></span>
15 </td> 17 </td>
16 </tr> 18 </tr>
17 19
18 <tr> 20 <tr>
19 <td i18n class="label">Video quota</td> 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>
20 41
21 <td class="value"> 42 <td class="value">
22 <ng-container *ngIf="initialUserVideoQuota !== -1"> 43 <ng-container *ngIf="initialUserVideoQuota !== -1">
@@ -30,5 +51,35 @@
30 </ng-container> 51 </ng-container>
31 </td> 52 </td>
32 </tr> 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>
33 </table> 84 </table>
34</div> 85</div>