mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
DEV: add home-logo-contents plugin outlet (#26965)
This commit is contained in:
parent
dcd2157507
commit
df75923f2b
@ -81,36 +81,46 @@ export default class HomeLogo extends Component {
|
|||||||
<PluginOutlet @name="home-logo" @outletArgs={{hash minimized=@minimized}}>
|
<PluginOutlet @name="home-logo" @outletArgs={{hash minimized=@minimized}}>
|
||||||
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
|
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
|
||||||
<a href={{this.href}} {{on "click" this.click}}>
|
<a href={{this.href}} {{on "click" this.click}}>
|
||||||
{{#if @minimized}}
|
<PluginOutlet
|
||||||
{{#if this.logoSmallUrl}}
|
@name="home-logo-contents"
|
||||||
|
@outletArgs={{hash
|
||||||
|
minimized=@minimized
|
||||||
|
logoUrl=this.logoUrl
|
||||||
|
logoSmallUrl=this.logoSmallUrl
|
||||||
|
showMobileLogo=this.showMobileLogo
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{{#if @minimized}}
|
||||||
|
{{#if this.logoSmallUrl}}
|
||||||
|
<Logo
|
||||||
|
@key="logo-small"
|
||||||
|
@url={{this.logoSmallUrl}}
|
||||||
|
@title={{this.siteSettings.title}}
|
||||||
|
@darkUrl={{this.logoSmallUrlDark}}
|
||||||
|
/>
|
||||||
|
{{else}}
|
||||||
|
{{icon "home"}}
|
||||||
|
{{/if}}
|
||||||
|
{{else if this.showMobileLogo}}
|
||||||
<Logo
|
<Logo
|
||||||
@key="logo-small"
|
@key="logo-mobile"
|
||||||
@url={{this.logoSmallUrl}}
|
@url={{this.mobileLogoUrl}}
|
||||||
@title={{this.siteSettings.title}}
|
@title={{this.siteSettings.title}}
|
||||||
@darkUrl={{this.logoSmallUrlDark}}
|
@darkUrl={{this.mobileLogoUrlDark}}
|
||||||
|
/>
|
||||||
|
{{else if this.logoUrl}}
|
||||||
|
<Logo
|
||||||
|
@key="logo-big"
|
||||||
|
@url={{this.logoUrl}}
|
||||||
|
@title={{this.siteSettings.title}}
|
||||||
|
@darkUrl={{this.logoUrlDark}}
|
||||||
/>
|
/>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{icon "home"}}
|
<h1 id="site-text-logo" class="text-logo">
|
||||||
|
{{this.siteSettings.title}}
|
||||||
|
</h1>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else if this.showMobileLogo}}
|
</PluginOutlet>
|
||||||
<Logo
|
|
||||||
@key="logo-mobile"
|
|
||||||
@url={{this.mobileLogoUrl}}
|
|
||||||
@title={{this.siteSettings.title}}
|
|
||||||
@darkUrl={{this.mobileLogoUrlDark}}
|
|
||||||
/>
|
|
||||||
{{else if this.logoUrl}}
|
|
||||||
<Logo
|
|
||||||
@key="logo-big"
|
|
||||||
@url={{this.logoUrl}}
|
|
||||||
@title={{this.siteSettings.title}}
|
|
||||||
@darkUrl={{this.logoUrlDark}}
|
|
||||||
/>
|
|
||||||
{{else}}
|
|
||||||
<h1 id="site-text-logo" class="text-logo">
|
|
||||||
{{this.siteSettings.title}}
|
|
||||||
</h1>
|
|
||||||
{{/if}}
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</PluginOutlet>
|
</PluginOutlet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user