Remove Server List
This commit is contained in:
parent
a6990d16e4
commit
ee02192af9
2 changed files with 1 additions and 5 deletions
|
@ -35,10 +35,6 @@ class PublicController extends BaseController
|
||||||
$tenant = Tenant::query()->where("url", "=", $tenant)->firstOrFail();
|
$tenant = Tenant::query()->where("url", "=", $tenant)->firstOrFail();
|
||||||
$gallery = Gallery::getByTenantAndUrl($tenant->id, $gallery);
|
$gallery = Gallery::getByTenantAndUrl($tenant->id, $gallery);
|
||||||
$images = Image::query()->where("gallery", "=", $gallery->id)->get();
|
$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]);
|
return view("themes.gallery.default.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<div id="mygallery">
|
<div id="mygallery">
|
||||||
@foreach($images as $image)
|
@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"/>
|
<img style="height: 200px;" alt="{{ $image->filename }}" src="{{$image->domain}}/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file"/>
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in a new issue