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}}>
|
||||
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
|
||||
<a href={{this.href}} {{on "click" this.click}}>
|
||||
{{#if @minimized}}
|
||||
{{#if this.logoSmallUrl}}
|
||||
<PluginOutlet
|
||||
@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
|
||||
@key="logo-small"
|
||||
@url={{this.logoSmallUrl}}
|
||||
@key="logo-mobile"
|
||||
@url={{this.mobileLogoUrl}}
|
||||
@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}}
|
||||
{{icon "home"}}
|
||||
<h1 id="site-text-logo" class="text-logo">
|
||||
{{this.siteSettings.title}}
|
||||
</h1>
|
||||
{{/if}}
|
||||
{{else if this.showMobileLogo}}
|
||||
<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}}
|
||||
</PluginOutlet>
|
||||
</a>
|
||||
</div>
|
||||
</PluginOutlet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user