Remove /unsubscribe from htaccess config
[blerg.git] / www / jssrc / blerg / Feed.js
index a07d7e5..05a549a 100644 (file)
@@ -5,10 +5,18 @@ enyo.kind({
     published: {
     },
     components: [
+        {classes: "blerg-user-controls", components: [
+            {name: "rssLink", href: "/rss/feed", kind: "blerg.Link", components: [
+                {tag: null, content: "["},
+                {kind: "Image", src: "/images/rss.png", attributes: {width: 16, height: 16}},
+                {tag: null, content: "RSS]"}
+            ]}
+        ]},
         {name: "records"},
         {name: "spinner", kind: "OldSchoolSpinner", showing: false},
         {name: "api", kind: "blerg.API",
-         onItemsLoaded: "itemsLoaded"}
+         onItemsLoaded: "itemsLoaded",
+         onClearStatus: "clearStatus"}
     ],
     statics: {
         locationDetect: function(l) {
@@ -28,6 +36,11 @@ enyo.kind({
     },
     itemsLoaded: function(inSender, inEvent) {
         this.addItems(inEvent.entries);
-        this.bubble('onClearFeedStatus');
+        this.$.api.clearStatus('feed');
+    },
+    clearStatus: function(inSender, inEvent) {
+        if (inEvent.type == 'feed' && inEvent.status == 'success') {
+            enyo.Signals.send('onClearNotification', {type: inEvent.type});
+        }
     }
 });