hotfix_list.hbs 1.96 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">Hotfix</a></li>
                <li>{{type}}</li>
            </ul>
            <h4>Hotfix</h4>
        </div>
    </div>
    <!-- media -->
</div>
<!-- pageheader -->

<div class="contentpanel">
    <div class="panel panel-primary-head">
        <div class="panel-heading">
            <div class="pull-right">
                <a id="new-page" href="/hotfix/new/{{type}}" class="btn btn-success btn-rounded"><i class="glyphicon glyphicon-plus"></i> 新增Hotfix</a>
            </div>
            <h4 class="panel-title">{{type}} hotfix</h4>
            <p>&nbsp;</p>
        </div>
        <!-- panel-heading -->

        <table id="table-hotfixs" class="table table-striped table-bordered responsive">
            <thead class="">
            <tr>
                <th>App名称</th>
                <th>App版本</th>
                <th>补丁版本</th>
                <th>文件MD5</th>
                <th>接口文件</th>
                <th>补丁文件</th>
            </tr>
            </thead>

            <tbody>
            {{#each hotfixs}}
                <tr>
                    <td>{{appName}}</td>
                    <td>{{appVersion}}</td>
                    <td>{{patchVersion}}</td>
                    <td>{{filecode}}</td>
                    <td>{{apiFile}}</td>
                    <td>{{patchFile}}</td>
                </tr>
            {{/each}}
            </tbody>
        </table>
    </div>
    <!-- panel -->
</div>


<script>
    $(document).on('ready pjax:success', function() {
        $("#table-hotfixs").DataTable({
            responsive: true,
            retrieve: true,
            pageLength: 25
        });

    });

</script>