重构:统一前台页面级导航栏
- 移除大厅和说明页多余的 nav-right 内容 - 统一在 layouts/app.blade.php 内展示 大厅/风云榜/留言板/后台/使用说明/个人资料/退出 等功能 - 去除重复的个人资料按钮,取消前台新建房间的功能(已转至后台),精简导航展示
This commit is contained in:
@@ -36,17 +36,10 @@
|
||||
@endif
|
||||
{{-- 使用说明 --}}
|
||||
<a href="{{ route('guide') }}" class="text-indigo-200 hover:text-white font-bold text-sm hidden sm:block">📖 使用说明</a>
|
||||
{{-- 个人资料 --}}
|
||||
<button @click="showProfileModal = true" class="font-medium text-sm hover:text-indigo-200 transition flex items-center">
|
||||
欢迎您,{{ Auth::user()->username }}
|
||||
{{-- 个人中心展示 --}}
|
||||
<button @click="showProfileModal = true" class="text-indigo-200 hover:text-white font-bold text-sm hidden sm:block">
|
||||
👤 个人资料
|
||||
</button>
|
||||
{{-- 新建房间 --}}
|
||||
@if (Auth::user()->user_level >= 10)
|
||||
<button @click="showCreateModal = true"
|
||||
class="bg-emerald-500 hover:bg-emerald-400 px-4 py-2 rounded-md font-bold text-sm transition shadow-sm">
|
||||
+ 新建房间
|
||||
</button>
|
||||
@endif
|
||||
{{-- 退出登录 --}}
|
||||
<form action="{{ route('logout') }}" method="POST" class="inline">
|
||||
@csrf
|
||||
|
||||
Reference in New Issue
Block a user