mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-01-31 15:24:59 +08:00
Removed old ng tags, Fixed header spacing
Also prevent pointer error on custom home page
This commit is contained in:
parent
f399e60910
commit
d886c6a32e
|
@ -35,6 +35,7 @@ class PageDisplay {
|
|||
}
|
||||
|
||||
setupPointer() {
|
||||
if (document.getElementById('pointer') === null) return;
|
||||
// Set up pointer
|
||||
let $pointer = $('#pointer').detach();
|
||||
let pointerShowing = false;
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
margin: 0 auto;
|
||||
margin-top: $-xxl;
|
||||
overflow-wrap: break-word;
|
||||
&.flex {
|
||||
margin-top: $-m;
|
||||
}
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<header id="header">
|
||||
<div class="container fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" ng-non-bindable>
|
||||
<div class="col-sm-4">
|
||||
<a href="{{ baseUrl('/') }}" class="logo">
|
||||
@if(setting('app-logo', '') !== 'none')
|
||||
<img class="logo-image" src="{{ setting('app-logo', '') === '' ? baseUrl('/logo.png') : baseUrl(setting('app-logo', '')) }}" alt="Logo">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div ng-non-bindable class="container small">
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('add') {{ trans('entities.books_create') }}</h3>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('delete') {{ trans('entities.books_delete') }}</h3>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('edit') {{ trans('entities.books_edit') }}</h3>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('lock') {{ trans('entities.books_permissions') }}</h3>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="sort-box" data-type="book" data-id="{{ $book->id }}" ng-non-bindable>
|
||||
<div class="sort-box" data-type="book" data-id="{{ $book->id }}">
|
||||
<h3 class="text-book">@icon('book'){{ $book->name }}</h3>
|
||||
<ul class="sortable-page-list sort-list">
|
||||
@foreach($bookChildren as $bookChild)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<div class="card">
|
||||
<h3>@icon('add') {{ trans('entities.chapters_create') }}</h3>
|
||||
<div class="body">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('delete') {{ trans('entities.chapters_delete') }}</h3>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('edit') {{ trans('entities.chapters_edit') }}</h3>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('lock') {{ trans('entities.chapters_permissions') }}</h3>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div page-comments page-id="{{ $page->id }}" ng-non-bindable class="comments-list">
|
||||
<div page-comments page-id="{{ $page->id }}" class="comments-list">
|
||||
<h5 comments-title class="float left">{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}</h5>
|
||||
|
||||
<div class="comment-container" comment-container>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-4">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('delete') {{ $page->draft ? trans('entities.pages_delete_draft') : trans('entities.pages_delete') }}</h3>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<h1>{{ trans('entities.pages_new') }}</h1>
|
||||
<form action="{{ $parent->getUrl('/create-guest-page') }}" method="POST">
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div ng-non-bindable>
|
||||
<div>
|
||||
|
||||
<h1 class="break-text" v-pre id="bkmrk-page-title">{{$page->name}}</h1>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
@stop
|
||||
|
||||
@section('body')
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('lock') {{ trans('entities.pages_permissions') }}</h3>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="page-content">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
@stop
|
||||
|
||||
@section('body')
|
||||
<div class="container" ng-non-bindable>
|
||||
<div class="container">
|
||||
<p> </p>
|
||||
|
||||
<div class="card">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="dropdown-container" dropdown>
|
||||
<span class="user-name" dropdown-toggle>
|
||||
<img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
|
||||
<span class="name" ng-non-bindable>{{ $currentUser->getShortName(9) }}</span> @icon('caret-down')
|
||||
<span class="name">{{ $currentUser->getShortName(9) }}</span> @icon('caret-down')
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<div class="entity-list @if(isset($style)){{ $style }}@endif" ng-non-bindable>
|
||||
<div class="entity-list @if(isset($style)){{ $style }}@endif">
|
||||
@if(count($entities) > 0)
|
||||
@foreach($entities as $index => $entity)
|
||||
@if($entity->isA('page'))
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
@section('container-attrs')
|
||||
id="search-system"
|
||||
ng-non-bindable=""
|
||||
=""
|
||||
@stop
|
||||
|
||||
@section('sidebar')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="entity-list @if(isset($style)){{ $style }}@endif" ng-non-bindable>
|
||||
<div class="entity-list @if(isset($style)){{ $style }}@endif">
|
||||
@if(count($entities) > 0)
|
||||
@foreach($entities as $index => $entity)
|
||||
@if($entity->isA('page'))
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
@stop
|
||||
|
||||
@section('body')
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('delete') {{ trans('settings.role_delete') }}</h3>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('users-add') {{ trans('settings.users_add_new') }}</h3>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('delete') {{ trans('settings.users_delete') }}</h3>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="body">
|
||||
<form action="{{ baseUrl("/settings/users/{$user->id}") }}" method="post">
|
||||
<div class="row">
|
||||
<div class="col-sm-6" ng-non-bindable>
|
||||
<div class="col-sm-6">
|
||||
{!! csrf_field() !!}
|
||||
<input type="hidden" name="_method" value="put">
|
||||
@include('users.forms.' . $authMethod, ['model' => $user])
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
@stop
|
||||
|
||||
@section('body')
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
<p> </p>
|
||||
<div class="card">
|
||||
<h3>@icon('users') {{ trans('settings.users') }}</h3>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
@section('body')
|
||||
|
||||
<div class="container small" ng-non-bindable>
|
||||
<div class="container small">
|
||||
|
||||
<div class="padded-top large"></div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user