diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-05 19:26:28 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-05 19:26:28 -0500 |
| commit | 07f85e3ed76d3760afb4ea4e984579fb70cab99e (patch) | |
| tree | 01616826e10160b1aae19ce3f7399dcc69c90f7f | |
| parent | cc657e52cc793cb193df9c8f8ef9efadd6d7e819 (diff) | |
populate hub view
| -rw-r--r-- | StoneIsland/www/index.html | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/BlogView.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/HubView.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/index.html b/StoneIsland/www/index.html index ebd82423..7bb4f8e4 100644 --- a/StoneIsland/www/index.html +++ b/StoneIsland/www/index.html @@ -100,7 +100,7 @@ <script type="text/html" class="template"> <div> <img src="{{image}}"> - <span class="title"><b>{{code}}</b> {{title}}</span> + <span class="title">{{title}}</span> <span class="subtitle">{{subtitle}}</span> <div class="body">{{body}}</div> </div> diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js index 573fe3c3..59cf25b2 100644 --- a/StoneIsland/www/js/lib/blogs/BlogView.js +++ b/StoneIsland/www/js/lib/blogs/BlogView.js @@ -22,7 +22,7 @@ var BlogView = View.extend({ this.loader.preloadImage(data.archive[0].images[0].uri, function(img){ app.archive.populate(data.archive) }) - this.loader.preloadImage(data.hub[0].image.uri, function(img){ + this.loader.preloadImage(data.hub[0].image[0].uri, function(img){ app.hub.populate(data.hub) }) this.loader.preloadImage(data.story[0].image.uri, function(img){ diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index 717fdd23..d44ce7c8 100644 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -22,9 +22,9 @@ var HubView = View.extend({ this.$content.empty() // id date subtitle body link image[uri caption] this.data.forEach(function(row){ - var t = this.template.replace(/{{image}}/, row.images[0].uri) + console.log(row) + var t = this.template.replace(/{{image}}/, row.image[0].uri) .replace(/{{date}}/, row.date) - .replace(/{{code}}/, row.code) .replace(/{{title}}/, row.title) .replace(/{{subtitle}}/, row.subtitle) .replace(/{{link}}/, row.link) |
