Add release note page

This commit is contained in:
Pig Fang 2019-05-03 09:08:39 +08:00
parent 8a240d0533
commit 0880e1e51e
6 changed files with 35 additions and 2 deletions

View File

@ -34,6 +34,9 @@ updates:
text: Blessing Skin Server has been successfully updated to v:version.
tips: "Update Tips:"
changelog:
title: Release Note
wizard:
master:
title: Install Wizard - Blessing Skin Server

View File

@ -33,6 +33,9 @@ updates:
text: 数据库升级成功,欢迎使用 Blessing Skin Server v:version
tips: 升级提示:
changelog:
title: 更新日志
wizard:
master:
title: Blessing Skin Server 安装程序

View File

@ -0,0 +1,16 @@
@extends('setup.updates.master')
@section('content')
<h1>
@lang('setup.updates.changelog.title')
@include('setup.wizard.language')
</h1>
{!! app('parsedown')->text(
@file_get_contents(resource_path('misc/changelogs/'.app()->getLocale().'/'.config('app.version').'.md'))
) !!}
<p class="step">
<a href="{{ url('/') }}" class="button button-large">@lang('general.index')</a>
</p>
@endsection

View File

@ -11,10 +11,20 @@
<body class="container">
<p id="logo">
<a href="https://github.com/bs-community/blessing-skin-server" tabindex="-1">Blessing Skin Server</a>
<a href="https://github.com/bs-community/blessing-skin-server" tabindex="-1">
{{ option_localized('site_name') }}
</a>
</p>
@yield('content')
<script>
function refreshWithLangPrefer() {
var e = document.getElementById("language-chooser");
var lang = e.options[e.selectedIndex].value;
window.location = "?lang="+lang;
}
</script>
</body>
</html>

View File

@ -19,6 +19,6 @@
@endif
<p class="step">
<a href="{{ url('/') }}" class="button button-large">@lang('general.index')</a>
<a href="{{ url('/setup/changelog') }}" class="button button-large">@lang('setup.updates.welcome.button')</a>
</p>
@endsection

View File

@ -23,3 +23,4 @@ Route::group(['middleware' => 'setup'], function () {
Route::get('/update', 'SetupController@update');
Route::post('/update', 'SetupController@doUpdate');
Route::view('/changelog', 'setup.updates.changelog');