Merge pull request #436 from yhua123/patch-1

fixed some page's fixed table title
This commit is contained in:
kun wang 2016-06-28 21:03:26 +08:00 committed by GitHub
commit a7bcd03a5b
5 changed files with 127 additions and 90 deletions

View File

@ -14,16 +14,25 @@
<advanced-search ng-show="vm.isOpen" is-open="vm.isOpen" op="vm.op" others="vm.others" search='vm.search({op: vm.op, username: vm.username})' from-date="vm.fromDate" to-date="vm.toDate"></advanced-search> <advanced-search ng-show="vm.isOpen" is-open="vm.isOpen" op="vm.op" others="vm.others" search='vm.search({op: vm.op, username: vm.username})' from-date="vm.fromDate" to-date="vm.toDate"></advanced-search>
<div class="pane"> <div class="pane">
<div class="sub-pane"> <div class="sub-pane">
<table class="table table-pane"> <div class="table-head-container">
<thead> <table class="table table-pane table-header">
<th>// 'username' | tr //</th><th>// 'repository_name' | tr //</th><th>// 'operation' | tr //</th><th>// 'timestamp' | tr //</th> <thead>
</thead> <th width="14%">// 'username' | tr //</th>
<tbody> <th width="32%">// 'repository_name' | tr //</th>
<tr ng-repeat="log in vm.logs"> <th width="14%">// 'operation' | tr //</th>
<td>//log.username//</td><td>//log.repo_name//</td><td>//log.operation//</td><td>//log.op_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td> <th width="40%">// 'timestamp' | tr //</th>
</tr> </thead>
</tbody> </table>
</table> </div>
<div class="table-body-container" style="height: 300px;">
<table class="table table-pane">
<tbody>
<tr ng-repeat="log in vm.logs">
<td>//log.username//</td><td>//log.repo_name//</td><td>//log.operation//</td><td>//log.op_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -14,14 +14,20 @@
<modal-dialog modal-title="// vm.modalTitle //" modal-message="// vm.modalMessage //" confirm-only="true"></modal-dialog> <modal-dialog modal-title="// vm.modalTitle //" modal-message="// vm.modalMessage //" confirm-only="true"></modal-dialog>
<add-project-member ng-show="vm.isOpen" is-open="vm.isOpen" project-id="//vm.projectId//" reload='vm.search({projectId: vm.projectId, username: vm.username})'></add-project-member> <add-project-member ng-show="vm.isOpen" is-open="vm.isOpen" project-id="//vm.projectId//" reload='vm.search({projectId: vm.projectId, username: vm.username})'></add-project-member>
<div class="sub-pane"> <div class="sub-pane">
<table class="table table-pane" > <div class="table-head-container">
<thead> <table class="table table-pane table-header">
<th width="30%">// 'username' | tr //</th><th width="40%">// 'role' | tr //</th><th width="30%">// 'operation' | tr //</th> <thead>
</thead> <th width="30%">// 'username' | tr //</th><th width="45%">// 'role' | tr //</th><th width="25%">// 'operation' | tr //</th>
<tbody> </thead>
<tr ng-repeat="pr in vm.projectMembers" edit-project-member username="pr.username" project-id="vm.projectId" user-id="pr.user_id" delete="vm.deleteProjectMember({projectId: vm.projectId, userId: pr.user_id})" current-user-id="vm.user.user_id" role-name="pr.role_name" reload='vm.search({projectId: vm.projectId, username: vm.username})'></tr> </table>
</tbody> </div>
</table> <div class="table-body-container" style="height: 300px;">
<table class="table table-pane">
<tbody>
<tr ng-repeat="pr in vm.projectMembers" edit-project-member username="pr.username" project-id="vm.projectId" user-id="pr.user_id" delete="vm.deleteProjectMember({projectId: vm.projectId, userId: pr.user_id})" current-user-id="vm.user.user_id" role-name="pr.role_name" reload='vm.search({projectId: vm.projectId, username: vm.username})'></tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -11,18 +11,23 @@
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addDestination()" data-toggle="modal" data-target="#createDestinationModal"><span class="glyphicon glyphicon-plus"></span>// 'add_new_destination' | tr //</button> <button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addDestination()" data-toggle="modal" data-target="#createDestinationModal"><span class="glyphicon glyphicon-plus"></span>// 'add_new_destination' | tr //</button>
<create-destination action="//vm.action//" target-id="//vm.targetId//" reload="vm.retrieve()"></create-destination> <create-destination action="//vm.action//" target-id="//vm.targetId//" reload="vm.retrieve()"></create-destination>
</div> </div>
<div class="pane"> <div class="pane">
<div class="sub-pane"> <div class="sub-pane">
<table class="table table-pane"> <div class="table-head-container">
<thead> <table class="table table-pane table-header">
<thead>
<th width="20%">// 'name' | tr //</th> <th width="20%">// 'name' | tr //</th>
<th width="40%">// 'endpoint' | tr //</th> <th width="30%">// 'endpoint' | tr //</th>
<th width="20%">// 'creation_time' | tr //</th> <th width="35%">// 'creation_time' | tr //</th>
<th width="20%">// 'actions' | tr //</th> <th width="15%">// 'actions' | tr //</th>
</thead> </thead>
<tbody> </table>
</div>
<div class="table-body-container" style="height: 200px;">
<table class="table table-pane">
<tbody>
<tr ng-if="vm.destinations.length == 0"> <tr ng-if="vm.destinations.length == 0">
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_destinations' | tr //</h3></td> <td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_destinations' | tr //</h3></td>
</tr> </tr>
<tr ng-if="vm.destinations.length > 0" ng-repeat="r in vm.destinations"> <tr ng-if="vm.destinations.length > 0" ng-repeat="r in vm.destinations">
<td>//r.name//</td> <td>//r.name//</td>
@ -35,9 +40,11 @@
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.destinations ? vm.destinations.length : 0// // 'items' | tr //</div></div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.destinations ? vm.destinations.length : 0// // 'items' | tr //</div></div>
</div> </div>
</div> </div>

