Skip to content

Commit

Permalink
chore: page-header更新
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Jul 17, 2018
1 parent 309ddba commit 21fe7d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
17 changes: 4 additions & 13 deletions resources/views/admin/video/edit.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
<?php $view->layout() ?>
<div class="page-header">
<div class="pull-right">
<a class="btn btn-default" href="<?= $url('admin/video/index') ?>">返回列表</a>
</div>
<h1>
视频管理
<small>
<i class="fa fa-angle-double-right"></i>
视频列表
</small>
</h1>
</div>
<!-- /.page-header -->

<?= $block('header-actions') ?>
<a class="btn btn-default" href="<?= $url('admin/video/index') ?>">返回列表</a>
<?= $block->end() ?>

<div class="row">
<div class="col-xs-12">
Expand Down
18 changes: 5 additions & 13 deletions resources/views/admin/video/index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<?php $view->layout() ?>

<?= $block('header-actions') ?>
<a class="btn btn-success" href="<?= $url('admin/video/new') ?>">添加视频</a>
<a class="btn btn-success" href="<?= $url('admin/video-category') ?>">栏目管理</a>
<?= $block->end() ?>

<?= $block->css() ?>
<link rel="stylesheet" href="<?= $asset('plugins/admin/css/filter.css') ?>"/>
<?= $block->end() ?>

<div class="page-header">
<div class="pull-right">
<a class="btn btn-success" href="<?= $url('admin/video/new') ?>">添加视频</a>
<a class="btn btn-success" href="<?= $url('admin/video-category') ?>">栏目管理</a>
</div>
<h1>
视频管理
<small>
<i class="fa fa-angle-double-right"></i>
视频列表
</small>
</h1>
</div>
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/Admin/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Video extends \Miaoxing\Plugin\BaseController
'audit' => '审核',
];

protected $displayPageHeader = true;

public function newAction($req)
{
return $this->editAction($req);
Expand Down

0 comments on commit 21fe7d2

Please sign in to comment.