Make Account Center only usable when logged in
[blerg.git] / www / jssrc / blerg / Title.js
index bd82520..27356d8 100644 (file)
@@ -1,30 +1,31 @@
 enyo.kind({
-       name: "blerg.Title",
-       kind: "Control",
-       style: "float: left; width: 40%",
-       published: {
-               section: ""
-       },
-       handlers: {
-               onSetTitle: "setTitle"
-       },
-       components: [
-               {kind: "Image", classes: "logo", src: "images/blerglogo.png", attributes: {width: 125, height: 122}},
-               {tag: "h1", components: [
-                       {kind: "blerg.Link", href: "#/", content: "Blërg!"}
-               ]},
-               {tag: "h2", components: [
-                       {name: "section", tag: "span"}
-               ]}
-       ],
-       create: function() {
-               this.inherited(arguments);
-       },
-       sectionChanged: function() {
-               this.$.section.setContent(this.section);
-       },
-       setTitle: function(inSender, inEvent) {
-               if (inEvent.section)
-                       this.setSection(inEvent.section);
-       }
+    name: "blerg.Title",
+    kind: "Control",
+    classes: "blerg-title",
+    published: {
+        section: ""
+    },
+    handlers: {
+        onSetTitle: "setTitle"
+    },
+    components: [
+        {kind: "Image", classes: "logo", src: "/images/blerglogo.png", attributes: {width: 125, height: 122}},
+        {tag: "h1", components: [
+            {kind: "blerg.Link", href: "/#/", content: "Blërg!"}
+        ]},
+        {tag: "h2", components: [
+            {name: "section", tag: "span"}
+        ]}
+    ],
+    create: function() {
+        this.inherited(arguments);
+        this.sectionChanged();
+    },
+    sectionChanged: function() {
+        this.$.section.setContent(this.section);
+    },
+    setTitle: function(inSender, inEvent) {
+        if (inEvent.section)
+            this.setSection(inEvent.section);
+    }
 });