diff --git a/resources/lang/en/skinlib.yml b/resources/lang/en/skinlib.yml index 4b7243d4..da975fee 100644 --- a/resources/lang/en/skinlib.yml +++ b/resources/lang/en/skinlib.yml @@ -43,15 +43,14 @@ show: uploader: Uploader upload-at: Upload At - manage-panel: Manage Panel - delete-texture: Delete Texture - - 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. + manage-panel: + 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. comment: Comment comment-not-available: Comment is not available. + delete-texture: Delete Texture deleted: The requested texture was already deleted. contact-admin: Please contact the admins to remove this entry. private: The requested texture is private and only visible to the uploader and admins. diff --git a/resources/lang/zh_CN/skinlib.yml b/resources/lang/zh_CN/skinlib.yml index beb179d9..7097b92b 100644 --- a/resources/lang/zh_CN/skinlib.yml +++ b/resources/lang/zh_CN/skinlib.yml @@ -43,14 +43,14 @@ show: uploader: 上传者 upload-at: 上传日期 - manage-panel: 管理面板 - delete-texture: 删除材质 - notice: 材质设为隐私或被删除后将会从每一个收藏者的衣柜中移除。 - notice-admin: 你可以将此材质设为隐私或删除。这将会使此材质从每一个收藏者的衣柜中移除。 + manage-panel: + title: 管理面板 + notice: 你可以将此材质设为隐私或删除。这将会使此材质从每一个收藏者的衣柜中移除。 comment: 评论区 comment-not-available: 本站未开启评论服务 + delete-texture: 删除材质 deleted: 请求的材质文件已经被删除 contact-admin: 请联系管理员删除该条目 private: 请求的材质已经设为隐私,仅上传者和管理员可查看 diff --git a/resources/views/common/manage-panel.tpl b/resources/views/common/manage-panel.tpl index 1327e856..dcf10da0 100644 --- a/resources/views/common/manage-panel.tpl +++ b/resources/views/common/manage-panel.tpl @@ -1,10 +1,10 @@
{{-- Texture Manage Panel --}}
-

{{ $title }}

+

{{ trans('skinlib.show.manage-panel.title') }}

-

{{ $message }}

+

{{ trans('skinlib.show.manage-panel.notice') }}

- @if (!is_null($user)) - @if ($texture->uploader == $user->uid) - @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 + @if ($user && can_moderate_texture($user, $texture)) + @include('common.manage-panel') @endif