classes for logo big and small

This commit is contained in:
Sam 2013-04-02 11:37:41 +11:00
parent ade1f50f19
commit 190f7b4812
1 changed files with 2 additions and 2 deletions

View File

@ -99,12 +99,12 @@ Discourse.HeaderView = Discourse.View.extend({
if (this.get('controller.showExtraInfo')) { if (this.get('controller.showExtraInfo')) {
var logo = Discourse.SiteSettings.logo_small_url; var logo = Discourse.SiteSettings.logo_small_url;
if (logo && logo.length > 1) { if (logo && logo.length > 1) {
result += "<img src='" + logo + "' width='33' height='33'>"; result += "<img class='logo-small' src='" + logo + "' width='33' height='33'>";
} else { } else {
result += "<i class='icon-home'></i>"; result += "<i class='icon-home'></i>";
} }
} else { } else {
result += "<img src=\"" + Discourse.SiteSettings.logo_url + "\" alt=\"" + Discourse.SiteSettings.title + "\" id='site-logo'>"; result += "<img class='logo-big' src=\"" + Discourse.SiteSettings.logo_url + "\" alt=\"" + Discourse.SiteSettings.title + "\" id='site-logo'>";
} }
result += "</a></div>"; result += "</a></div>";
return new Handlebars.SafeString(result); return new Handlebars.SafeString(result);