1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Licensing: Added links and tests for new licenses endpoint

For #4907
This commit is contained in:
Dan Brown
2024-03-23 22:04:18 +00:00
parent 0c524c7c8f
commit a2fd80954b
7 changed files with 52 additions and 15 deletions

View File

@ -7,39 +7,36 @@
<div class="my-l">&nbsp;</div>
<div class="card content-wrap auto-height">
<h1 class="list-heading">Licenses</h1>
<p>
This page details license information for BookStack in addition to the projects & libraries that are used within BookStack.
Many projects listed may only be used in a development context.
</p>
<h1 class="list-heading">{{ trans('settings.licenses') }}</h1>
<p>{{ trans('settings.licenses_desc') }}</p>
<ul>
<li><a href="#bookstack-license">BookStack License</a></li>
<li><a href="#php-lib-licenses">PHP Library Licenses</a></li>
<li><a href="#js-lib-licenses">JavaScript Library Licenses</a></li>
<li><a href="#js-lib-licenses">Other Licenses</a></li>
<li><a href="#bookstack-license">{{ trans('settings.licenses_bookstack') }}</a></li>
<li><a href="#php-lib-licenses">{{ trans('settings.licenses_php') }}</a></li>
<li><a href="#js-lib-licenses">{{ trans('settings.licenses_js') }}</a></li>
<li><a href="#other-licenses">{{ trans('settings.licenses_other') }}</a></li>
</ul>
</div>
<div id="bookstack-license" class="card content-wrap auto-height">
<h3 class="list-heading">BookStack License</h3>
<h3 class="list-heading">{{ trans('settings.licenses_bookstack') }}</h3>
<div style="white-space: pre-wrap;" class="mb-m">{{ $license }}</div>
<p>BookStack® is a UK registered trade mark of Daniel Brown. </p>
</div>
<div id="php-lib-licenses" class="card content-wrap auto-height">
<h3 class="list-heading">PHP Library Licenses</h3>
<h3 class="list-heading">{{ trans('settings.licenses_php') }}</h3>
<div style="white-space: pre-wrap;">{{ $phpLibData }}</div>
</div>
<div id="js-lib-licenses" class="card content-wrap auto-height">
<h3 class="list-heading">JavaScript Library Licenses</h3>
<h3 class="list-heading">{{ trans('settings.licenses_js') }}</h3>
<div style="white-space: pre-wrap;">{{ $jsLibData }}</div>
</div>
<div id="other-licenses" class="card content-wrap auto-height">
<h3 class="list-heading">Other Licenses</h3>
<h3 class="list-heading">{{ trans('settings.licenses_other') }}</h3>
<div style="white-space: pre-line;">BookStack makes heavy use of PHP:
License: PHP License, version 3.01
License File: https://www.php.net/license/3_01.txt

View File

@ -18,8 +18,10 @@
<h5 class="mt-xl">{{ trans('settings.system_version') }}</h5>
<div class="py-xs">
<a target="_blank" rel="noopener noreferrer" href="https://github.com/BookStackApp/BookStack/releases">
BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
BookStack @if(!str_starts_with($version, 'v')) version @endif {{ $version }}
</a>
<br>
<a target="_blank" href="{{ url('/licenses') }}" class="text-muted">{{ trans('settings.license_details') }}</a>
</div>
</div>