ActivityPub-federated video streaming platform using P2P directly in your web browser
Add peertube version in features table
Chocobozzzdbdf2d51c6fe
diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.htmlindex 8ed248b60b..f5b481158d 100644--- a/client/src/app/+about/about-instance/about-instance.component.html+++ b/client/src/app/+about/about-instance/about-instance.component.html@@ -2,7 +2,7 @@<div class="col-md-12 col-xl-6"><div class="about-instance-title">- <div i18n class="title">About {{ instanceName }} instance</div>+ <div i18n class="title">About {{ instanceName }}</div><div i18n *ngIf="isContactFormEnabled" (click)="openContactModal()" role="button" class="contact-admin">Contact administrator</div></div>diff --git a/client/src/app/app.component.html b/client/src/app/app.component.htmlindex 81b4351c5e..057a4e19ee 100644--- a/client/src/app/app.component.html+++ b/client/src/app/app.component.html@@ -29,7 +29,7 @@</div><footer class="row">- <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer">PeerTube v{{ serverVersion }}{{ serverCommit }}</a> - + <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer">PeerTube v{{ getServerVersionAndCommit() }}</a> - <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer">CopyLeft 2015-2019</a></footer></div>diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.tsindex f1658ca1bf..351620c59d 100644--- a/client/src/app/app.component.ts+++ b/client/src/app/app.component.ts@@ -51,15 +51,6 @@ export class AppComponent implements OnInit {private modalService: NgbModal) { }- get serverVersion () {- return this.serverService.getConfig().serverVersion- }-- get serverCommit () {- const commit = this.serverService.getConfig().serverCommit || ''- return (commit !== '') ? '...' + commit : commit- }-get instanceName () {return this.serverService.getConfig().instance.name}@@ -122,6 +113,10 @@ export class AppComponent implements OnInit {this.isMenuDisplayed = window.innerWidth >= 800 && !this.isMenuChangedByUser}+ getServerVersionAndCommit () {+ return this.serverService.getServerVersionAndCommit()+ }+private initRouteEvents () {let resetScroll = trueconst eventsObs = this.router.eventsdiff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.tsindex cf9c411a4f..fdcc51cc5b 100644--- a/client/src/app/core/server/server.service.ts+++ b/client/src/app/core/server/server.service.ts@@ -174,6 +174,16 @@ export class ServerService {return cloneDeep(this.config)}+ getServerVersionAndCommit () {+ const serverVersion = this.config.serverVersion+ const commit = this.config.serverCommit || ''++ let result = `v${serverVersion}`+ if (commit) result += '...' + commit++ return result+ }+getVideoCategories () {return cloneDeep(this.videoCategories)}diff --git a/client/src/app/shared/instance/instance-features-table.component.html b/client/src/app/shared/instance/instance-features-table.component.htmlindex d1cb8fcbe5..f880a886ff 100644--- a/client/src/app/shared/instance/instance-features-table.component.html+++ b/client/src/app/shared/instance/instance-features-table.component.html@@ -1,6 +1,12 @@<div class="feature-table"><table class="table" *ngIf="config">+ <tr>+ <td i18n class="label">PeerTube version</td>++ <td class="value">{{ getServerVersionAndCommit() }}</td>+ </tr>+<tr><td i18n class="label"><div>Default NSFW/sensitive videos policy</div>diff --git a/client/src/app/shared/instance/instance-features-table.component.ts b/client/src/app/shared/instance/instance-features-table.component.tsindex 46df4d0b29..1661f1efeb 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 {return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes })}+ getServerVersionAndCommit () {+ return this.serverService.getServerVersionAndCommit()+ }+private buildQuotaHelpIndication () {if (this.initialUserVideoQuota === -1) return