View File

@ -11,45 +11,52 @@
</div> </div>
<div class="pane"> <div class="pane">
<div class="sub-pane"> <div class="sub-pane">
<table class="table table-pane"> <div class="table-head-container">
<thead> <table class="table table-pane table-header">
<th width="14%">// 'name' | tr //</th> <thead>
<th width="18%">// 'description' | tr //</th> <th width="14%">// 'name' | tr //</th>
<th width="14%">// 'projects' | tr //</th> <th width="18%">// 'description' | tr //</th>
<th width="12%">// 'destination' | tr //</th> <th width="14%">// 'projects' | tr //</th>
<th width="18%">// 'start_time' | tr //</th> <th width="12%">// 'destination' | tr //</th>
<th width="12%">// 'activation' | tr //</th> <th width="18%">// 'start_time' | tr //</th>
<th width="12%">// 'actions' | tr //</th> <th width="12%">// 'activation' | tr //</th>
</thead> <th width="12%">// 'actions' | tr //</th>
<tbody> </thead>
<tr ng-if="vm.replications.length == 0"> </table>
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replications' | tr //</h3></td> </div>
</tr> <div class="table-body-container" style="height: 200px;">
<tr ng-if="vm.replications.length > 0" ng-repeat="r in vm.replications"> <table class="table table-pane">
<td><a href="repository#/replication?project_id=//r.project_id//">//r.name//</a></td> <tbody>
<td>//r.description//</td> <tr ng-if="vm.replications.length == 0">
<td>//r.project_name//</td> <td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replications' | tr //</h3></td>
<td>//r.target_name//</td> </tr>
<td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td> <tr ng-if="vm.replications.length > 0" ng-repeat="r in vm.replications">
<td ng-switch on="//r.enabled//"> <td><a href="repository#/replication?project_id=//r.project_id//">//r.name//</a></td>
<span ng-switch-when="1">// 'enabled' | tr //</span> <td>//r.description//</td>
<span ng-switch-when="0">// 'disabled' | tr //</span> <td>//r.project_name//</td>
</td> <td>//r.target_name//</td>
<td> <td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
<div class="display-inline-block" ng-switch on="//r.enabled//"> <td ng-switch on="//r.enabled//">
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)"><span ng-switch-when="1" class="glyphicon glyphicon-stop color-danger"></span></a> <span ng-switch-when="1">// 'enabled' | tr //</span>
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)"><span ng-switch-when="0" class="glyphicon glyphicon-play color-success"></span></a> <span ng-switch-when="0">// 'disabled' | tr //</span>
</div> </td>
&nbsp; <td>
<a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)"><span class="glyphicon glyphicon-pencil"></span></a> <div class="display-inline-block" ng-switch on="//r.enabled//">
&nbsp; <a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)"><span ng-switch-when="1" class="glyphicon glyphicon-stop color-danger"></span></a>
<!--a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a--> <a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)"><span ng-switch-when="0" class="glyphicon glyphicon-play color-success"></span></a>
</td> </div>
</tr> &nbsp;
</tbody> <a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)"><span class="glyphicon glyphicon-pencil"></span></a>
</table> &nbsp;
<!--a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a-->
</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.replications ? vm.replications.length : 0// // 'items' | tr //</div></div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.replications ? vm.replications.length : 0// // 'items' | tr //</div></div>
</div> </div>
</div> </div>

View File

@ -1,16 +1,24 @@
<h4 class="page-header title-color underlined">// 'popular_repositories' | tr //</h4> <h4 class="page-header title-color underlined">// 'popular_repositories' | tr //</h4>
<div class="col-xs-4 col-md-12 up-table-pane"> <div class="col-xs-4 col-md-12 up-table-pane">
<table class="table"> <div class="table-head-container" style="width: 650px">
<thead> <table class="table table-pane table-header">
<th>// 'repository_name' | tr //</th><th>// 'count' | tr //</th><th>// 'creator' | tr //</th> <thead>
</thead> <th width="60%">// 'repository_name' | tr //</th>
<tbody> <th width="15%">// 'count' | tr //</th>
<tr> <th width="25%">// 'creator' | tr //</th>
<td colspan="5" height="120px" class="empty-hint" ng-if="vm.top10Repositories.length === 0"><h3 class="text-muted">// 'no_top_repositories' | tr //</h3></td> </thead>
</tr> </table>
<tr ng-if="vm.top10Repositories.length > 0" ng-repeat="t in vm.top10Repositories"> </div>
<td>//t.name//</td><td>//t.count//</td><td>//t.creator === '' ? 'N/A' : t.creator //</td> <div class="table-body-container" style="height: 120px; width: 650px">
</tr> <table class="table table-pane">
</tbody> <tbody>
</table> <tr>
<td colspan="5" height="120px" class="empty-hint" ng-if="vm.top10Repositories.length === 0"><h3 class="text-muted">// 'no_top_repositories' | tr //</h3></td>
</tr>
<tr ng-if="vm.top10Repositories.length > 0" ng-repeat="t in vm.top10Repositories">
<td>//t.name//</td><td>//t.count//</td><td>//t.creator === '' ? 'N/A' : t.creator //</td>
</tr>
</tbody>
</table>
</div>
</div> </div>