Add RSS links for tags and feed
[blerg.git] / www / jssrc / blerg / Tag.js
index 65761aa..934c183 100644 (file)
@@ -7,6 +7,13 @@ enyo.kind({
         tag: ""
     },
     components: [
+        {classes: "blerg-user-controls", components: [
+            {name: "rssLink", 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",
@@ -37,6 +44,7 @@ enyo.kind({
             this.bubble('onSetTitle', {section: 'about @' + this.tag});
             break;
         }
+        this.$.rssLink.setHref('/rss/' + this.type + '/' + this.tag);
         this.$.records.destroyComponents();
         this.lastRecord = null;
         this.loadMore();