Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

1.3 KB
Raw Blame
<ng-container *transloco="let t; read: 'side-nav-companion-bar'">
  <div class="mt-0 d-flex justify-content-between align-items-center">
    <div>
      <ng-content select="[title]"></ng-content>
      <ng-content select="[subtitle]"></ng-content>
    </div>
    <div>
      <ng-content select="[main]"></ng-content>
    </div>
    <div>
      <button *ngIf="hasExtras" class="btn btn-secondary btn-small" (click)="openExtrasDrawer()" [attr.aria-expanded]="isExtrasOpen" placement="left" [ngbTooltip]="t('page-settings-title')">
        <i class="fa-solid fa-sliders" aria-hidden="true"></i>
        <span class="visually-hidden">{{t('page-settings-title')}}</span>
      </button>
      <button *ngIf="hasFilter" class="btn btn-{{filterActive ? 'primary' : 'secondary'}} btn-small" (click)="toggleService.toggle()"
              [attr.aria-expanded]="filterOpen" placement="left"
              id="filter-btn--komf"
              ngbTooltip="{{filterOpen ? t('open-filter-and-sort') : t('close-filter-and-sort')}}"
              attr.aria-label="{{filterOpen ? t('open-filter-and-sort') : t('close-filter-and-sort')}}">
        <i class="fa fa-filter" aria-hidden="true"></i>
        <span class="visually-hidden">{{t('filter-and-sort-alt')}}</span>
      </button>
    </div>

  </div>
</ng-container>