        <div class="row">
            <h1 class="page-header">文档管理</h1>
            <div class="panel panel-default">
                <div class="panel-heading wenku-no-pdl clearfix">
                    <div class="col-md-8 wenku-no-pdl">
                        <div class="btn btn-group">
                            <a href="#" class="btn btn-default" data-toggle="modal" data-target="#ModalChanel">新增频道</a>
                            <a href="#" class="btn btn-default" data-toggle="modal" data-target="#ModalCate">新增分类</a>
                        </div>
                    </div>
                    <div class="col-md-4">
                        {{/*<form class="pull-right" method="get" action="/admin/album.html" role="form">*/}}
                            {{/*<div class="form-group input-group">*/}}
                                {{/*<input type="text" name="wd" required="required" placeholder="Search" value="" class="form-control">*/}}
                                {{/*<span class="input-group-btn input-group-lg">*/}}
                                    {{/*<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>*/}}
                                {{/*</span>*/}}
                            {{/*</div>*/}}
                        {{/*</form>*/}}
                    </div>
                </div>
                <div class="panel-body">

                    {{template "tabs" .}}



                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>文档</th>
                                <th>是否自删</th>
                                <th>是否非法文档</th>
                                <th>删除时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{range .Lists}}
                            <tr>
                                <td>
                                    <a href="/view/{{.Id}}" class="wenku-width-400px wenku-ellipsis" target="_blank"><img src="/static/Home/default/img/{{.ExtCate}}_24.png"> {{.Title}}</a>
                                </td>
                                <td>
                                    {{if eq (.Self|Interface2Int) 1}}
                                       用户自删  | <a href="/user/{{.Uid}}" target="_blank"><span class="text-success">{{.Username}}</span></a>
                                    {{else}}
                                        <span class="text-danger">管理员删除</span>
                                    {{end}}
                                </td>
                                <td>
                                    {{if (.Md5|IsIllegal)}}
                                    <span class="text-danger">非法(禁传)</span>
                                    {{else}}
                                    <span class="text-success">合法</span>
                                    {{end}}
                                </td>
                                <td>
                                    {{TimestampFormat (.Date|Interface2Int) "2006-01-02 15:04:05"}}
                                </td>
                                <td>
                                    {{/*<a href="#" class="wenku-tooltip" title="将文档换成其他用户发布，并恢复该文档">改发</a> |*/}}
                                    <a href="/admin/doc/action?type=recover&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get" title="将文档恢复到正常状态">恢复</a> |
                                    <a href="/admin/doc/action?type=illegal&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get text-danger" title="把文档加入黑名单，禁止该文档被再次上传">禁传</a> |
                                    <a href="/admin/doc/action?type=del-row&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get text-danger" title="只是删除文档记录，文档文件依然保留">删除记录</a> |
                                    {{/*<a href="/admin/doc/action?type=remove&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get text-danger" title="删除文档文件，即删除用户上传的文档文件，但不删除文档在数据库表中的记录">删档</a> |*/}}
                                    {{/*<a href="/admin/doc/action?type=illegal&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get text-danger" title="删除文档记录，即删除数据库中的记录，但不删除文档">删录</a> |*/}}
                                    <a href="/admin/doc/action?type=deepdel&id={{.Id}}" class="wenku-tooltip wenku-confirm wenku-ajax-get text-danger" title="彻底将文档删除，既删除文档文件，同时删除文档记录，跟该文档MD5相同的文档也将一同被删除！！！">【慎重】彻删</a>
                                </td>
                            </tr>
                            {{end}}
                            </tbody>
                        </table>
                        <ul class="pagination">
                        </ul>
                    </div>






                </div>
            </div>
        </div>


        <!--新增频道Modal-->
        {{template "ModalChanel" .}}

        <!--新增文档分类Modal-->
        {{template "ModalCate" .}}

        <!--文档备注Modal-->
        {{template "ModalRemark" .}}