From bea9382e9ef63f9ea8426c7ddafcd04d11227c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=A1=E5=AE=9C=E5=B0=A7?= Date: Thu, 10 Oct 2019 14:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=9F=E8=83=BD=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/wizard.php | 2 +- public/assets/css/style.css | 13 +++ resources/views/index.blade.php | 159 ++++++++++++++++++++------------ 3 files changed, 116 insertions(+), 58 deletions(-) diff --git a/config/wizard.php b/config/wizard.php index 162650e6..c6efaef5 100644 --- a/config/wizard.php +++ b/config/wizard.php @@ -10,7 +10,7 @@ /** * 当前版本 */ - 'version' => '1.0.7', + 'version' => '1.0.8', /** * 版本检查 */ diff --git a/public/assets/css/style.css b/public/assets/css/style.css index c9f2dc8b..56fa5186 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -1218,4 +1218,17 @@ pre.prettyprint *, color: #0080ff; margin-left: 5px; font-weight: bold; +} + +.wz-version-suggest { + display: none; +} + +.wz-version-suggest-items { + padding-left: 20px; + padding-top: 15px; +} + +.wz-version-suggest-items li { + list-style: none; } \ No newline at end of file diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index d3faa8a7..e7f14249 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -17,7 +17,8 @@
search - +
@@ -27,7 +28,8 @@
@unless(Auth::guest() || !empty($catalog_id))
- + 提示: 该页面为公共主页,如果要创建项目,请到 @lang('common.user_home')
@endunless @@ -37,7 +39,8 @@ @endforeach @@ -50,12 +53,14 @@ @include('components.project-tag', ['proj' => $proj]) {{--@if(!empty($favorites) && $favorites->contains('id', $proj->id))--}} - {{----}} + {{----}} {{--@endif--}} -

{{ $proj->name }}

+

{{ $proj->name }}

{{ $proj->pages_count ?? '0' }} 个文档

@if (!empty($name)) {{-- 搜索模式下,所有项目平级展示,因此要输出项目所属的目录名称 --}} - {{ $proj->catalog->name ?? '' }} + {{ $proj->catalog->name ?? '' }} @endif
@@ -72,24 +77,27 @@ {{-- 非搜索模式,同时用于有关注的项目,则展示 --}} @if(!empty($favorites) && $favorites->count() > 0 && empty($name)) -
-
我关注的
-
- @endif @if (!empty($tags) && $tags->count() > 0) @@ -118,49 +126,58 @@ @include('components.doc-compare-script') @endif + @unless(Auth::guest()) + + @endunless + @endsection @push('script') @if(!Auth::guest() && empty($name)) - - + + @endif + + @unless(Auth::guest()) + + @endunless @endpush \ No newline at end of file