Authored by htoooth

fix

... ... @@ -164,7 +164,7 @@
cancelLabel: '取消',
weekLabel: 'W',
customRangeLabel: '自定义日期',
daysOfWeek: '一_二_三_四_五_六_日'.split('_'),
daysOfWeek: '日_一_二_三_四_五_六'.split('_'),
monthNames: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
firstDay: 1
},
... ...
... ... @@ -16,104 +16,6 @@
<!-- media -->
</div>
<div class="contentpanel project-index-page">
<div class="panel panel-default" data-env='{{deploy.env}}'>
<div class="panel-heading">
<div class="pull-right">
{{#if is_master}}
<a class="btn btn-info btn-rounded mr5 log-btn"><i class="fa fa-eye"></i> 查看构建日志</a>
<a class="btn btn-success btn-rounded mr20 build-btn"><i class="glyphicon glyphicon-plus"></i> 新增构建</a>
{{^}}
{{#if deploy.is_preview}}
<a class="btn btn-info btn-rounded mr5 log-btn"><i class="fa fa-eye"></i> 查看构建日志</a>
<a class="btn btn-success btn-rounded mr20 build-btn"><i class="glyphicon glyphicon-plus"></i> 新增构建</a>
{{/if}}
{{/if}}
<a href="" class="tooltips panel-minimize"><i class="fa fa-minus"></i></a>
</div>
<h4 class="panel-title">{{deploy.name}}</h4>
<p>分支:<code>{{deploy.branchName}}</code></p>
</div>
<div class="panel-body">
<table id="table-building-{{project._id}}" class="table table-striped table-bordered building-table">
<thead>
<tr>
<th>构建版本</th>
<th>分支名称</th>
<th>状态</th>
<th>构建时间</th>
<th>操作</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4>服务器信息</h4>
<p>点击状态Label,可以查看实时日志</p>
{{#equals @root.project.type 'php'}}
<button class="btn btn-info btn-xs restart-btn" data-host='all'>全部重启</button>
{{^}}
<button class="btn btn-info btn-xs restart-btn" data-host='all'>全部重启</button>
<button class="btn btn-warning btn-xs deleterestart-btn" data-host='all'>全部删除重启</button>
{{/equals}}
</div>
<div class="panel-body">
<div class="row">
{{#each targets}}
<div class="col-md-4 host-info" id="d-{{hostFm}}" data-host="{{host}}">
<div class="panel panel-info noborder">
<div class="panel-heading noborder">
<div class="panel-btns">
</div><!-- panel-btns -->
<div class="panel-icon"><i class="fa fa-cloud" style="padding-left:12px;"></i></div>
<div class="media-body">
<h2 class="nomargin">{{host}}</h2>
<h5 class="md-title mt5 version">当前运行版本:&nbsp;<code>{{#if info}}{{info.building}}{{^}}
未知部署{{/if}}</code></h5>
</div><!-- media-body -->
<hr class="mt10 mb10">
<div class="clearfix mt5" style="padding-left:10px;">
{{#equals @root.project.type 'php'}}
<button class="btn btn-info btn-xs restart-btn" data-host='{{host}}'>重启</button>
{{^}}
<button class="btn btn-info btn-xs restart-btn" data-host='{{host}}'>重启</button>
<button class="btn btn-warning btn-xs deleterestart-btn" data-host='{{host}}'>删除重启</button>
{{/equals}}
</div>
<div class="clearfix mt5" style="padding-left:10px;">
<h5 class="md-title mt10">服务器状态</h5>
<span class="label label-serstatus"></span>
</div>
<div class="clearfix mt5">
<div class="col-xs-4 project-env" data-env="test">
<h5 class="md-title mt10">当前状态</h5>
</div>
<div class="col-xs-4">
<h5 class="md-title mt10">进程状态</h5>
</div>
</div>
<div class="clearfix mt5">
<div class="col-xs-4 project-env" data-env="test">
<span class="label label-success deploy-log-btn" data-host="{{host}}"><i
class="fa fa-spinner fa-spin fa-fw margin-bottom"></i> <b>{{#if info}}{{info.state}}{{^}}
未知部署{{/if}}</b></span>
</div>
<div class="col-xs-4">
<span class="label label-status"></span>
</div>
</div>
</div><!-- panel-body -->
</div><!-- panel -->
</div>
{{/each}}
</div>
</div>
</div>
</div>
<div id="log-area" class="panel panel-default panel-alt" style="display:none;height: 100%;">
<div class="panel-body nopadding" style="height: 100%;">
<textarea name="code" id="code" style="height: 100%;"></textarea>
... ...
... ... @@ -258,7 +258,7 @@
cancelLabel: '取消',
weekLabel: 'W',
customRangeLabel: '自定义日期',
daysOfWeek: '一_二_三_四_五_六_日'.split('_'),
daysOfWeek: '日_一_二_三_四_五_六'.split('_'),
monthNames: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
firstDay: 1
},
... ...
... ... @@ -238,7 +238,7 @@
cancelLabel: '取消',
weekLabel: 'W',
customRangeLabel: '自定义日期',
daysOfWeek: '一_二_三_四_五_六_日'.split('_'),
daysOfWeek: '日_一_二_三_四_五_六'.split('_'),
monthNames: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
firstDay: 1
},
... ...
... ... @@ -238,7 +238,7 @@
cancelLabel: '取消',
weekLabel: 'W',
customRangeLabel: '自定义日期',
daysOfWeek: '一_二_三_四_五_六_日'.split('_'),
daysOfWeek: '日_一_二_三_四_五_六'.split('_'),
monthNames: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
firstDay: 1
},
... ...