From 5e1ca229ec6461ce781e65f6585992e73d0c16c3 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Thu, 11 Jan 2024 18:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=BE=E6=97=B6=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E7=AE=A1=E7=90=86=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Views/chapter/lessons.volt | 12 +++++------ app/Http/Admin/Views/comment/list.volt | 26 +++++++++++++++-------- app/Http/Admin/Views/course/chapters.volt | 6 +++--- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/app/Http/Admin/Views/chapter/lessons.volt b/app/Http/Admin/Views/chapter/lessons.volt index e0ea4ca6..3650915a 100644 --- a/app/Http/Admin/Views/chapter/lessons.volt +++ b/app/Http/Admin/Views/chapter/lessons.volt @@ -85,7 +85,7 @@ {% set update_url = url({'for':'admin.chapter.update','id':item.id}) %} {% set delete_url = url({'for':'admin.chapter.delete','id':item.id}) %} {% set restore_url = url({'for':'admin.chapter.restore','id':item.id}) %} - {% set comment_url = url({'for':'admin.comment.list'},{'item_id':item.id,'item_type':1}) %} + {% set comments_url = url({'for':'admin.comment.list'},{'item_id':item.id,'item_type':1}) %}

@@ -108,16 +108,16 @@

diff --git a/app/Http/Admin/Views/comment/list.volt b/app/Http/Admin/Views/comment/list.volt index eec11649..913d6cfa 100644 --- a/app/Http/Admin/Views/comment/list.volt +++ b/app/Http/Admin/Views/comment/list.volt @@ -20,7 +20,8 @@ - + + @@ -29,7 +30,8 @@ - + + @@ -44,19 +46,25 @@ {% set delete_url = url({'for':'admin.comment.delete','id':item.id}) %} {% set restore_url = url({'for':'admin.comment.restore','id':item.id}) %} - + + - + {% endfor %} diff --git a/app/Http/Admin/Views/course/chapters.volt b/app/Http/Admin/Views/course/chapters.volt index 0fe08f17..2622ee59 100644 --- a/app/Http/Admin/Views/course/chapters.volt +++ b/app/Http/Admin/Views/course/chapters.volt @@ -65,11 +65,11 @@
作者用户 内容 回复 点赞
{{ item.owner.name }}({{ item.owner.id }}){{ item.owner.name }}

{{ item.content }}

{{ item.reply_count }} {{ item.like_count }}{{ date('Y-m-d',item.create_time) }}{{ date('Y-m-d H:i:s',item.create_time) }} - {% if item.deleted == 0 %} - 删除 - {% else %} - 还原 - {% endif %} +
+ + +