Add link for editing announcement

This commit is contained in:
Pig Fang 2019-07-02 11:20:43 +08:00
parent f1232724df
commit 7ae8a6325d
3 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@
- Allowed to customize HTTP status code for rejecting accessing private texture.
- Added configurable "Explore" menu.
- Custom `PLUGINS_DIR` with relative path is allowed.
- Added link for editing announcement.
## Tweaked

View File

@ -4,6 +4,7 @@
- 允许自定义拒绝访问私有材质时返回的 HTTP 状态码
- 添加可自定义的「浏览」菜单
- 允许在 `PLUGINS_DIR` 配置项中使用相对路径
- 添加「编辑公告」的链接
## 调整

View File

@ -24,6 +24,11 @@
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">@lang('user.announcement')</h3>
@if (auth()->user()->isAdmin())
<a href="{{ url('/admin/options') }}">
<i class="fas fa-edit"></i>
</a>
@endif
</div><!-- /.box-header -->
<div class="box-body">
{!! $announcement !!}