Add short description in about page
This commit is contained in:
parent
b365bb43c2
commit
45c0fb35eb
|
@ -3,6 +3,10 @@
|
||||||
Welcome to the {{ instanceName }} instance
|
Welcome to the {{ instanceName }} instance
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="short-description">
|
||||||
|
<div>{{ shortDescription }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<div class="section-title">Description</div>
|
<div class="section-title">Description</div>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description, .terms, .signup {
|
.short-description, .description, .terms, .signup {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { NotificationsService } from 'angular2-notifications'
|
||||||
})
|
})
|
||||||
|
|
||||||
export class AboutComponent implements OnInit {
|
export class AboutComponent implements OnInit {
|
||||||
|
shortDescription = ''
|
||||||
descriptionHTML = ''
|
descriptionHTML = ''
|
||||||
termsHTML = ''
|
termsHTML = ''
|
||||||
|
|
||||||
|
@ -35,6 +36,7 @@ export class AboutComponent implements OnInit {
|
||||||
this.serverService.getAbout()
|
this.serverService.getAbout()
|
||||||
.subscribe(
|
.subscribe(
|
||||||
res => {
|
res => {
|
||||||
|
this.shortDescription = res.instance.shortDescription
|
||||||
this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
|
this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
|
||||||
this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
|
this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue