Commit 48b37db3
Changed files (2)
app
assets
javascripts
backbone
templates
photos
views
photos
app/assets/javascripts/backbone/templates/photos/photo.jst.ejs
@@ -1,6 +0,0 @@
-<td><%= thumb_url %></td>
-<td><%= large_url %></td>
-
-<td><a href="#/<%= id %>">Show</td>
-<td><a href="#/<%= id %>/edit">Edit</td>
-<td><a href="#/<%= id %>/destroy" class="destroy">Destroy</a></td>
\ No newline at end of file
app/assets/javascripts/backbone/views/photos/photo_view.js.coffee
@@ -1,19 +0,0 @@
-CakeSide.Views.Photos ||= {}
-
-class CakeSide.Views.Photos.PhotoView extends Backbone.View
- template: JST["backbone/templates/photos/photo"]
-
- events:
- "click .destroy" : "destroy"
-
- tagName: "tr"
-
- destroy: () ->
- @model.destroy()
- this.remove()
-
- return false
-
- render: ->
- $(@el).html(@template(@model.toJSON() ))
- return this