This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/home_logo_component.js
2013-11-19 21:28:05 +01:00

24 lines
546 B
JavaScript

Discourse.HomeLogoComponent = Ember.Component.extend({
classNames: ["title"],
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()
});