make a small-frame template folder; we're not going to want the same dom structure moving forward...

This commit is contained in:
danielgrippi 2012-05-21 10:57:14 -07:00
parent 1308994bba
commit ff42f250ca
3 changed files with 9 additions and 10 deletions

View file

@ -75,7 +75,6 @@ app.views.Base = Backbone.View.extend({
setFormAttrs : function(){
this.model.set(_.inject(this.formAttrs, _.bind(setValueFromField, this), {}))
console.log("set from form", this.model.attributes)
function setValueFromField(memo, attribute, selector){
if(attribute.slice("-2") === "[]") {

View file

@ -3,7 +3,7 @@
app.views.SmallFrame = app.views.Post.extend({
className : "canvas-frame",
templateName : "small-frame",
templateName : "small-frame/default", // default to fall back to
events : {
"click .content" : "favoritePost",

View file

@ -1,8 +1,4 @@
<div class="content">
<div class=controls>
<a href="#" class="delete"></a>
</div>
{{#if photos}}
<div class="image-container">
{{#each photos}}
@ -28,6 +24,11 @@
<div class="background-color"></div>
{{/if}}
<!--Handlebars partial territory-->
<div class=controls>
<a href="#" class="delete"></a>
</div>
<div class="info permalink">
{{#if root}}
{{#linkToPerson root.author}}
@ -41,7 +42,6 @@
<i class="icon-heart"></i> {{likesCount}}
<i class="icon-retweet"></i> {{resharesCount}}
<i class="icon-comment"></i> {{commentsCount}}
</div>
</div>