 			@$(".editor").empty().append(el)
 
 
-	class EditGalleryView extends CoffeeBar.TemplateController
+	class GalleryInfoEditor extends CoffeeBar.TemplateController
 		events:
 			"click .btn-ok": "do_submit"
 			"click .btn-cancel": "do_cancel"

			@$(".images").empty().append(el)


	class ImageItem extends CoffeeBar.TemplateController
		template: jade["gallery/image.jade"]




			@collection_controller = new CollectionController
				collection: app.galleries
				child_control: (model) -> new GalleryListItem({ model: model })

		on_render: ->
			el = @collection_controller.render().el
			@$(".galleries").empty().append(el)

	class GalleryListItem extends CoffeeBar.TemplateController
		template: jade["gallery/item.jade"]
		events:
			"click a.btn-delete": "do_delete"
