mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 19:32:29 +01:00
Merge branch 'master' into translations
This commit is contained in:
commit
a24f3d7d47
@ -52,7 +52,7 @@ class RegisterController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
|
public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
|
||||||
{
|
{
|
||||||
$this->middleware('guest');
|
$this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']);
|
||||||
$this->socialAuthService = $socialAuthService;
|
$this->socialAuthService = $socialAuthService;
|
||||||
$this->emailConfirmationService = $emailConfirmationService;
|
$this->emailConfirmationService = $emailConfirmationService;
|
||||||
$this->userRepo = $userRepo;
|
$this->userRepo = $userRepo;
|
||||||
@ -298,5 +298,4 @@ class RegisterController extends Controller
|
|||||||
return $this->registerUser($userData, $socialAccount);
|
return $this->registerUser($userData, $socialAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -135,7 +135,10 @@
|
|||||||
border-left: 3px solid #BBB;
|
border-left: 3px solid #BBB;
|
||||||
background-color: #EEE;
|
background-color: #EEE;
|
||||||
padding: $-s;
|
padding: $-s;
|
||||||
display: flex;
|
display: block;
|
||||||
|
> * {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
&:before {
|
&:before {
|
||||||
font-family: 'Material-Design-Iconic-Font';
|
font-family: 'Material-Design-Iconic-Font';
|
||||||
padding-right: $-s;
|
padding-right: $-s;
|
||||||
|
@ -110,6 +110,8 @@
|
|||||||
border-left: 0px solid #FFF;
|
border-left: 0px solid #FFF;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
&.fixed {
|
&.fixed {
|
||||||
|
background-color: #FFF;
|
||||||
|
z-index: 5;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding-left: $-l;
|
padding-left: $-l;
|
||||||
|
@ -248,29 +248,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tag-display {
|
.tag-display {
|
||||||
margin: $-xl $-m;
|
width: 100%;
|
||||||
border: 1px solid #DDD;
|
//opacity: 0.7;
|
||||||
min-width: 180px;
|
|
||||||
max-width: 320px;
|
|
||||||
opacity: 0.7;
|
|
||||||
z-index: 5;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
tr:first-child td {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
.heading th {
|
.heading th {
|
||||||
padding: $-xs $-s;
|
padding: $-xs $-s;
|
||||||
color: #333;
|
color: rgba(100, 100, 100, 0.7);
|
||||||
|
border: 0;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
td {
|
td {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid #DDD;
|
border-bottom: 1px solid #EEE;
|
||||||
padding: $-xs $-s;
|
padding: $-xs $-s;
|
||||||
color: #444;
|
color: #444;
|
||||||
}
|
}
|
||||||
|
tr td:first-child {
|
||||||
|
padding-left:0;
|
||||||
|
}
|
||||||
.tag-value {
|
.tag-value {
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
@ -2,26 +2,6 @@
|
|||||||
|
|
||||||
<h1 id="bkmrk-page-title" class="float left">{{$page->name}}</h1>
|
<h1 id="bkmrk-page-title" class="float left">{{$page->name}}</h1>
|
||||||
|
|
||||||
@if(count($page->tags) > 0)
|
|
||||||
<div class="tag-display float right">
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr class="text-left heading primary-background-light">
|
|
||||||
<th colspan="2">{{ trans('entities.page_tags') }}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach($page->tags as $tag)
|
|
||||||
<tr class="tag">
|
|
||||||
<td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
|
|
||||||
@if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div style="clear:left;"></div>
|
<div style="clear:left;"></div>
|
||||||
|
|
||||||
@if (isset($diff) && $diff)
|
@if (isset($diff) && $diff)
|
||||||
|
@ -102,6 +102,8 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree, 'pageNav' => $pageNav])
|
@include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree, 'pageNav' => $pageNav])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,6 +1,22 @@
|
|||||||
|
|
||||||
<div class="book-tree" ng-non-bindable>
|
<div class="book-tree" ng-non-bindable>
|
||||||
|
|
||||||
|
@if(isset($page) && $page->tags->count() > 0)
|
||||||
|
<div class="tag-display">
|
||||||
|
<h6 class="text-muted">Page Tags</h6>
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
@foreach($page->tags as $tag)
|
||||||
|
<tr class="tag">
|
||||||
|
<td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
|
||||||
|
@if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search/all?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($page) && $page->attachments->count() > 0)
|
@if (isset($page) && $page->attachments->count() > 0)
|
||||||
<h6 class="text-muted">{{ trans('entities.pages_attachments') }}</h6>
|
<h6 class="text-muted">{{ trans('entities.pages_attachments') }}</h6>
|
||||||
@foreach($page->attachments as $attachment)
|
@foreach($page->attachments as $attachment)
|
||||||
|
@ -154,7 +154,7 @@ Route::group(['middleware' => 'auth'], function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Social auth routes
|
// Social auth routes
|
||||||
Route::get('/login/service/{socialDriver}', 'Auth\RegisterController@getSocialLogin');
|
Route::get('/login/service/{socialDriver}', 'Auth\LoginController@getSocialLogin');
|
||||||
Route::get('/login/service/{socialDriver}/callback', 'Auth\RegisterController@socialCallback');
|
Route::get('/login/service/{socialDriver}/callback', 'Auth\RegisterController@socialCallback');
|
||||||
Route::get('/login/service/{socialDriver}/detach', 'Auth\RegisterController@detachSocialAccount');
|
Route::get('/login/service/{socialDriver}/detach', 'Auth\RegisterController@detachSocialAccount');
|
||||||
Route::get('/register/service/{socialDriver}', 'Auth\RegisterController@socialRegister');
|
Route::get('/register/service/{socialDriver}', 'Auth\RegisterController@socialRegister');
|
||||||
|
Loading…
Reference in New Issue
Block a user