1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-04 13:44:00 +01:00

[AC-1423] Remove ineffective div

This commit is contained in:
Shane Melton 2023-06-21 16:57:00 -07:00
parent be2b72b286
commit 3c904a7ab9
No known key found for this signature in database

View File

@ -40,64 +40,63 @@
</button> </button>
</bit-callout> </bit-callout>
<div class="tw-flex-col"> <dl class="tw-grid tw-grid-flow-col tw-grid-rows-2">
<dl class="tw-grid tw-grid-flow-col tw-grid-rows-2"> <dt>{{ "billingPlan" | i18n }}</dt>
<dt>{{ "billingPlan" | i18n }}</dt> <dd>{{ sub.plan.name }}</dd>
<dd>{{ sub.plan.name }}</dd> <ng-container *ngIf="subscription">
<ng-container *ngIf="subscription"> <dt>{{ "status" | i18n }}</dt>
<dt>{{ "status" | i18n }}</dt> <dd>
<dd> <span class="tw-capitalize">{{
<span class="tw-capitalize">{{ isSponsoredSubscription ? "sponsored" : subscription.status || "-"
isSponsoredSubscription ? "sponsored" : subscription.status || "-" }}</span>
}}</span> <span bitBadge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
<span bitBadge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{ "pendingCancellation" | i18n
"pendingCancellation" | i18n }}</span>
}}</span> </dd>
</dd> <dt [ngClass]="{ 'tw-text-danger': isExpired }">
<dt [ngClass]="{ 'tw-text-danger': isExpired }"> {{ "subscriptionExpiration" | i18n }}
{{ "subscriptionExpiration" | i18n }} </dt>
</dt> <dd [ngClass]="{ 'tw-text-danger': isExpired }">
<dd [ngClass]="{ 'tw-text-danger': isExpired }"> {{ nextInvoice ? (nextInvoice.date | date : "mediumDate") : "-" }}
{{ nextInvoice ? (nextInvoice.date | date : "mediumDate") : "-" }} </dd>
</dd>
</ng-container>
</dl>
<ng-container *ngIf="userOrg.canEditSubscription">
<div class="tw-mb-7 tw-flex-col">
<strong class="tw-block tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300">{{
"details" | i18n
}}</strong>
<bit-table>
<ng-template body>
<ng-container *ngIf="subscription">
<tr bitRow *ngFor="let i of lineItems">
<td bitCell [ngClass]="{ 'tw-pl-20': i.addonSubscriptionItem }">
<span *ngIf="!i.addonSubscriptionItem"
>{{ productName(i.bitwardenProduct) }} -</span
>
{{ i.name }} {{ i.quantity > 1 ? "&times;" + i.quantity : "" }} @
{{ i.amount | currency : "$" }}
</td>
<td bitCell class="tw-text-right">
{{ i.quantity * i.amount | currency : "$" }} /{{ i.interval | i18n }}
</td>
</tr>
</ng-container>
<ng-container *ngIf="userOrg.isFreeOrg">
<tr bitRow *ngIf="userOrg.usePasswordManager">
<td bitCell>{{ "passwordManager" | i18n }} - {{ "freeOrganization" | i18n }}</td>
<td bitCell class="tw-text-right">{{ "free" | i18n }}</td>
</tr>
<tr bitRow *ngIf="userOrg.useSecretsManager">
<td bitCell>{{ "secretsManager" | i18n }} - {{ "freeOrganization" | i18n }}</td>
<td bitCell class="tw-text-right">{{ "free" | i18n }}</td>
</tr>
</ng-container>
</ng-template>
</bit-table>
</div>
</ng-container> </ng-container>
</div> </dl>
<ng-container *ngIf="userOrg.canEditSubscription">
<div class="tw-mb-7 tw-flex-col">
<strong class="tw-block tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300">{{
"details" | i18n
}}</strong>
<bit-table>
<ng-template body>
<ng-container *ngIf="subscription">
<tr bitRow *ngFor="let i of lineItems">
<td bitCell [ngClass]="{ 'tw-pl-20': i.addonSubscriptionItem }">
<span *ngIf="!i.addonSubscriptionItem"
>{{ productName(i.bitwardenProduct) }} -</span
>
{{ i.name }} {{ i.quantity > 1 ? "&times;" + i.quantity : "" }} @
{{ i.amount | currency : "$" }}
</td>
<td bitCell class="tw-text-right">
{{ i.quantity * i.amount | currency : "$" }} /{{ i.interval | i18n }}
</td>
</tr>
</ng-container>
<ng-container *ngIf="userOrg.isFreeOrg">
<tr bitRow *ngIf="userOrg.usePasswordManager">
<td bitCell>{{ "passwordManager" | i18n }} - {{ "freeOrganization" | i18n }}</td>
<td bitCell class="tw-text-right">{{ "free" | i18n }}</td>
</tr>
<tr bitRow *ngIf="userOrg.useSecretsManager">
<td bitCell>{{ "secretsManager" | i18n }} - {{ "freeOrganization" | i18n }}</td>
<td bitCell class="tw-text-right">{{ "free" | i18n }}</td>
</tr>
</ng-container>
</ng-template>
</bit-table>
</div>
</ng-container>
<ng-container *ngIf="userOrg.canEditSubscription"> <ng-container *ngIf="userOrg.canEditSubscription">
<button <button
bitButton bitButton