Reddit/Reddit.Index.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 16 Dec 2014 10:04:58 +0000 (18:04 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 16 Dec 2014 10:04:58 +0000 (18:04 +0800)
Reddit/Reddit.Index.js

Reddit/Reddit.Index.bjs
Reddit/Reddit.Index.js

index e80eb74..e8215d9 100644 (file)
@@ -12,8 +12,8 @@
             "items" : [
                 {
                     "$ String brand_href" : "baseURL",
-                    "String position" : "fixed-top",
                     "String cls" : "headroom animated",
+                    "String position" : "fixed-top",
                     "xtype" : "NavHeaderbar",
                     "Boolean inverse" : true,
                     "String brand" : "Reddit Archive - Occupy Central Civil Disobedience Movement (Umbrella Revolution)",
@@ -45,8 +45,8 @@
                                     "items" : [
                                         {
                                             "Number md" : 4,
-                                            "Number lg" : 3,
                                             "xtype" : "Column",
+                                            "Number lg" : 3,
                                             "$ xns" : "Roo.bootstrap",
                                             "items" : [
                                                 {
@@ -70,8 +70,8 @@
                                                                     "items" : [
                                                                         {
                                                                             "xtype" : "Header",
-                                                                            "$ xns" : "Roo.bootstrap",
                                                                             "Number level" : 4,
+                                                                            "$ xns" : "Roo.bootstrap",
                                                                             "String html" : "Day selector"
                                                                         },
                                                                         {
                                                     "String tag" : "p",
                                                     "xtype" : "Element",
                                                     "$ xns" : "Roo.bootstrap",
-                                                    "String html" : "\n<!-- {feed:r} -->\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n\n\n<p> {r.body_html:h} </p>\n\n\n\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{original url}</a> </p>\n\n\n<p> <small><B>{r.creaded_local_dt}</B></small> | <a href=\"#\">/reddit/{r.author}</a> |  <a href=\"#\">Download as PDF</a> </p>\n</div>"
+                                                    "String html" : "\n<!-- {feed:r} -->\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n\n\n<p> {f.body_html:h} </p>\n\n<div flexy:foreach=\"f.embeds,e\">\n\n</div>\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{e.original url}</a> </p>\n\n\n<p> <small><B>{f.creaded_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> |  <a href=\"#\">Download as PDF</a> </p>\n</div>"
                                                 }
                                             ]
                                         }
index 1019443..c78a678 100644 (file)
@@ -24,8 +24,8 @@ Reddit.Index = new Roo.XComponent({
                {
                     '|xns' : 'Roo.bootstrap',
                     brand_href : baseURL,
-                    position : 'fixed-top',
                     cls : 'headroom animated',
+                    position : 'fixed-top',
                     xtype : 'NavHeaderbar',
                     inverse : true,
                     brand : 'Reddit Archive - Occupy Central Civil Disobedience Movement (Umbrella Revolution)',
@@ -63,8 +63,8 @@ Reddit.Index = new Roo.XComponent({
                                        {
                                             '|xns' : 'Roo.bootstrap',
                                             md : 4,
-                                            lg : 3,
                                             xtype : 'Column',
+                                            lg : 3,
                                             xns : Roo.bootstrap,
                                             items : [
                                                {
@@ -93,8 +93,8 @@ Reddit.Index = new Roo.XComponent({
                                                                        {
                                                                             '|xns' : 'Roo.bootstrap',
                                                                             xtype : 'Header',
-                                                                            xns : Roo.bootstrap,
                                                                             level : 4,
+                                                                            xns : Roo.bootstrap,
                                                                             html : 'Day selector'
                                                                         },
                                                                        {
@@ -179,7 +179,7 @@ Reddit.Index = new Roo.XComponent({
                                                     tag : 'p',
                                                     xtype : 'Element',
                                                     xns : Roo.bootstrap,
-                                                    html : '\n<!-- {feed:r} -->\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n\n\n<p> {r.body_html:h} </p>\n\n\n\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{original url}</a> </p>\n\n\n<p> <small><B>{r.creaded_local_dt}</B></small> | <a href=\"#\">/reddit/{r.author}</a> |  <a href=\"#\">Download as PDF</a> </p>\n</div>'
+                                                    html : '\n<!-- {feed:r} -->\n\n<div flexy:foreach=\"feed,f\">\n\n<!-- <h3>10am</h3> -->\n<hr />\n\n\n\n<p> {f.body_html:h} </p>\n\n<div flexy:foreach=\"f.embeds,e\">\n\n</div>\n<p> the image associated with it goes here </p>\n<p><a href=\"#\">{e.original url}</a> </p>\n\n\n<p> <small><B>{f.creaded_local_dt}</B></small> | <a href=\"#\">/reddit/{f.author}</a> |  <a href=\"#\">Download as PDF</a> </p>\n</div>'
                                                 }
                                             ]