Add short description in about page

This commit is contained in:
Chocobozzz 2018-05-23 10:41:08 +02:00
parent b365bb43c2
commit 45c0fb35eb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 7 additions and 1 deletions

View 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>

View File

@ -7,6 +7,6 @@
margin-bottom: 5px;
}
.description, .terms, .signup {
.short-description, .description, .terms, .signup {
margin-bottom: 30px;
}

View 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)
},