diff --git a/app/assets/javascripts/discourse/components/logo_component.js b/app/assets/javascripts/discourse/components/logo_component.js new file mode 100644 index 00000000000..3091ff09603 --- /dev/null +++ b/app/assets/javascripts/discourse/components/logo_component.js @@ -0,0 +1,21 @@ +Discourse.DiscourseLogoComponent = Ember.Component.extend({ + linkUrl: function() { + return Discourse.getURL("/"); + }.property(), + + showSmallLogo: function() { + return !Discourse.Mobile.mobileView && this.get("minimized"); + }.property("minimized"), + + smallLogoUrl: function() { + return Discourse.SiteSettings.logo_small_url; + }.property(), + + bigLogoUrl: function() { + return Discourse.SiteSettings.logo_url; + }.property(), + + title: function() { + return Discourse.SiteSettings.title; + }.property() +}); diff --git a/app/assets/javascripts/discourse/templates/components/discourse-logo.js.handlebars b/app/assets/javascripts/discourse/templates/components/discourse-logo.js.handlebars new file mode 100644 index 00000000000..eef0c2c9270 --- /dev/null +++ b/app/assets/javascripts/discourse/templates/components/discourse-logo.js.handlebars @@ -0,0 +1,17 @@ +
diff --git a/app/assets/javascripts/discourse/templates/header.js.handlebars b/app/assets/javascripts/discourse/templates/header.js.handlebars index 0dbe0e517d8..5e59f0c8314 100644 --- a/app/assets/javascripts/discourse/templates/header.js.handlebars +++ b/app/assets/javascripts/discourse/templates/header.js.handlebars @@ -1,7 +1,7 @@