From b7915cc7b003dc5cc44ce4e0cc835e41327955c9 Mon Sep 17 00:00:00 2001 From: qianmengnet Date: Mon, 26 Nov 2018 08:47:49 +0800 Subject: [PATCH 1/2] Add anchor link to "Created Content" on the "View Profile" Add 3 anchor link to "Created Content" on the "View Profile" page and click to jump to the page section --- resources/views/users/profile.blade.php | 30 +++++++++++++++---------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/resources/views/users/profile.blade.php b/resources/views/users/profile.blade.php index bd63ce938..c4a8f6323 100644 --- a/resources/views/users/profile.blade.php +++ b/resources/views/users/profile.blade.php @@ -37,21 +37,27 @@
{{ trans('entities.profile_created_content') }}
-
- @icon('book') {{ trans_choice('entities.x_books', $assetCounts['books']) }} -
-
- @icon('chapter') {{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }} -
-
- @icon('page') {{ trans_choice('entities.x_pages', $assetCounts['pages']) }} -
+ +
+ @icon('book') {{ trans_choice('entities.x_books', $assetCounts['books']) }} +
+
+ +
+ @icon('chapter') {{ trans_choice('entities.x_chapters', $assetCounts['chapters']) }} +
+
+ +
+ @icon('page') {{ trans_choice('entities.x_pages', $assetCounts['pages']) }} +
+

- +

{{ trans('entities.recently_created_pages') }}

@if (count($recentlyCreated['pages']) > 0) @include('partials/entity-list', ['entities' => $recentlyCreated['pages']]) @@ -60,7 +66,7 @@ @endif
- +

{{ trans('entities.recently_created_chapters') }}

@if (count($recentlyCreated['chapters']) > 0) @include('partials/entity-list', ['entities' => $recentlyCreated['chapters']]) @@ -69,7 +75,7 @@ @endif
- +

{{ trans('entities.recently_created_books') }}

@if (count($recentlyCreated['books']) > 0) @include('partials/entity-list', ['entities' => $recentlyCreated['books']]) From 3c796b1ae78df74cf5412fa1d6eea718c932704b Mon Sep 17 00:00:00 2001 From: qianmengnet Date: Mon, 26 Nov 2018 09:05:38 +0800 Subject: [PATCH 2/2] Add "register" to nav. Add "register" to nav.You need to click "login" to find register, which is not convenient for people who are not familiar with the app. --- resources/views/base.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/base.blade.php b/resources/views/base.blade.php index e6d0b7761..cd8063e12 100644 --- a/resources/views/base.blade.php +++ b/resources/views/base.blade.php @@ -57,6 +57,9 @@ @endif @if(!signedInUser()) @icon('login') {{ trans('auth.log_in') }} + @if(setting('registration-enabled', false)) + @icon('new-user') {{ trans('auth.sign_up') }} + @endif @endif @if(signedInUser())