aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/instance/instance-features-table.component.html
blob: 2987bd00e90338f2bd74d6f8d24dbc2281b2c73f (plain) (tree)
1
2
3
4
5
6
7
8
9


                           





                                                                                                      







                                                                                        




                                                           
                                                                                                                                                               
 
                                                                                                          


                                                                
                                                                                                                                  


                       
          
      
<div class="feature-table">

  <table class="table">
    <tr>
      <td i18n class="label">Default NSFW/sensitive videos policy (can be redefined by the users)</td>

      <td class="value">{{ buildNSFWLabel() }}</td>
    </tr>

    <tr *ngFor="let feature of features">
      <td class="label">{{ feature.label }}</td>
      <td>
        <span *ngIf="feature.value === true" class="glyphicon glyphicon-ok"></span>
        <span *ngIf="feature.value === false" class="glyphicon glyphicon-remove"></span>
      </td>
    </tr>

    <tr>
      <td i18n class="label">Video quota</td>

      <td class="value">
        <ng-container *ngIf="initialUserVideoQuota !== -1">
          {{ initialUserVideoQuota | bytes: 0 }} <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>

          <my-help tooltipPlacement="auto" helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
        </ng-container>

        <ng-container i18n *ngIf="initialUserVideoQuota === -1">
          Unlimited <ng-container *ngIf="dailyUserVideoQuota !== -1">({{ dailyUserVideoQuota | bytes: 0 }} per day)</ng-container>
        </ng-container>
      </td>
    </tr>
  </table>
</div>