Add RSS links for tags and feed
authorChip Black <bytex64@bytex64.net>
Wed, 18 Jun 2014 03:23:29 +0000 (22:23 -0500)
committerChip Black <bytex64@bytex64.net>
Wed, 18 Jun 2014 03:23:29 +0000 (22:23 -0500)
www/jssrc/blerg/Feed.js
www/jssrc/blerg/Tag.js

index a07d7e5..98e7ffb 100644 (file)
@@ -5,6 +5,13 @@ 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",
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();