Merge pull request #1679 from velesin/logo_improvement

removes redundant enclosing tag
This commit is contained in:
Sam 2013-11-19 14:59:45 -08:00
commit d16298b1d7
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>