Commit 00883fd1 by lepdou

UI adapt namespace has not commit situation

parent 770d2dae
...@@ -656,7 +656,7 @@ table th { ...@@ -656,7 +656,7 @@ table th {
padding: 15px; padding: 15px;
} }
.release-history .empty-container { .empty-container {
padding: 15px; padding: 15px;
} }
......
...@@ -602,9 +602,12 @@ ...@@ -602,9 +602,12 @@
ng-show="namespace.viewType == 'text' && namespace.isTextEditing" ng-show="namespace.viewType == 'text' && namespace.isTextEditing"
ng-disabled="!namespace.isTextEditing" ng-model="namespace.editText"> ng-disabled="!namespace.isTextEditing" ng-model="namespace.editText">
</textarea> </textarea>
<!--history view--> <!--history view-->
<div class="J_historyview history-view" ng-show="namespace.viewType == 'history'"> <div class="J_historyview history-view" ng-show="namespace.viewType == 'history'">
<div class="media" ng-repeat="commits in namespace.commits"> <div class="media"
ng-show="namespace.commits && namespace.commits.length"
ng-repeat="commits in namespace.commits">
<div class="media-body"> <div class="media-body">
<div class="row"> <div class="row">
<div class="col-md-6"><h3 class="media-heading" ng-bind="commits.dataChangeCreatedBy"></h3> <div class="col-md-6"><h3 class="media-heading" ng-bind="commits.dataChangeCreatedBy"></h3>
...@@ -732,6 +735,9 @@ ...@@ -732,6 +735,9 @@
ng-click="loadCommitHistory(namespace)">加载更多 ng-click="loadCommitHistory(namespace)">加载更多
<span class="glyphicon glyphicon-menu-down"></span></button> <span class="glyphicon glyphicon-menu-down"></span></button>
</div> </div>
<div class="empty-container text-center" ng-show="!namespace.commits || !namespace.commits.length">
无更改历史
</div>
</div> </div>
<!--instance view--> <!--instance view-->
<div class="panel panel-default instance-view" ng-show="namespace.viewType == 'instance'"> <div class="panel panel-default instance-view" ng-show="namespace.viewType == 'instance'">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment