Update moderation panel of textures
This commit is contained in:
parent
e0c7292d35
commit
8e43b185fe
|
|
@ -43,15 +43,14 @@ show:
|
||||||
uploader: Uploader
|
uploader: Uploader
|
||||||
upload-at: Upload At
|
upload-at: Upload At
|
||||||
|
|
||||||
manage-panel: Manage Panel
|
manage-panel:
|
||||||
delete-texture: Delete Texture
|
title: Manage Panel
|
||||||
|
notice: You can delete this texture or make it private. The operation will also remove it from the closet of everyone who had favorited it.
|
||||||
notice: The texture which was deleted or setted to private will be removed from the closet of everyone who had favorited it.
|
|
||||||
notice-admin: You are able to delete this texture or make it private. The operations will make it removed from the closet of everyone who had favorited it.
|
|
||||||
|
|
||||||
comment: Comment
|
comment: Comment
|
||||||
comment-not-available: Comment is not available.
|
comment-not-available: Comment is not available.
|
||||||
|
|
||||||
|
delete-texture: Delete Texture
|
||||||
deleted: The requested texture was already deleted.
|
deleted: The requested texture was already deleted.
|
||||||
contact-admin: Please contact the admins to remove this entry.
|
contact-admin: Please contact the admins to remove this entry.
|
||||||
private: The requested texture is private and only visible to the uploader and admins.
|
private: The requested texture is private and only visible to the uploader and admins.
|
||||||
|
|
|
||||||
|
|
@ -43,14 +43,14 @@ show:
|
||||||
uploader: 上传者
|
uploader: 上传者
|
||||||
upload-at: 上传日期
|
upload-at: 上传日期
|
||||||
|
|
||||||
manage-panel: 管理面板
|
manage-panel:
|
||||||
delete-texture: 删除材质
|
title: 管理面板
|
||||||
notice: 材质设为隐私或被删除后将会从每一个收藏者的衣柜中移除。
|
notice: 你可以将此材质设为隐私或删除。这将会使此材质从每一个收藏者的衣柜中移除。
|
||||||
notice-admin: 你可以将此材质设为隐私或删除。这将会使此材质从每一个收藏者的衣柜中移除。
|
|
||||||
|
|
||||||
comment: 评论区
|
comment: 评论区
|
||||||
comment-not-available: 本站未开启评论服务
|
comment-not-available: 本站未开启评论服务
|
||||||
|
|
||||||
|
delete-texture: 删除材质
|
||||||
deleted: 请求的材质文件已经被删除
|
deleted: 请求的材质文件已经被删除
|
||||||
contact-admin: 请联系管理员删除该条目
|
contact-admin: 请联系管理员删除该条目
|
||||||
private: 请求的材质已经设为隐私,仅上传者和管理员可查看
|
private: 请求的材质已经设为隐私,仅上传者和管理员可查看
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<div class="box box-danger">
|
<div class="box box-danger">
|
||||||
{{-- Texture Manage Panel --}}
|
{{-- Texture Manage Panel --}}
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title">{{ $title }}</h3>
|
<h3 class="box-title">{{ trans('skinlib.show.manage-panel.title') }}</h3>
|
||||||
</div><!-- /.box-header -->
|
</div><!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p>{{ $message }}</p>
|
<p>{{ trans('skinlib.show.manage-panel.notice') }}</p>
|
||||||
</div><!-- /.box-body -->
|
</div><!-- /.box-body -->
|
||||||
|
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
|
|
|
||||||
|
|
@ -99,19 +99,8 @@
|
||||||
</div><!-- /.box-body -->
|
</div><!-- /.box-body -->
|
||||||
</div><!-- /.box -->
|
</div><!-- /.box -->
|
||||||
|
|
||||||
@if (!is_null($user))
|
@if ($user && can_moderate_texture($user, $texture))
|
||||||
@if ($texture->uploader == $user->uid)
|
@include('common.manage-panel')
|
||||||
@include('common.manage-panel', [
|
|
||||||
'title' => trans('skinlib.show.delete-texture')." / ".trans('skinlib.privacy.change-privacy'),
|
|
||||||
'message' => trans('skinlib.show.notice')
|
|
||||||
])
|
|
||||||
|
|
||||||
@elseif ($user->isAdmin())
|
|
||||||
@include('common.manage-panel', [
|
|
||||||
'title' => trans('skinlib.show.manage-panel'),
|
|
||||||
'message' => trans('skinlib.show.notice-admin')
|
|
||||||
])
|
|
||||||
@endif
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user