Browse files

added title and remix link to thumbnail view

  • Loading branch information...
1 parent 8e42edf commit ad181fe3e8860d71d57d67626222191bd9d3216f @toolness committed Jul 11, 2012
Showing with 11 additions and 2 deletions.
  1. +8 −2 static/index.html
  2. +3 −0 static/main.js
View
10 static/index.html
@@ -53,8 +53,14 @@
{{#each App.thimblePageController.pages}}
<li class="span3">
<div class="thumbnail">
- <a {{bindAttr href="viewURL"}}><img
- {{bindAttr src="thumbnailURL"}}></a>
+ <a {{bindAttr href="viewURL"}}>
+ <img {{bindAttr src="thumbnailURL"}}>
+ </a>
+ <h5>{{key}}</h5>
+ <div style="text-align: right">
+ <a {{bindAttr href="remixURL"}}
+ class="btn btn-mini">Remix&hellip;</a>
+ </div>
</div>
</li>
{{/each}}
View
3 static/main.js
@@ -7,6 +7,9 @@ var ThimblePage = Ember.Object.extend({
viewURL: function() {
return 'https://thimble.webmaker.org/p/' + this.get('key');
}.property('key'),
+ remixURL: function() {
+ return this.get('viewURL') + '/edit';
+ }.property('key'),
thumbnailURL: function() {
return '/images/' + this.get('key') + '.png';
}.property('key')

0 comments on commit ad181fe

Please sign in to comment.