mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Redesign register steps
This commit is contained in:
parent
936ce6e563
commit
6f03f944c3
45 changed files with 1055 additions and 379 deletions
|
@ -1,6 +1,6 @@
|
|||
<h2 class="instance-name">{{ about?.instance.name }}</h2>
|
||||
<h2 *ngIf="displayInstanceName" class="instance-name">{{ about?.instance.name }}</h2>
|
||||
|
||||
<div class="instance-short-description">{{ about?.instance.shortDescription }}</div>
|
||||
<div *ngIf="displayInstanceShortDescription" class="instance-short-description">{{ about?.instance.shortDescription }}</div>
|
||||
|
||||
<ngb-accordion #accordion="ngbAccordion" [closeOthers]="true">
|
||||
<ngb-panel *ngIf="panels.features" id="instance-features" i18n-title title="Features found on this instance">
|
||||
|
@ -32,7 +32,7 @@
|
|||
</ng-template>
|
||||
</ngb-panel>
|
||||
|
||||
<ngb-panel *ngIf="termsPanel" id="terms" i18n-title title="Terms">
|
||||
<ngb-panel *ngIf="termsPanel" id="terms" [title]="getTermsTitle()">
|
||||
<ng-template ngbPanelContent>
|
||||
<div class="block" [innerHTML]="aboutHtml.terms"></div>
|
||||
</ng-template>
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
.instance-short-description {
|
||||
@include ellipsis-multiline(1rem, 3);
|
||||
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
margin: 25px 0;
|
||||
}
|
||||
|
||||
.block {
|
||||
|
|
|
@ -15,6 +15,9 @@ export class InstanceAboutAccordionComponent implements OnInit {
|
|||
|
||||
@Output() init: EventEmitter<InstanceAboutAccordionComponent> = new EventEmitter<InstanceAboutAccordionComponent>()
|
||||
|
||||
@Input() displayInstanceName = true
|
||||
@Input() displayInstanceShortDescription = true
|
||||
|
||||
@Input() pluginScope: PluginClientScope
|
||||
@Input() pluginHook: ClientFilterHookName
|
||||
|
||||
|
@ -66,6 +69,10 @@ export class InstanceAboutAccordionComponent implements OnInit {
|
|||
return !!(this.aboutHtml?.administrator || this.about?.instance.maintenanceLifetime || this.about?.instance.businessModel)
|
||||
}
|
||||
|
||||
getTermsTitle () {
|
||||
return $localize`Terms of ${this.about.instance.name}`
|
||||
}
|
||||
|
||||
get moderationPanel () {
|
||||
return this.panels.moderation && !!this.aboutHtml.moderationInformation
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue