add plugin selector to about/menu elements (#4597)
* add plugin selector to about/menu elements closes #4586 * Update plugin selector names Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
parent
bdb4cc80c3
commit
28c6556789
|
@ -116,6 +116,7 @@
|
|||
<my-custom-markup-container [content]="descriptionContent"></my-custom-markup-container>
|
||||
</div>
|
||||
|
||||
<div myPluginSelector pluginSelectorId="about-instance-moderation">
|
||||
<div class="anchor" id="moderation"></div>
|
||||
<a
|
||||
*ngIf="html.moderationInformation || html.codeOfConduct || html.terms"
|
||||
|
@ -170,7 +171,9 @@
|
|||
|
||||
<div [innerHTML]="html.terms"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div myPluginSelector pluginSelectorId="about-instance-other-information">
|
||||
<div class="anchor" id="other-information"></div>
|
||||
<a
|
||||
*ngIf="html.hardwareInformation"
|
||||
|
@ -198,13 +201,14 @@
|
|||
<div [innerHTML]="html.hardwareInformation"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-xl-6">
|
||||
<div class="col-md-12 col-xl-6" myPluginSelector pluginSelectorId="about-instance-features">
|
||||
<h2 class="sr-only" i18n>FEATURES</h2>
|
||||
<my-instance-features-table></my-instance-features-table>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="col" myPluginSelector pluginSelectorId="about-instance-statistics">
|
||||
<div class="anchor" id="statistics"></div>
|
||||
<a
|
||||
class="anchor-link"
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<div class="sub-menu" [ngClass]="{ 'sub-menu-fixed': !isBroadcastMessageDisplayed }">
|
||||
|
||||
<div class="links">
|
||||
<a i18n routerLink="instance" routerLinkActive="active" class="title-page title-page-about">Instance</a>
|
||||
<a myPluginSelector pluginSelectorId="about-menu-instance" i18n routerLink="instance" routerLinkActive="active" class="title-page title-page-about">Instance</a>
|
||||
|
||||
<a i18n routerLink="peertube" routerLinkActive="active" class="title-page title-page-about">PeerTube</a>
|
||||
<a myPluginSelector pluginSelectorId="about-menu-peertube" i18n routerLink="peertube" routerLinkActive="active" class="title-page title-page-about">PeerTube</a>
|
||||
|
||||
<a i18n routerLink="follows" routerLinkActive="active" class="title-page title-page-about">Network</a>
|
||||
<a myPluginSelector pluginSelectorId="about-menu-network" i18n routerLink="follows" routerLinkActive="active" class="title-page title-page-about">Network</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -30,7 +30,10 @@
|
|||
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
<a ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openLanguageChooser()">
|
||||
<a
|
||||
myPluginSelector pluginSelectorId="menu-user-dropdown-language-item"
|
||||
ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openLanguageChooser()"
|
||||
>
|
||||
<my-global-icon iconName="language" aria-hidden="true"></my-global-icon>
|
||||
<span i18n>Interface:</span>
|
||||
<span class="ml-auto text-muted">{{ currentInterfaceLanguage }}</span>
|
||||
|
|
|
@ -1 +1,10 @@
|
|||
export type PluginSelectorId = 'login-form'
|
||||
export type PluginSelectorId =
|
||||
'login-form' |
|
||||
'menu-user-dropdown-language-item' |
|
||||
'about-instance-features' |
|
||||
'about-instance-statistics' |
|
||||
'about-instance-moderation' |
|
||||
'about-menu-instance' |
|
||||
'about-menu-peertube' |
|
||||
'about-menu-network' |
|
||||
'about-instance-other-information'
|
||||
|
|
Loading…
Reference in New Issue