]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add short description in about page
authorChocobozzz <me@florianbigard.com>
Wed, 23 May 2018 08:41:08 +0000 (10:41 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 23 May 2018 08:41:08 +0000 (10:41 +0200)
client/src/app/about/about.component.html
client/src/app/about/about.component.scss
client/src/app/about/about.component.ts

index bc6a8c6f37299584fe94b15f9691ebe10bdaee43..6fa856742fb46108fcc438a887c648ccd562e38d 100644 (file)
@@ -3,6 +3,10 @@
     Welcome to the {{ instanceName }} instance
   </div>
 
+  <div class="short-description">
+    <div>{{ shortDescription }}</div>
+  </div>
+
   <div class="description">
     <div class="section-title">Description</div>
 
index 2a22b9528cc187af2b7d71fe8b5e2a4ded73e696..a63cd229cf294a0ed8d8fbca5714309456b7166d 100644 (file)
@@ -7,6 +7,6 @@
   margin-bottom: 5px;
 }
 
-.description, .terms, .signup {
+.short-description, .description, .terms, .signup {
   margin-bottom: 30px;
 }
index 2fd48f0d305c068b2275799f14e4ecb8a6be8916..3948d5c46bbb022a40dba6b74c38c14a76609163 100644 (file)
@@ -10,6 +10,7 @@ import { NotificationsService } from 'angular2-notifications'
 })
 
 export class AboutComponent implements OnInit {
+  shortDescription = ''
   descriptionHTML = ''
   termsHTML = ''
 
@@ -35,6 +36,7 @@ export class AboutComponent implements OnInit {
     this.serverService.getAbout()
       .subscribe(
         res => {
+          this.shortDescription = res.instance.shortDescription
           this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
           this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
         },