text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|> @endif </div> @endif </div> </div><|fim_prefix|><div class="mb-xl"> <h5>{{ trans('common.details') }}</h5> <div class="blended-links"> @include('entities.meta', ['entity' => $book, 'watchOptions' => $watchOptions]) @if($book->hasPermissions()) ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>' => $bookParentShelves, 'style' => 'compact']) </div> @endif<|fim_prefix|>@if(count($bookParentShelves) > 0) <div class="actions mb-xl"> <h5>{{ trans('entities.shelves') }}</h5> @include('entities.l<|fim_middle|>ist', ['entities<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|>-list', ['entity' => $book]) </div> @endif<|fim_prefix|>@if($book->tags->count() > 0) <div class="mb-xl"> @<|fim_middle|>include('entities.tag<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="sort-box-actions flex-container-row items-center px-s gap-xxs"> <button type="button" data-move="up" class="icon-button p-xs text-bigger" title="{{ trans('entities.books_sort_move_up') }}">@icon('chevron-up')</button> <button type="button" data-move="down" class="icon-butto...
fim
BookStackApp/BookStack
php
<|fim_prefix|><details class="sort-box" data-type="book" data-id="{{ $book->id }}" open> <summary> <h5 class="flex-container-row items-center justify-flex-start gap-xs"> <div class="text-book text-bigger caret-container"> @icon('caret-right') </div> <div c...
fim
BookStackApp/BookStack
php
<|fim_suffix|> ]]) </div> <main class="card content-wrap auto-height"> @include('form.entity-permissions', ['model' => $book, 'title' => trans('entities.books_permissions')]) </main> </div> @stop <|fim_prefix|>@extends('layouts.simple') @section('body') <div class...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ <|fim_suffix|> 'icon' => 'reference', ] ]]) </div> @include('entities.referenc...
fim
BookStackApp/BookStack
php
<|fim_suffix|>rch-results') </main> @stop @section('right') @include('books.parts.show-sidebar-section-details', ['book' => $book, 'watchOptions' => $watchOptions]) @include('books.parts.show-sidebar-section-actions', ['book' => $book, 'watchOptions' => $watchOptions]) @stop @section('left') @include...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $book, $book->getUrl('/sort') => [ 'text' => trans('entities.books_sort'), ...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <|fim_suffix|>pter->getUrl('/copy') }}" method="POST"> {!! csrf_field() !!} <div class="form-group title-input"> <label for="name">{{ trans('common.name') }}</label> ...
fim
BookStackApp/BookStack
php
<|fim_suffix|> </main> </div> @stop<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $book, $book->getUrl('create-chapter') => [ '...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $chapter->book, $chapter, $chap<|fim_suffix|>ine">{{ trans('common.cancel') }}</a> ...
fim
BookStackApp/BookStack
php
<|fim_suffix|> @endif </div> @stop<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $book, $chapter, $chapter->getUrl('/edit') => ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>e="submit" class="button">{{ trans('entities.chapters_move') }}</button> </div> </form> </main> </div> @stop <|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div component="chapter-contents" class="chapter-child-menu"> <button type="button" refs="chapter-contents@toggle" aria-expanded="{{ $isOpen ? 'true' : 'false' }}" class="text-muted chapter-contents-toggle @if($isOpen) open @endif"> @icon('caret-right') @ico...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="content-wrap card auto-height"> <h2 c<|fim_suffix|> <button type="submit" class="text-link text-item">{{ trans('common.confirm') }}</button> </form> </li> </ul> </div> </div> </div> </div...
fim
BookStackApp/BookStack
php
{{ csrf_field() }} <div class="form-group title-input"> <label for="name">{{ trans('common.name') }}</label> @include('form.text', ['name' => 'name', 'autofocus' => true]) </div> <div class="form-group description-input"> <label for="description_html">{{ trans('common.description') }}</label> @include(...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{--This view display child pages in a list if pre-loaded onto a 'visible_pages' property,--}} {{--To ensure that the pages have been loaded efficiently with permissions taken into account.--}} <a href="{{ $chapter->getUrl() }}" clas<|fim_suffix|>ata-entity-id="{{$chapter->id}}"> <span class="icon tex...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="actions mb-xl"> <h5>{{ trans('common.actions') }}</h5> <div class="icon-list text-link"> @if(userCan(\BookStack\Permissions\Permission::PageCreate, $chapter)) <a href="{{ $chapter->getUrl('/create-page') }}" data-shortcut="new" class="icon-list-item"> ...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="mb-xl"> <h5>{{ trans('common.details') }}</h5> <div class="blended-links"> @include('entities.meta', ['entity' => $chapter, 'watchOptions' => $watchOptions]) @if($book->hasPermissions()) <div class="active-restriction"> @if(userCan(\BookStac...
fim
BookStackApp/BookStack
php
<|fim_suffix|>st', ['entity' => $chapter]) </div> @endif<|fim_prefix|>@if($chapter->tags->count() > 0) <div class="mb-xl"> <|fim_middle|> @include('entities.tag-li<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|> </div> @stop <|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $chapter->book, $chapter, $chapter->getUrl('/permissions') => [ ...
fim
BookStackApp/BookStack
php
@extends('layouts.simple') @section('body') <div class="container small"> <div class="my-s"> @include('entities.breadcrumbs', ['crumbs' => [ $chapter->book, $chapter, $chapter->getUrl('/references') => [ 'text' => trans('enti...
fim
BookStackApp/BookStack
php
<|fim_suffix|> <div class="icon-list block inline"> @if(userCan(\BookStack\Permissions\Permission::PageCreate, $chapter)) <a href="{{ $chapter->getUrl('/create-page') }}" class="icon-list-item text-page"> <span class="icon">@icon('page'...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- $branch CommentTreeNode --}} <div class="comment-branch"> <div> @include('comments.comment', ['comment' => $branch->comment]) </div> <div class="flex-container-row"> <div class="comment-thread-indicator-parent"> <div class="comment-thread-indicator"></div> ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>tent_ref) <div class="comment-reference-indicator-wrap"> <a component="page-comment-reference" option:page-comment-reference:reference="{{ $comment->content_ref }}" option:page-comment-reference:view-comment-text="{{ trans('entities.comment...
fim
BookStackApp/BookStack
php
<|fim_prefix|><section components="page-comments tabs" option:page-comments:page-id="{{ $page->id }}" option:page-comments:created-text="{{ trans('entities.comment_created_success') }}" option:page-comments:count-text="{{ trans('entities.comment_thread_count') }}" option:page-comment...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div refs="page-comments@form-container" hidden class="comment-branch mb-m"> <div class="comment-box"> <div class="header p-s">{{ trans('entities.comment_new') }}</div> <div refs="page-comments@reply-to-row" hidden class="primary-background-light text-muted px-s py-xs"> <d...
fim
BookStackApp/BookStack
php
<|fim_prefix|> {{--Requires an Activity item with the name $activity passed in--}} <div> @if($activity->user) <img class="avatar" src="{{ $activity->user->getAvatar(30) }}" alt="{{ $activity->user->name }}"> @endif </div> <div> @if($activity->user) <a href="{{ $activity->user->getProfileUrl() ...
fim
BookStackApp/BookStack
php
@if(count($activity) > 0) <div class="activity-list"> @foreach($activity as $activityItem) <div class="activity-list-item"> @include('common.activity-item', ['activity' => $activityItem]) </div> @endforeach </div> @else <p class="text-muted empty-text...
fim
BookStackApp/BookStack
php
<|fim_suffix|><div class="text-right"> <button type="button" class="button outline" refs="popup@hide">{{ trans('common.cancel') }}</button> <button type="button" class="button" refs="confirm-dialog@confirm">{{ trans('common.continue') }}</button> </div> </div> </...
fim
BookStackApp/BookStack
php
<|fim_suffix|>') }}</span></button> @else <button class="{{ $classes ?? '' }}" role="{{ $butonRole ?? '' }}"><span>@icon('dark-mode')</span><span>{{ trans('common.dark_mode') }}</span></button> @endif </form><|fim_prefix|><form action="{{ url('/preferences/toggle-dark-mode') }}" method="post"> {{ cs...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small pt-xl"> <main class="card content-wrap"> <h1 cla<|fim_suffix|> </div> <div class="text-center"> {!! $entities->links() !!} </div> </main> </div> @st...
fim
BookStackApp/BookStack
php
<|fim_suffix|> @if($hasMoreLink) <a href="{{ $hasMoreLink }}" class="button outline">{{ trans('common.more') }}</a> @endif </div> </main> </div> @stop<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small pt-x...
fim
BookStackApp/BookStack
php
<|fim_suffix|>n>{{$text}}</span> @endif </div><|fim_prefix|><div class="loading-container"> <div></div> <d<|fim_middle|>iv></div> <div></div> @if(isset($text)) <spa<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|><?php $selectedSort = (isset($sort) && array_key_exists($sort, $options)) ? $sort : array_keys($options)[0]; $order = (isset($order) && in_array($order, ['asc', 'desc'])) ? $order : 'asc'; ?> <div component="list-sort-control" class="list-sort-container"> <div class="list-sort-label">{{ trans(...
fim
BookStackApp/BookStack
php
<|fim_prefix|><span title="{{ trans('common.status_' . ($status ? 'active' : 'inactive'))<|fim_suffix|>? 'active' : 'inactive' }}" ></span><|fim_middle|> }}" class="status-indicator-{{ $status <|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|>@push('body-class', e((ne<|fim_suffix|>gClassGenerator($entity))->generateAsString() . ' '))<|fim_middle|>w \BookStack\Activity\Tools\Ta<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|><nav id="book-tree" class="book-tree mb-xl" aria-label="{{ trans('entities.books_navigation') }}"> <h5>{{ trans('entities.books_navigation') }}</h5> <ul class="sidebar-page-list mt-xs menu entity-list"> @if (userCan(\BookStack\Permissions\Permission::BookView, $book)) ...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div components="dropdown dropdown-search" option:dropdown-search:url="/search/entity/siblings?entity_type={{$entity->getType()}}&entity_id={{ $entity->id }}" option:dropdown-search:local-search-<|fim_suffix|>v refs="dropdown@menu" class="dropdown-search-dropdown card"> <div class="dropd...
fim
BookStackApp/BookStack
php
<|fim_prefix|><nav class="breadcrumbs text-center" aria-label="{{ trans('common.breadcrumb') }}"> <?php $breadcrumbCount = 0; ?> {{-- Show top level books item --}} @if (count($crumbs) > 0 && ($crumbs[0] ?? null) instanceof \BookStack\Entities\Models\Book) <a href="{{ url('/books') }}" class="te...
fim
BookStackApp/BookStack
php
<|fim_suffix|>hments') }}</li> <li>{{ trans('entities.copy_consider_access') }}</li> </ul> </div><|fim_prefix|><p class="text-warn mb-none mt-l"> @icon('warning') <strong>{{ trans('entities.copy_consider') }}</strong> </p> <div class="grid half no-gap no-row-gap text-warn mb-m"> <ul class="pr-s mb-...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div component="dropdown" class="dropdown-container" id="export-menu"> <button refs="dropdown@toggle" class="icon-list-item text-link" aria-h<|fim_suffix|>_text') }}</span><span>.txt</span></a></li> <li><a href="{{ $entity->getUrl('/export/markdown') }}" target="_b...
fim
BookStackApp/BookStack
php
<|fim_suffix|>common.unfavourite') : trans('common.favourite') }}</span> </button> </form><|fim_prefix|>@php $isFavourite = $entity->isFavourite(); @endphp <form action="{{ url('/favourites/' . ($isFavourite ? 'remove' : 'add')) }}" method="POST"> {{ csrf_field() }} <input type="hidden" name="type" value="...
fim
BookStackApp/BookStack
php
<|fim_suffix|> }}">{{ trans('entities.meta_created', ['timeLength' => $dates->relative($entity->created_at)]) }}</span></p> <p>@icon('edit')<span title="{{ $dates->absolute($entity->updated_at) }}">{{ trans('entities.meta_updated', ['timeLength' => $dates->relative($entity->updated_at)]) }}</span></p> </div...
fim
BookStackApp/BookStack
php
<|fim_suffix|>ame }} </div> </a><|fim_prefix|><a href="{{ $entity->getUrl() }}" class="flex-container-row items-center"> <span role="presentation" class="icon flex-none text-{{$entity->getType()}}">@icon($entity->getType())</span> <div class="flex text-{{ $enti<|fim_middle|>ty->getType() }}"> ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>v><|fim_prefix|><div cla<|fim_middle|>ss="entity-list {{ $style ?? '' }}"> @if(count($entities) > 0) @foreach($entities as $index => $entity) @include('entities.list-item-basic', ['entity' => $entity]) @endforeach @else <p class="text-muted empty-text"> ...
fim
BookStackApp/BookStack
php
<?php $type = $entity->getType(); ?> <a href="{{ $entity->getUrl() }}" class="{{$type}} {{$type === 'page' && $entity->draft ? 'draft' : ''}} {{$classes ?? ''}} entity-list-item" data-entity-type="{{$type}}" data-entity-id="{{$entity->id}}"> <span role="presentation" class="icon text-{{$type}}">@icon($type...
fim
BookStackApp/BookStack
php
@component('entities.list-item-basic', ['entity' => $entity, 'classes' => (($locked ?? false) ? 'disabled ' : '') . ($classes ?? '') ]) <div class="entity-item-snippet"> @if($locked ?? false) <div class="text-warn my-xxs bold"> @icon('lock'){{ trans('entities.entity_select_lack_permission') }}...
fim
BookStackApp/BookStack
php
<|fim_suffix|>ty, 'showPath' => $showPath ?? false, 'showTags' => $showTags ?? false]) @endforeach </div> @else <p class="text-muted empty-text pb-l mb-none"> {{ $emptyText ?? trans('common.no_items') }} </p> @endif<|fim_prefix|>@if(count($entities) > 0) <div class="entity-list {{ $style...
fim
BookStackApp/BookStack
php
<|fim_suffix|>r' => "<a href='{$entity->updatedBy->getProfileUrl()}'>".e($entity->updatedBy->name). "</a>" ]) !!} </div> </div> @elseif (!$entity->isA('revision')) <div class="entity-meta-item"> @icon('edit') <span title="{{ $dates->absolute($entit...
fim
BookStackApp/BookStack
php
<|fim_prefix|><main class="card content-wrap"> <h1 class="list-heading">{{ trans('entities.references') }}</h1> <p>{{ trans('entities.references_to_desc') }}</p> @if(count($references) > 0) <div class="book-contents"> @include('entities.list', ['entities' => $references->pluck('from'), ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>orm" class="search-box flexible" role="search"> <input refs="entity-search@searchInput" type="text" aria-label="{{ $label }}" name="term" placeholder="{{ $label }}"> <button tabindex="-1" type="submit" aria-label="{{ trans('common.search') }}">@icon('search')</button> </...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div refs="entity-search@searchView" class="search-results hidden"> <div class="grid half v-center"> <h3 class="text-muted px-none"> {{ trans('entit<|fim_suffix|>ing-icon') </div> <div class="book-contents" refs="entity-search@searchResults"></div> </div><|fim_middle|>ies.s...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div id="entity-selector-wrap"> <div components="popup entity-selector-popup" class="popup-background"> <div class="popup-body small" tabindex="-1"> <div class="popup-header primary-background"> <div class="popup-title">{{ trans('entities.entity_select') }}</div> ...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- $name - string $autofocus - boolean, optional $entityTypes - string, optional $entityPermission - string, optional $selectorEndpoint - string, optional $selectorSize - string, optional (compact) --}} <div class="form-group entity-selector-container"> <div component="entity-selector" refs...
fim
BookStackApp/BookStack
php
<|fim_suffix|>> @if($next) <a href="{{ $next->getUrl() }}" data-shortcut="next" class="outline-hover no-link-style block rounded text-xs-right"> <div class="px-m pt-xs text-muted text-xs-right">{{ trans('common.next') }}</div> <div class="inline block"> ...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@foreach($entity->tags as $tag) @include('entit<|fim_suffix|>tag' => $tag]) @endforeach<|fim_middle|>ies.tag', ['<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|> @icon('close') </button> </div> @endforeach<|fim_prefix|>@foreach(array_merge($tags, [null, null]) as $index => $tag) <div class="card drag-card {{ $loop->last ? 'hidden' : '' }}" @if($loop->last) refs="add-remove-rows@model" @endif> <div class="handle">@icon('grip')</div> ...
fim
BookStackApp/BookStack
php
<div components="tag-manager add-remove-rows" option:add-remove-rows:row-selector=".card" option:add-remove-rows:remove-selector="button.text-neg" option:tag-manager:row-selector=".card:not(.hidden)" refs="tag-manager@add-remove" class="tags"> <p class="text-muted small"> {!! nl2br...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="tag-item primary-background-light" data-name="{{ $tag->name }}" data-value="{{ $tag->value }}"> @if($linked ?? true) <div class="tag-name {{ $tag->highlight_name ? 'highlight' : '' }}"><a href="{{ $tag->nameUrl() }}">@icon('tag'){{ $tag->name }}</a></div> @if($tag->value) <...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="flex-container-row gap-l justify-space-between pb-xs wrap"> <p class="text-muted small my-none min-width-xs flex"> {{ trans('entities.default_template_explain') }} </p> <div class="min-width-m"> @include('form.page-picker', [ 'name' => 'default_template...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div> <form action="{{ url("/preferences/change-view/" . $type) }}" method="POST" class="inline"> {{ csrf_field() }} {{ method_field('p<|fim_suffix|>> @else <button type="submit" name="view" value="list" class="icon-list-item text-link"> <span class=...
fim
BookStackApp/BookStack
php
<|fim_prefix|><form action="{{ url('/watching/update') }}" method="POS<|fim_suffix|> type="submit" name="level" value="updates" class="icon-list-item text-link"> <span>@icon('watch')</span> <span>{{ trans('entities.watch') }}</span> </button> </form><|fim_middle|>...
fim
BookStackApp/BookStack
php
<|fim_suffix|>->getMorphClass() }}"> <input type="hidden" name="id" value="{{ $entity->id }}"> <ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none" role="menu"> @foreach(\BookStack\Activity\WatchLevels::allSuitedFor($entity) as $option => $value) <li...
fim
BookStackApp/BookStack
php
@extends('layouts.simple') @inject('popular', \BookStack\Entities\Queries\QueryPopular::class) @section('content') <div class="container mt-l"> <div class="card mb-xl px-l pb-l pt-l"> <div class="grid half v-center"> <div> @include('errors.parts.not-found-tex...
fim
BookStackApp/BookStack
php
<|fim_suffix|> </main> </div> @stop<|fim_prefix|>@extends('layouts.base') @section('content') <div class="container small py-xl"> <main class="card content-wrap auto-height"> <div id="main-content" class="body"> <h3>{{ trans('er<|fim_middle|>rors.error_occurred')...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('la<|fim_suffix|>ap auto-height"> <h1 class="list-heading">{{ trans('errors.app_down', ['appName' => setting('app-name')]) }}</h1> <p>{{ trans('errors.back_soon') }}</p> </div> </div> </div> @endsection<|fim_middle|>youts.plain') @section('...
fim
BookStackApp/BookStack
php
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <title>Error: {{ $error }}</title> <style> html, body { background-color: #F2F2F2; ...
fim
BookStackApp/BookStack
php
<|fim_suffix|> }}</p><|fim_prefix|>{{--The below text may be dynamic based upon language an<|fim_middle|>d scenario.--}} {{--It's safer to add new text sections here rather than altering existing ones.--}} <h1 class="list-heading">{{ $title }}</h1> <h5>{{ $subtitle }}</h5> <p>{{ $details<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|>s.chapter-item', ['chapter' => $bookChild]) @else @include('exports.parts.page-item', ['page' => $bookChild, 'chapter' => null]) @endif @endforeach @endsection<|fim_prefix|>@extends('layouts.export') @section('title', $book->name) @section('content') <|fim_middle|> <...
fim
BookStackApp/BookStack
php
<|fim_suffix|>rts.parts.page-item', ['page' => $page, 'chapter' => null]) @endforeach @endsection<|fim_prefix|>@extends('layouts.export') @section('title', $chapter->name) @section('content') <h1 style="font-size: 4.8em"><|fim_middle|>{{$chapter->name}}</h1> <div>{!! $chapter->descriptionInfo()->getHtml...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@extends('layouts.simple') @section('body') <div class="container small"> <main class="card content-wrap auto-height mt-xxl"> <h1 class="list-heading">{{ trans('entities.import_continue') }}</h1> <p class="text-muted">{{ trans('entities.import_continue_desc') }}</p> ...
fim
BookStackApp/BookStack
php
@extends('layouts.simple') @section('body') <div class="container small"> <main class="card content-wrap auto-height mt-xxl"> <h1 class="list-heading">{{ trans('entities.import') }}</h1> <form action="{{ url('/import') }}" enctype="multipart/form-data" method="POST"> ...
fim
BookStackApp/BookStack
php
<|fim_suffix|>]) </div> @endsection<|fim_prefix|>@extends('layouts.export') @section('title', $page->name) @section('content') @include('pages.parts.page-display') <hr> <div class="text-muted text-smal<|fim_middle|>l"> @include('exports.parts.meta', ['entity' => $page<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|>@if(count($children) > 0) <ul class="contents"> @foreach($children as $bookChild) <li><a href="#{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</a></li> @if($bookChild->isA('chapter') && count($bookChil<|fim_suffix|>ild->visible_pages]) ...
fim
BookStackApp/BookStack
php
<|fim_prefix|>@if (count($pages) > 0) <|fim_suffix|> @endforeach </ul> @endif<|fim_middle|> <ul class="contents"> @foreach($pages as $page) <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li> <|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="page-break"></div> <h1 id="chapter-{{$chapter->id}}">{{ $chapter->name }}</h1> <div>{!! $chapter->descriptionInfo()->getHtml() !!}</div> @if(count($chapter->visible_pages) > 0) @foreach($chapter->visible_pages as $page) @include('exports.parts.page-item', ['page' => $page, 'chapt...
fim
BookStackApp/BookStack
php
<|fim_suffix|>head')) <!-- Custom user content --> {!! $headContent->forExport() !!} <!-- End custom user content --> @endif<|fim_prefix|>@inject('headContent', <|fim_middle|>'BookStack\Theming\CustomHtmlHeadContentProvider') @if(setting('app-custom-<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- $type - string $model - object --}} <div class="import-item text-{{ $type }} mb-xs"> <p class="mb-none">@icon($type){{ $model->name }}</p> <div class="ml-s"> <div class="text-muted"> @if($model->attachments ?? []) <span>@icon('attach'){{ count($model->attac...
fim
BookStackApp/BookStack
php
<|fim_suffix|>e($import->created_at) }}</div> </div> </div><|fim_prefix|><div class="item-list-row flex-container-row items-center justify-space-between wrap"> <div class<|fim_middle|>="px-m py-s"> <a href="{{ $import->getUrl() }}" class="text-{{ $import->type }}">@icon($import->type) {{ $imp...
fim
BookStackApp/BookStack
php
<|fim_suffix|>>absolute($entity->updated_at), 'user' => e($entity->updatedBy->name ?? '') ]) !!} </div><|fim_prefix|><div class="entity-meta"> @if ($entity->isA('page') && userCan(\BookStack\Permissions\Permission::RevisionViewAll)) @icon('history'){{ trans('entities.meta_revision', ['re...
fim
BookStackApp/BookStack
php
<|fim_prefix|><div class="page-break"></div> @if (isset($chapter)) <div class="chapter-hint">{{$chapter->name}}</div> @endif <h1 <|fim_suffix|>e->html !!}<|fim_middle|>id="page-{{$page->id}}">{{ $page->name }}</h1> {!! $pag<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|>export styles --}} @if ($format === 'pdf') <style> /* Patches for CSS variable colors within PDF exports */ a { color: {{ setting('app-link') }}; } blockquote { border-left-color: {{ setting('app-color') }}; } </style> @endif<|fim_pr...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- $name $label $errors? $model? --}} @include('form.custom-checkbox', [ 'name'<|fim_suffix|> <div class="text-neg text-small">{{ $errors->first($name) }}</div> @endif<|fim_middle|> => $name, 'label' => $label, 'value' => 'true', 'checked' => old($name) || (!old() && isset($model) && $mo...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- $name $value $checked $label --}} <label componen<|fim_suffix|>le-switch @if($errors->has($name)) text-neg @endif"> <input type="checkbox" name="{{$name}}" value="{{ $value }}" @if($checked) checked="checked" @endif @if($disabled ?? false) disabled="disabled" @endif> <span tabindex="0" role="...
fim
BookStackApp/BookStack
php
<|fim_suffix|>ext-neg" @endif placeholder="{{ $placeholder ?? 'YYYY-MM-DD' }}" @if($autofocus ?? false) autofocus @endif @if($disabled ?? false) disabled="disabled" @endif @if(isset($model) || old($name)) value="{{ old($name) ?? $model->$name->format('Y-m-d') ?? ''}}" @endif> @if($errors->ha...
fim
BookStackApp/BookStack
php
<|fim_suffix|>direction="{{ $locale->htmlDirection() }}" id="description_html" name="description_html" rows="5" @if($errors->has('description_html')) class="text-neg" @endif>@if(isset($model) || old('description_html')){{ old('description_html') ?? $model->descriptionInfo()->getHtml() }}@else{{ '<p>...
fim
BookStackApp/BookStack
php
<|fim_suffix|>cspNonce }}"> window.editor_translations = @json($mergedText); </script><|fim_prefix|>@php $en = trans('editor', [], 'en'); $lang = trans('editor'); $mergedText = []; foreach ($en as $key => $value) { $mergedText[$value] = $lang[$key] ?? $value; } @endphp <sc<|fim_middle|>rip...
fim
BookStackApp/BookStack
php
<|fim_suffix|>role->id }}" data-role-name="{{ $role->display_name }}" title="{{ trans('common.remove') }}"> @icon('close') <span class="hide-over-m ml-xs">{{ trans('common.remove') }}</span> </button> </div> @endif </div><|fim_prefix|>{{-- ...
fim
BookStackApp/BookStack
php
<?php /** @var \BookStack\Permissions\PermissionFormData $data */ ?> <form component="entity-permissions" option:entity-permissions:entity-type="{{ $model->getType() }}" action="{{ $model->getUrl('/permissions') }}" method="POST"> {!! csrf_field() !!} <input type="hidden" name="_method" value=...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- <|fim_suffix|>ring --}} @if($errors->has($name)) <div class="text-neg text-small">{{ $errors->first($name) }}</div> @endif<|fim_middle|>$name - st<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_prefix|><div component="image-picker" option:image-picker:default-image="{{ $defaultImage }}" class="image-picker @if($errors->has($name)) has-error @endif"> <div class="grid half"> <div class="text-center"> <img refs="image-picker@image" <|fim_suffix|> ...
fim
BookStackApp/BookStack
php
<|fim_prefix|><input type="number" id="{{ $name }}" name="{{ $name }}" @if($errors->has($name)) class="text-neg" @endif @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif @if($autofocus ?? false) autofocus @endif @if($disabled ?? false) disabled="disabled" @endif <|fim_suffix...
fim
BookStackApp/BookStack
php
{{--Depends on entity selector popup--}} <div component="page-picker" option:page-picker:selector-endpoint="{{ $selectorEndpoint }}"> <div class="input-base overflow-hidden height-auto"> <span @if($value) hidden @endif refs="page-picker@default-display" class="text-muted italic">{{ $placeholder }}</sp...
fim
BookStackApp/BookStack
php
<|fim_prefix|><input type="password" id="{{ $name }}" name="{{ $name }}" @if($errors->has($name)) class="text-neg" @endif @if(isset($placehol<|fim_suffix|>rrors->has($name)) <div class="text-neg text-small">{{ $errors->first($name) }}</div> @endif <|fim_middle|>der)) placeholder="{{$placeholder}}" @en...
fim
BookStackApp/BookStack
php
<|fim_suffix|>t()->query(), array_flip($params)) as $name => $value) @if ($value) <input type="hidden" name="{{ $name }}" value="{{ $value }}"> @endif @endforeach<|fim_prefix|>{{-- $params - The query paramters to convert to input<|fim_middle|>s. --}} @foreach(array_intersect_key(reques<|endoftext|>
fim
BookStackApp/BookStack
php
<|fim_suffix|>if<|fim_prefix|> <div class="toggle-switch-list dual-column-content"> <input type="hidden" name="{{ $name }}[0]" value="0"> @foreach($roles as $role) <div> @include('form.custom-checkbox', [ 'name' => $name . '[' . strval($role->id) . ']', 'label...
fim
BookStackApp/BookStack
php
<select id="{{ $name }}" name="{{ $name }}"> @foreach($options as $option) <option value="{{$option->id}}" @if($errors->has($name)) class="text-neg" @endif @if(isset($model) || old($name)) @if(old($name) && old($name) === $option->id) selected @elseif(isset($model) && $model...
fim
BookStackApp/BookStack
php
<|fim_prefix|>{{-- @url - URL to upload to. @placeholder - Placeholder text @successMessage --}} <div component="dropzone" option:dropzone:url="{{ $url }}" option:dropzone:success-message="{{ $successMessage<|fim_suffix|>rs.server_upload_limit') }}" option:dropzone:zone-text="{{ trans('entities.attachmen...
fim
BookStackApp/BookStack
php