aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+about/about-instance/about-instance.component.html
blob: 4c7504628293e34306445e4ff01f6732bdf7c745 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                  
 
                                                
                                                                     
 
                                                                                                                                                                
          
 
                                                                                
                                                                                                    
 
                                                                                                     

          

                                                     
 
                                                                                                                         
          
 

                                                                     
                                                                                                 
                         



                                                  




                                       
 
                                                                     
                                                    





                                              

                                                      
 
                                                       

          
                                                                        
                                                     





                                              

                                                                        
 
                                                        

          
                                                                                  
                                                          





                                              

                                                                                      
 
                                                             

          
                                                                      






                                                      
                                                                                              
            
 
                                                       

          
                                               
      
                                




                                            



                                    

                                   
                                                 





                                              

                                                       
 
                                                                                              

          

                                                                       
        
                                                                                             

                                    
                             

                                              


                                      
          
 
                                                                                        








                                                                    
 
                                                                 
            
 
                                                                         








                                                             
 
                                                         
            
 









                                                   
 
                                                 

            
 

                                                                              
        
                                             

                                    
                                    

                                              


                                      
          
 
                                                                                    









                                                                  
                                                               
            
          

        
                                                                                              
                                                  
                                                             
        
 
                                                                                 
                                              
 





                                            

                                                   

                                                                                 
        
      
 
                                                                    
<div class="row">
  <div class="col-md-12 col-xl-6">

    <div class="d-flex justify-content-between">
      <h1 i18n class="fw-semibold fs-5">About {{ instanceName }}</h1>

      <a routerLink="/about/contact" i18n *ngIf="isContactFormEnabled" class="peertube-button-link orange-button h-100 d-flex align-items-center">Contact us</a>
    </div>

    <div class="mb-4" *ngIf="categories.length !== 0 || languages.length !== 0">
      <span *ngFor="let category of categories" class="pt-badge badge-primary">{{ category }}</span>

      <span *ngFor="let language of languages" class="pt-badge badge-secondary">{{ language }}</span>
    </div>

    <div class="mt-2">
      <div class="block">{{ shortDescription }}</div>

      <div i18n *ngIf="isNSFW" class="block mt-4 fw-semibold">This instance is dedicated to sensitive/NSFW content.</div>
    </div>

    <div class="anchor" id="administrators-and-sustainability"></div>
    <a
      *ngIf="aboutHTML.administrator || aboutHTML.maintenanceLifetime || aboutHTML.businessModel"
      class="anchor-link"
      routerLink="/about/instance"
      fragment="administrators-and-sustainability"
      #anchorLink
      (click)="onClickCopyLink(anchorLink)"
    >
      <h2 i18n class="middle-title">
        ADMINISTRATORS & SUSTAINABILITY
      </h2>
    </a>

    <div class="block administrator" *ngIf="aboutHTML.administrator">
      <div class="anchor" id="administrators"></div>
      <a
        class="anchor-link"
        routerLink="/about/instance"
        fragment="administrators"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h3 i18n class="section-title">Who we are</h3>
      </a>

      <div [innerHTML]="aboutHTML.administrator"></div>
    </div>

    <div class="block creation-reason" *ngIf="aboutHTML.creationReason">
      <div class="anchor" id="creation-reason"></div>
      <a
        class="anchor-link"
        routerLink="/about/instance"
        fragment="creation-reason"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h3 i18n class="section-title">Why we created this instance</h3>
      </a>

      <div [innerHTML]="aboutHTML.creationReason"></div>
    </div>

    <div class="block maintenance-lifetime" *ngIf="aboutHTML.maintenanceLifetime">
      <div class="anchor" id="maintenance-lifetime"></div>
      <a
        class="anchor-link"
        routerLink="/about/instance"
        fragment="maintenance-lifetime"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h3 i18n class="section-title">How long we plan to maintain this instance</h3>
      </a>

      <div [innerHTML]="aboutHTML.maintenanceLifetime"></div>
    </div>

    <div class="block business-model" *ngIf="aboutHTML.businessModel">
        <div class="anchor" id="business-model"></div>
        <a
          class="anchor-link"
          routerLink="/about/instance"
          fragment="business-model"
          #anchorLink
          (click)="onClickCopyLink(anchorLink)">
          <h3 i18n class="section-title">How we will pay for keeping our instance running</h3>
        </a>

      <div [innerHTML]="aboutHTML.businessModel"></div>
    </div>

    <div class="anchor" id="information"></div>
    <a
      *ngIf="descriptionElement"
      class="anchor-link"
      routerLink="/about/instance"
      fragment="information"
      #anchorLink
      (click)="onClickCopyLink(anchorLink)">
      <h2 i18n class="middle-title">
        INFORMATION
      </h2>
    </a>

    <div class="block description">
      <div class="anchor" id="description"></div>
      <a
        class="anchor-link"
        routerLink="/about/instance"
        fragment="description"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h3 i18n class="section-title">Description</h3>
      </a>

      <my-custom-markup-container [content]="descriptionElement"></my-custom-markup-container>
    </div>

    <div myPluginSelector pluginSelectorId="about-instance-moderation">
      <div class="anchor" id="moderation"></div>
      <a
        *ngIf="aboutHTML.moderationInformation || aboutHTML.codeOfConduct || aboutHTML.terms"
        class="anchor-link"
        routerLink="/about/instance"
        fragment="moderation"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h2 i18n class="middle-title">
          MODERATION
        </h2>
      </a>

      <div class="block moderation-information" *ngIf="aboutHTML.moderationInformation">
        <div class="anchor" id="moderation-information"></div>
        <a
          class="anchor-link"
          routerLink="/about/instance"
          fragment="moderation-information"
          #anchorLink
          (click)="onClickCopyLink(anchorLink)">
          <h3 i18n class="section-title">Moderation information</h3>
        </a>

        <div [innerHTML]="aboutHTML.moderationInformation"></div>
      </div>

      <div class="block code-of-conduct" *ngIf="aboutHTML.codeOfConduct">
        <div class="anchor" id="code-of-conduct"></div>
        <a
          class="anchor-link"
          routerLink="/about/instance"
          fragment="code-of-conduct"
          #anchorLink
          (click)="onClickCopyLink(anchorLink)">
          <h3 i18n class="section-title">Code of conduct</h3>
        </a>

        <div [innerHTML]="aboutHTML.codeOfConduct"></div>
      </div>

      <div class="block terms">
        <div class="anchor" id="terms"></div>
        <a
          class="anchor-link"
          routerLink="/about/instance"
          fragment="terms"
          #anchorLink
          (click)="onClickCopyLink(anchorLink)">
          <h3 i18n class="section-title">Terms</h3>
        </a>

        <div [innerHTML]="aboutHTML.terms"></div>
      </div>
    </div>

    <div myPluginSelector pluginSelectorId="about-instance-other-information">
      <div class="anchor" id="other-information"></div>
      <a
        *ngIf="aboutHTML.hardwareInformation"
        class="anchor-link"
        routerLink="/about/instance"
        fragment="other-information"
        #anchorLink
        (click)="onClickCopyLink(anchorLink)">
        <h2 i18n class="middle-title">
          OTHER INFORMATION
        </h2>
      </a>

      <div class="block hardware-information" *ngIf="aboutHTML.hardwareInformation">
        <div class="anchor" id="hardware-information"></div>
        <a
          class="anchor-link"
          routerLink="/about/instance"
          fragment="hardware-information"
          #anchorLink
          (click)="onClickCopyLink(anchorLink)">
          <h3 i18n class="section-title">Hardware information</h3>
        </a>

        <div [innerHTML]="aboutHTML.hardwareInformation"></div>
      </div>
    </div>
  </div>

  <div class="col-md-12 col-xl-6" myPluginSelector pluginSelectorId="about-instance-features">
    <h2 class="visually-hidden" i18n>FEATURES</h2>
    <my-instance-features-table></my-instance-features-table>
  </div>

  <div class="col" myPluginSelector pluginSelectorId="about-instance-statistics">
    <div class="anchor" id="statistics"></div>

    <a
      class="anchor-link"
      routerLink="/about/instance"
      fragment="statistics"
      #anchorLink
      (click)="onClickCopyLink(anchorLink)">
      <h2 i18n class="middle-title">STATISTICS</h2>
    </a>

    <my-instance-statistics [serverStats]="serverStats"></my-instance-statistics>
  </div>
</div>

<my-contact-admin-modal #contactAdminModal></my-contact-admin-modal>