aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-09-29 19:53:49 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 14:31:01 +0200
commitabb2c7927ca1640a755e0ec32c51bcc9c873b34c (patch)
tree4ded5e7559d48d450f861f5ec5c0a1a794cc2e15 /client
parent26b415176212b44ff6ce168cb00aeb93b10c0cb3 (diff)
downloadPeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.tar.gz
PeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.tar.zst
PeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.zip
show last commit hash alongside server version in footer
Diffstat (limited to 'client')
-rw-r--r--client/src/app/app.component.html2
-rw-r--r--client/src/app/app.component.ts5
2 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html
index 958c131f7..03f7e88ed 100644
--- a/client/src/app/app.component.html
+++ b/client/src/app/app.component.html
@@ -29,7 +29,7 @@
29 </div> 29 </div>
30 30
31 <footer class="row"> 31 <footer class="row">
32 <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer">PeerTube v{{ serverVersion }}</a>&nbsp;-&nbsp; 32 <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer">PeerTube v{{ serverVersion }}{{ serverCommit }}</a>&nbsp;-&nbsp;
33 <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer">CopyLeft 2015-2018</a> 33 <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer">CopyLeft 2015-2018</a>
34 </footer> 34 </footer>
35 </div> 35 </div>
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 907bc583b..29b02032f 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -45,6 +45,11 @@ export class AppComponent implements OnInit {
45 return this.serverService.getConfig().serverVersion 45 return this.serverService.getConfig().serverVersion
46 } 46 }
47 47
48 get serverCommit () {
49 const commit = this.serverService.getConfig().serverCommit || ''
50 return (commit !== '') ? '...' + commit : commit
51 }
52
48 get instanceName () { 53 get instanceName () {
49 return this.serverService.getConfig().instance.name 54 return this.serverService.getConfig().instance.name
50 } 55 }