Commit 48b37db3

mo khan <mo@mokhan.ca>
2014-07-01 01:05:25
remove unused backbone views and template.
1 parent f266ab7
Changed files (2)
app
assets
javascripts
backbone
templates
views
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