feat: add a new-blog button at blogs page

Add a new-blog button at blogs page. It simplified the operation to write a
new blog.
This commit is contained in:
cebarobot 2017-06-25 10:38:16 +08:00
parent 20589aa2d2
commit b7974dc6ae

View File

@ -21,7 +21,10 @@ EOD;
<?php echoUOJPageHeader(UOJLocale::get('blogs')) ?> <?php echoUOJPageHeader(UOJLocale::get('blogs')) ?>
<?php if (Auth::check()): ?> <?php if (Auth::check()): ?>
<div class="pull-right"> <div class="pull-right">
<div class="btn-group">
<a href="<?= HTML::blog_url(Auth::id(), '/') ?>" class="btn btn-default btn-sm">我的博客首页</a> <a href="<?= HTML::blog_url(Auth::id(), '/') ?>" class="btn btn-default btn-sm">我的博客首页</a>
<a href="<?= HTML::blog_url(Auth::id(), '/blog/new/write')?>" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-edit"></span> 写新博客</a>
</div>
</div> </div>
<?php endif ?> <?php endif ?>
<h3>博客总览</h3> <h3>博客总览</h3>