aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/instance
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-13 10:19:41 +0100
committerChocobozzz <me@florianbigard.com>2019-12-13 10:19:41 +0100
commitdbdf2d51c6fe50d761ad6286e09f6c75356d2142 (patch)
tree63b74e7ea5cfa97db040acaa1445f822f46750e5 /client/src/app/shared/instance
parentee83ad12caecfb46bbdda5af5e87b9ca584944a0 (diff)
downloadPeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.gz
PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.zst
PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.zip
Add peertube version in features table
Diffstat (limited to 'client/src/app/shared/instance')
-rw-r--r--client/src/app/shared/instance/instance-features-table.component.html6
-rw-r--r--client/src/app/shared/instance/instance-features-table.component.ts4
2 files changed, 10 insertions, 0 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 d1cb8fcbe..f880a886f 100644
--- a/client/src/app/shared/instance/instance-features-table.component.html
+++ b/client/src/app/shared/instance/instance-features-table.component.html
@@ -2,6 +2,12 @@
2 2
3 <table class="table" *ngIf="config"> 3 <table class="table" *ngIf="config">
4 <tr> 4 <tr>
5 <td i18n class="label">PeerTube version</td>
6
7 <td class="value">{{ getServerVersionAndCommit() }}</td>
8 </tr>
9
10 <tr>
5 <td i18n class="label"> 11 <td i18n class="label">
6 <div>Default NSFW/sensitive videos policy</div> 12 <div>Default NSFW/sensitive videos policy</div>
7 <div class="more-info">can be redefined by the users</div> 13 <div class="more-info">can be redefined by the users</div>
diff --git a/client/src/app/shared/instance/instance-features-table.component.ts b/client/src/app/shared/instance/instance-features-table.component.ts
index 46df4d0b2..1661f1efe 100644
--- a/client/src/app/shared/instance/instance-features-table.component.ts
+++ b/client/src/app/shared/instance/instance-features-table.component.ts
@@ -53,6 +53,10 @@ export class InstanceFeaturesTableComponent implements OnInit {
53 return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes }) 53 return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes })
54 } 54 }
55 55
56 getServerVersionAndCommit () {
57 return this.serverService.getServerVersionAndCommit()
58 }
59
56 private buildQuotaHelpIndication () { 60 private buildQuotaHelpIndication () {
57 if (this.initialUserVideoQuota === -1) return 61 if (this.initialUserVideoQuota === -1) return
58 62