 			@$(".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"]



		initialize: ->
			super
			tabs = [
				{ a: "#", label: "Meta", page: new GalleryInfoEditor({ model: @model }) },
				{ a: "#", label: "Images", page: new GalleryImagesEditor({ model: @model }) }
			]
			@tabs_controller = new TabsController
				tabs: tabs
