Remove Server List

This commit is contained in:
Kekskurse 2021-01-12 19:06:56 +01:00
parent a6990d16e4
commit ee02192af9
2 changed files with 1 additions and 5 deletions

View file

@ -35,10 +35,6 @@ class PublicController extends BaseController
$tenant = Tenant::query()->where("url", "=", $tenant)->firstOrFail();
$gallery = Gallery::getByTenantAndUrl($tenant->id, $gallery);
$images = Image::query()->where("gallery", "=", $gallery->id)->get();
$domains = explode(",", env("DOMAINS", "localhost"));
foreach($images as $image) {
$image->domain = $domains[array_rand($domains)];
}
return view("themes.gallery.default.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]);
}

View file

@ -7,7 +7,7 @@
<div id="mygallery">
@foreach($images as $image)
<a href="{{$image->domain}}/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file">
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file">
<img style="height: 200px;" alt="{{ $image->filename }}" src="{{$image->domain}}/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file"/>
</a>
@endforeach