From f1b33c517e6a1396c3bfb8ded250207bfae4e969 Mon Sep 17 00:00:00 2001 From: Chip Black Date: Tue, 17 Jun 2014 22:23:29 -0500 Subject: [PATCH] Add RSS links for tags and feed --- www/jssrc/blerg/Feed.js | 7 +++++++ www/jssrc/blerg/Tag.js | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/www/jssrc/blerg/Feed.js b/www/jssrc/blerg/Feed.js index a07d7e5..98e7ffb 100644 --- a/www/jssrc/blerg/Feed.js +++ b/www/jssrc/blerg/Feed.js @@ -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", diff --git a/www/jssrc/blerg/Tag.js b/www/jssrc/blerg/Tag.js index 65761aa..934c183 100644 --- a/www/jssrc/blerg/Tag.js +++ b/www/jssrc/blerg/Tag.js @@ -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(); -- 2.34.1