diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php index 0d5a90b..40d1f96 100644 --- a/app/Http/Controllers/GalleryController.php +++ b/app/Http/Controllers/GalleryController.php @@ -26,7 +26,8 @@ class GalleryController extends BaseController } public function newView() { - return view("gallery.new"); + $gallery = new Gallery(); + return view("gallery.new", ["gallery" => $gallery]); } public function newGallery(Request $request) { @@ -101,11 +102,11 @@ class GalleryController extends BaseController public function editGalleryView($name, Request $request) { $gallery = Gallery::getByTenantAndUrl(session("current_tenant_id"), $name); - session(['_old_input.name' => $gallery->name]); + /*session(['_old_input.name' => $gallery->name]); session(['_old_input.description' => $gallery->description]); session(['_old_input.date' => $gallery->gallery_create_time]); - session(['_old_input.url' => $gallery->url]); - return view("gallery.new"); + session(['_old_input.url' => $gallery->url]);*/ + return view("gallery.new", ["gallery" => $gallery]); } public function editGallery($name, Request $request) { diff --git a/resources/ansible/hosts.yml b/resources/ansible/hosts.yml index 9f567b8..39c8b73 100644 --- a/resources/ansible/hosts.yml +++ b/resources/ansible/hosts.yml @@ -4,8 +4,6 @@ all: hosts: www1.fra.kuvia.cloud: domain: www1.fra.kuvia.cloud www.kuvia.cloud kuvia.cloud - www2.fra.kuvia.cloud: - domain: www2.fra.kuvia.cloud mysql: hosts: diff --git a/resources/views/gallery/new.blade.php b/resources/views/gallery/new.blade.php index c26757b..026a919 100644 --- a/resources/views/gallery/new.blade.php +++ b/resources/views/gallery/new.blade.php @@ -19,8 +19,8 @@