removes redundant enclosing tag

This commit is contained in:
Wojciech Zawistowski 2013-11-19 21:28:05 +01:00
parent 981d8f6aea
commit e7c6abde3e
2 changed files with 14 additions and 15 deletions

View File

@ -1,4 +1,5 @@
Discourse.HomeLogoComponent = Ember.Component.extend({
classNames: ["title"],
linkUrl: function() {
return Discourse.getURL("/");

View File

@ -1,17 +1,15 @@
<div class="title">
<a href="{{unbound linkUrl}}">
{{#if showSmallLogo}}
{{#if smallLogoUrl}}
<img class="logo-small" src="{{unbound smallLogoUrl}}" width="33" height="33">
{{else}}
<i class="icon-home"></i>
{{/if}}
<a href="{{unbound linkUrl}}">
{{#if showSmallLogo}}
{{#if smallLogoUrl}}
<img class="logo-small" src="{{unbound smallLogoUrl}}" width="33" height="33">
{{else}}
{{#if bigLogoUrl}}
<img id="site-logo" class="logo-big" src="{{unbound bigLogoUrl}}" alt="{{unbound title}}">
{{else}}
<h2 id="site-text-logo" class="text-logo">{{unbound title}}</h2>
{{/if}}
<i class="icon-home"></i>
{{/if}}
</a>
</div>
{{else}}
{{#if bigLogoUrl}}
<img id="site-logo" class="logo-big" src="{{unbound bigLogoUrl}}" alt="{{unbound title}}">
{{else}}
<h2 id="site-text-logo" class="text-logo">{{unbound title}}</h2>
{{/if}}
{{/if}}
</a>