]>
Commit | Line | Data |
---|---|---|
6702a1b2 C |
1 | <div class="toggle-plugin-type"> |
2 | <p-selectButton [options]="pluginTypeOptions" [(ngModel)]="pluginType" (ngModelChange)="reloadPlugins()"></p-selectButton> | |
3 | </div> | |
4 | ||
5 | <div class="search-bar"> | |
9df52d66 | 6 | <input type="text" (input)="onSearchChange($event)" i18n-placeholder placeholder="Search..." myAutofocus /> |
6702a1b2 C |
7 | </div> |
8 | ||
89c344db C |
9 | <div class="alert alert-info" i18n *ngIf="pluginInstalled"> |
10 | To load your new installed plugins or themes, refresh the page. | |
11 | </div> | |
12 | ||
6702a1b2 C |
13 | <div class="result-title" *ngIf="!isSearching"> |
14 | <ng-container *ngIf="!search"> | |
adcf9212 | 15 | <my-global-icon iconName="trending" aria-hidden="true"></my-global-icon> |
6702a1b2 C |
16 | <ng-container i18n>Popular</ng-container> |
17 | </ng-container> | |
18 | ||
ae8b8faf | 19 | <ng-container *ngIf="!!search"> |
6702a1b2 C |
20 | <my-global-icon iconName="search"></my-global-icon> |
21 | ||
22 | <ng-container i18n> | |
ce4b4495 | 23 | {{ pagination.totalItems }} {pagination.totalItems, plural, =1 {result} other {results}} for "{{ search }}" |
a3caabe2 | 24 | </ng-container> |
6702a1b2 C |
25 | </ng-container> |
26 | </div> | |
27 | ||
28 | <div class="no-results" i18n *ngIf="pagination.totalItems === 0"> | |
29 | No results. | |
30 | </div> | |
31 | ||
dd24f1bb | 32 | <div class="plugins" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()"> |
29aedac8 C |
33 | <ng-container *ngFor="let plugin of plugins" > |
34 | <my-plugin-card [plugin]="plugin" [version]="plugin.latestVersion" [pluginType]="pluginType"> | |
35 | <div ngProjectAs="badges"> | |
36 | <span i18n *ngIf="plugin.installed" class="badge badge-success">Installed</span> | |
61cc1c03 C |
37 | |
38 | <span *ngIf="plugin.official" class="badge badge-primary" i18n i18n-title title="This plugin is developed by Framasoft"> | |
39 | Official | |
40 | </span> | |
6702a1b2 | 41 | </div> |
03efb141 | 42 | |
29aedac8 C |
43 | <div ngProjectAs="buttons"> |
44 | <my-edit-button | |
45 | *ngIf="plugin.installed === true && !isThemeSearch()" [routerLink]="getShowRouterLink(plugin)" | |
46 | label="Settings" i18n-label [responsiveLabel]="true" | |
47 | ></my-edit-button> | |
48 | ||
49 | <my-button | |
50 | class="update-button" *ngIf="plugin.installed === false" (click)="install(plugin)" | |
51 | [loading]="isInstalling(plugin)" label="Install" [responsiveLabel]="true" | |
52 | icon="cloud-download" [attr.disabled]="isInstalling(plugin)" | |
53 | ></my-button> | |
03efb141 | 54 | </div> |
29aedac8 C |
55 | |
56 | </my-plugin-card> | |
57 | </ng-container> | |
6702a1b2 | 58 | </div> |