Skip to content

Commit 45220db

Browse files
committedDec 23, 2022
更新:优化帖子页面视图
·
v2.7.7v2.1.7
1 parent dfc47e1 commit 45220db

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed
 

‎app/Themes/CodeFec/resources/views/topic/show/content.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{!! $data->tag->icon !!}
99
{{$data->tag->name}}
1010
</a></li>
11-
<li class="breadcrumb-item active" aria-current="page"><a href="">{{$data->title}}</a></li>
11+
<li class="breadcrumb-item active" aria-current="page"><a href="">{{\Hyperf\Utils\Str::limit($data->title,20)}}</a></li>
1212
</ol>
1313
</div>
1414
<div class="card-body topic">

‎app/Themes/CodeFec/resources/views/topic/show/include/footer.blade.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<div class="card-footer">
22
<div class="row">
33
<div class="col">
4-
{{-- 点赞 --}}
5-
<a style="text-decoration:none;" core-click="like-topic" topic-id="{{ $data->id }}"
6-
class="hvr-icon-bounce cursor-pointer text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom"
7-
title="{{__("topic.likes")}}">
8-
<svg xmlns="http://www.w3.org/2000/svg" class="hvr-icon icon" width="24" height="24"
9-
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
10-
stroke-linejoin="round">
11-
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
12-
<path d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"/>
13-
</svg>
14-
<span core-show="topic-likes">{{ $data->like }}</span>
15-
</a>
164
@if(auth()->check())
5+
{{-- 点赞 --}}
6+
<a style="text-decoration:none;" core-click="like-topic" topic-id="{{ $data->id }}"
7+
class="hvr-icon-bounce cursor-pointer text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom"
8+
title="{{__("topic.likes")}}">
9+
<svg xmlns="http://www.w3.org/2000/svg" class="hvr-icon icon" width="24" height="24"
10+
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
11+
stroke-linejoin="round">
12+
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
13+
<path d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"/>
14+
</svg>
15+
<span core-show="topic-likes">{{ $data->like }}</span>
16+
</a>
1717
{{-- 收藏--}}
1818
<a style="text-decoration:none;" core-click="star-topic" topic-id="{{ $data->id }}"
1919
class="hvr-icon-bounce cursor-pointer text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom"
@@ -37,23 +37,23 @@ class="hvr-icon-pulse cursor-pointer text-muted" data-bs-toggle="tooltip" data-b
3737
<path d="M5 14h14l-4.5 -4.5l4.5 -4.5h-14v16"></path>
3838
</svg>
3939
</a>
40+
{{-- 引用--}}
41+
<a style="text-decoration:none;" core-click="copy" copy-content="[topic topic_id={{$data->id}}]" message="短代码复制成功!"
42+
class="hvr-icon-bounce cursor-pointer text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom"
43+
title="引用">
44+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-blockquote" width="24"
45+
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
46+
stroke-linecap="round" stroke-linejoin="round">
47+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
48+
<path d="M6 15h15"></path>
49+
<path d="M21 19h-15"></path>
50+
<path d="M15 11h6"></path>
51+
<path d="M21 7h-6"></path>
52+
<path d="M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></path>
53+
<path d="M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></path>
54+
</svg>
55+
</a>
4056
@endif
41-
{{-- 引用--}}
42-
<a style="text-decoration:none;" core-click="copy" copy-content="[topic topic_id={{$data->id}}]" message="短代码复制成功!"
43-
class="hvr-icon-bounce cursor-pointer text-muted" data-bs-toggle="tooltip" data-bs-placement="bottom"
44-
title="引用">
45-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-blockquote" width="24"
46-
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
47-
stroke-linecap="round" stroke-linejoin="round">
48-
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
49-
<path d="M6 15h15"></path>
50-
<path d="M21 19h-15"></path>
51-
<path d="M15 11h6"></path>
52-
<path d="M21 7h-6"></path>
53-
<path d="M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></path>
54-
<path d="M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></path>
55-
</svg>
56-
</a>
5757
</div>
5858

5959
{{-- 右边 footer--}}

0 commit comments

Comments
 (0)
Please sign in to comment.