diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/album_images_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/album_images_controller.rb index f9740225..107a4826 100644 --- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/album_images_controller.rb +++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/album_images_controller.rb @@ -1,11 +1,5 @@ class Panel::Gallery::FrontEnd::AlbumImagesController < OrbitWidgetController - def show - @tags = GalleryTag.all - @image = GalleryImage.find(params[:album_id]) - @albumid = @image.gallery_album_id - @album = GalleryAlbum.find(@albumid) - @images = @album.gallery_images.all - end + end diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb index bd4ebbf0..b1f91f69 100644 --- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb +++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb @@ -89,7 +89,7 @@ class Panel::Gallery::FrontEnd::AlbumsController < OrbitWidgetController values.tag_ids.each do |tag| tags << GalleryTag.find(tag)[I18n.locale] end - @output << {"_id"=>values.id,"theater_link"=>panel_gallery_front_end_album_path(values)+"/theater","description"=>values.description,"title"=>values.title,"file"=>values.file,"gallery_album_id"=>values.gallery_album_id,"tag_ids"=>values.tag_ids,"tag_names"=>tags} + @output << {"_id"=>values.id,"theater_link"=>theater_panel_gallery_front_end_album_path(values),"description"=>values.description,"title"=>values.title,"file"=>values.file,"gallery_album_id"=>values.gallery_album_id,"tag_ids"=>values.tag_ids,"tag_names"=>tags} end render :json=>{"images" => @output}.to_json end @@ -104,6 +104,14 @@ class Panel::Gallery::FrontEnd::AlbumsController < OrbitWidgetController render :json=>tags.to_json end + def theater + @tags = GalleryTag.all + @image = GalleryImage.find(params[:album_id]) + @albumid = @image.gallery_album_id + @album = GalleryAlbum.find(@albumid) + @images = @album.gallery_images.all + end + end diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/create.js.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/create.js.erb deleted file mode 100644 index 36cfe297..00000000 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/create.js.erb +++ /dev/null @@ -1,3 +0,0 @@ -var gal = new galleryAPI(); -gal.loadAlbums("all"); -rcom.modalWindowClose(); diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/edit.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/edit.html.erb deleted file mode 100644 index 1052609e..00000000 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/edit.html.erb +++ /dev/null @@ -1,137 +0,0 @@ -<%= stylesheet_link_tag "gallery" %> -
- <%= label_tag(locale, t("gallery.album_name")) %> - <%= name.text_field locale, :class => "validate" %> -
-- <%= label_tag(locale, t("gallery.album_desc")) %> - <%= desc.text_field locale %> -
-