namespace-panel-branch-tab.html 30.7 KB
Newer Older
lepdou committed
1 2
<section class="branch-panel-body"
         ng-if="namespace.hasBranch && namespace.displayControl.currentOperateBranch != 'master'">
3 4 5 6
    <!--main header-->
    <header class="panel-heading">

        <div class="row">
7
            <div class="col-md-6 col-sm-6 header-namespace">
lepdou committed
8 9 10 11 12 13 14 15 16 17
                <span class="cursor-pointer"
                      data-toggle="collapse" data-target="#BODY{{namespace.branch.id}}" aria-expanded="false"
                      ng-click="namespace.branch.displayControl.show = !namespace.branch.displayControl.show">
                    <span class="glyphicon glyphicon-triangle-bottom small"
                          ng-show="namespace.branch.displayControl.show"></span>
                    <span class="glyphicon glyphicon-triangle-top small"
                          ng-show="!namespace.branch.displayControl.show"></span>
                    <b class="namespace-name" ng-bind="namespace.viewName"
                       data-tooltip="tooltip" data-placement="bottom" title="点击展开/收缩Namespace"></b>
                    </span>
18 19 20 21 22 23 24 25 26 27 28 29
                <span class="label label-info no-radius namespace-label" ng-bind="namespace.format"></span>
                    <span class="label label-warning no-radius namespace-label"
                          ng-show="namespace.branch.itemModifiedCnt > 0">有修改
                    <span class="badge label badge-white namespace-label"
                          ng-bind="namespace.branch.itemModifiedCnt"></span>
                </span>
                    <span class="label label-primary no-radius namespace-label"
                          ng-show="namespace.branch.lockOwner">当前修改者:
                            <span ng-bind="namespace.branch.lockOwner"></span>
                    </span>
            </div>

30
            <div class="col-md-6 col-sm-6 text-right header-buttons">
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
                <a type="button" class="btn btn-success btn-sm"
                   data-tooltip="tooltip" data-placement="bottom" title="继续灰度发布"
                   ng-show="(namespace.hasReleasePermission || namespace.hasModifyPermission)"
                   ng-click="publish(namespace.branch)">
                    灰度发布
                </a>
                <a type="button" class="btn btn-primary btn-sm"
                   data-tooltip="tooltip" data-placement="bottom" title="合并到主版本并发布主版本配置"
                   ng-show="(namespace.hasReleasePermission || namespace.hasModifyPermission)"
                   ng-click="mergeAndPublish(namespace.branch)">
                    全量发布
                </a>
                <a type="button" class="btn btn-warning btn-sm"
                   data-tooltip="tooltip" data-placement="bottom" title="废弃灰度版本"
                   ng-show="(namespace.hasReleasePermission
                       || (!namespace.branch.latestRelease && namespace.hasModifyPermission))"
                   ng-click="preDeleteBranch(namespace.branch)">
                    放弃灰度
                </a>
            </div>
        </div>

    </header>

lepdou committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
    <div id="BODY{{namespace.branch.id}}" class="collapse in">
        <!--second header-->
        <header class="panel-heading second-panel-heading">
            <div class="row">
                <div class="col-md-12 pull-left">
                    <ul class="nav nav-tabs">
                        <li role="presentation" ng-click="switchView(namespace.branch, 'table')"
                            ng-show="namespace.isPropertiesFormat">
                            <a ng-class="{node_active:namespace.branch.viewType == 'table'}">
                                <img src="img/table.png">
                                配置
                            </a>
                        </li>
                        <li role="presentation" ng-click="switchView(namespace.branch, 'rule')">
                            <a ng-class="{node_active:namespace.branch.viewType == 'rule'}">
                                <img src="img/rule.png">
                                灰度规则
72 73
                                <span class="badge badge-grey"
                                      ng-bind="namespace.branch.grayIps.length + namespace.branch.grayApps.length"></span>
lepdou committed
74 75 76 77 78 79
                            </a>
                        </li>
                        <li role="presentation" ng-click="switchView(namespace.branch, 'instance')">
                            <a ng-class="{node_active:namespace.branch.viewType == 'instance'}">
                                <img src="img/machine.png">
                                灰度实例列表
80 81
                                <span class="badge badge-grey"
                                      ng-bind="namespace.branch.latestReleaseInstances.total"></span>
lepdou committed
82 83 84 85 86 87 88 89 90 91
                            </a>
                        </li>
                        <li role="presentation" ng-click="switchView(namespace.branch, 'history')">
                            <a ng-class="{node_active:namespace.branch.viewType == 'history'}">
                                <img src="img/change.png">
                                更改历史
                            </a>
                        </li>
                    </ul>
                </div>
92
            </div>
lepdou committed
93 94 95 96 97
        </header>
        <!--namespace body-->
        <section>
            <!--items-->
            <div class="namespace-view-table" ng-show="namespace.branch.viewType == 'table'">
98

lepdou committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
                <div class="panel panel-default" ng-if="namespace.hasBranch">
                    <div class="panel-heading">
                        灰度的配置
                        <button type="button" class="btn btn-primary btn-sm pull-right" style="margin-top: -4px;"
                                ng-show="namespace.hasModifyPermission"
                                ng-click="createItem(namespace.branch)">
                            <img src="img/plus.png">
                            新增灰度配置
                        </button>
                    </div>
                    <table class="table table-bordered table-striped table-hover">
                        <thead>
                        <tr>
                            <th>发布状态</th>
                            <th class="hover" title="排序"
                                ng-click="col='item.key';desc=!desc;">
                                Key&nbsp;
                                <span class="glyphicon glyphicon-sort"></span>

                            </th>
                            <th>
                                主版本的值
                            </th>
                            <th>
                                灰度的值
                            </th>
                            <th>
                                备注
                            </th>
                            <th class="hover" title="排序"
                                ng-click="col='item.dataChangeLastModifiedBy';desc=!desc;">
                                最后修改人
                                <span class="glyphicon glyphicon-sort"></span>
132

lepdou committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
                            </th>
                            <th class="hover" title="排序"
                                ng-click="col='item.dataChangeLastModifiedTime';desc=!desc;">
                                最后修改时间
                                <span class="glyphicon glyphicon-sort"></span>
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        </thead>
                        <tbody>

                        <tr ng-repeat="config in namespace.branch.branchItems |orderBy:col:desc"
                            ng-if="config.item.key">
                            <td width="7%" class="text-center">
149 150 151 152 153 154 155
                                <span class="label label-warning no-radius cursor-pointer"
                                      data-tooltip="tooltip" data-placement="bottom" title="点击查看已发布的值"
                                      ng-if="config.isModified || config.isDeleted"
                                      ng-click="showText(config.oldValue)">未发布</span>
                                <span class="label label-default-light no-radius"
                                      data-tooltip="tooltip" data-placement="bottom" title="已生效的配置"
                                      ng-if="!config.isModified">已发布</span>
lepdou committed
156 157 158 159
                            </td>
                            <td width="15%" class="cursor-pointer" title="点击查看" ng-click="showText(config.item.key)">
                                <span ng-bind="config.item.key | limitTo: 250"></span>
                                <span ng-bind="config.item.key.length > 250 ? '...' :''"></span>
160 161 162 163 164 165 166
                                <span class="label label-danger" ng-if="config.isDeleted"
                                      data-tooltip="tooltip" data-placement="bottom" title="删除的配置"></span>
                                <span class="label label-info" ng-if="!config.isDeleted && config.masterReleaseValue"
                                      data-tooltip="tooltip" data-placement="bottom" title="修改主版本的配置"></span>
                                <span class="label label-success"
                                      ng-if="!config.isDeleted && !config.masterReleaseValue"
                                      data-tooltip="tooltip" data-placement="bottom" title="灰度版本特有的配置"></span>
lepdou committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
                            </td>
                            <td width="20%" class="cursor-pointer" title="点击查看"
                                ng-click="showText(config.masterReleaseValue)">
                                <span ng-bind="config.masterReleaseValue | limitTo: 250"></span>
                                <span ng-bind="config.item.value.length > 250 ? '...': ''"></span>
                            </td>
                            <td width="20%" class="cursor-pointer" title="点击查看" ng-click="showText(config.item.value)">
                                <span ng-bind="config.item.value | limitTo: 250"></span>
                                <span ng-bind="config.item.value.length > 250 ? '...': ''"></span>
                            </td>
                            <td width="10%" title="{{config.item.comment}}">
                                <span ng-bind="config.item.comment | limitTo: 250"></span>
                                <span ng-bind="config.item.comment.length > 250 ?'...' : ''"></span>
                            </td>
                            <td width="10%" ng-bind="config.item.dataChangeLastModifiedBy">
                            </td>
                            <td width="10%"
                                ng-bind="config.item.dataChangeLastModifiedTime | date: 'yyyy-MM-dd HH:mm:ss'">
                            </td>
186

lepdou committed
187 188 189 190 191 192 193 194 195 196 197 198
                            <td width="9%" class="text-center">
                                <img src="img/edit.png"
                                     data-tooltip="tooltip" data-placement="bottom" title="修改"
                                     ng-if="!config.isDeleted"
                                     ng-click="editItem(namespace.branch, config.item)"
                                     ng-show="namespace.hasModifyPermission">
                                <img style="margin-left: 5px;" src="img/cancel.png"
                                     data-tooltip="tooltip" data-placement="bottom" title="删除"
                                     ng-if="!config.isDeleted"
                                     ng-click="preDeleteItem(namespace.branch, config.item.id)"
                                     ng-show="namespace.hasModifyPermission">
                            </td>
199

lepdou committed
200 201 202
                        </tr>
                        </tbody>
                    </table>
203 204
                </div>

lepdou committed
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
                <div class="panel panel-default"
                     ng-if="namespace.branch.masterItems && namespace.branch.masterItems.length > 0">
                    <div class="panel-heading">
                        主版本的配置
                    </div>
                    <table class="table table-bordered table-striped table-hover">
                        <thead>
                        <tr>
                            <th>发布状态</th>
                            <th class="hover" title="排序"
                                ng-click="col='item.key';desc=!desc;">
                                Key&nbsp;
                                <span class="glyphicon glyphicon-sort"></span>

                            </th>
                            <th>
                                Value
                            </th>
                            <th>
                                备注
                            </th>
                            <th class="hover" title="排序"
                                ng-click="col='item.dataChangeLastModifiedBy';desc=!desc;">
                                最后修改人
                                <span class="glyphicon glyphicon-sort"></span>

                            </th>
                            <th class="hover" title="排序"
                                ng-click="col='item.dataChangeLastModifiedTime';desc=!desc;">
                                最后修改时间
                                <span class="glyphicon glyphicon-sort"></span>
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        </thead>
                        <tbody>

                        <tr ng-repeat="config in namespace.branch.masterItems |orderBy:col:desc"
                            ng-if="config.item.key">
                            <td width="8%" class="text-center">
247 248 249 250 251 252 253
                                <span class="label label-warning no-radius cursor-pointer"
                                      data-tooltip="tooltip" data-placement="bottom" title="点击查看已发布的值"
                                      ng-if="config.isModified || config.isDeleted"
                                      ng-click="showText(config.oldValue)">未发布</span>
                                <span class="label label-default-light no-radius"
                                      data-tooltip="tooltip" data-placement="bottom" title="已生效的配置"
                                      ng-if="!config.isModified">已发布</span>
lepdou committed
254 255 256 257
                            </td>
                            <td width="15%" class="cursor-pointer" title="点击查看" ng-click="showText(config.item.key)">
                                <span ng-bind="config.item.key | limitTo: 250"></span>
                                <span ng-bind="config.item.key.length > 250 ? '...' :''"></span>
258 259 260 261 262 263 264
                                <span class="label label-success" ng-if="config.isModified && !config.oldValue"
                                      data-tooltip="tooltip" data-placement="bottom" title="新增的配置"></span>
                            <span class="label label-info"
                                  ng-if="config.isModified && config.oldValue && !config.isDeleted"
                                  data-tooltip="tooltip" data-placement="bottom" title="修改的配置"></span>
                            <span class="label label-danger" ng-if="config.isDeleted"
                                  data-tooltip="tooltip" data-placement="bottom" title="删除的配置"></span>
lepdou committed
265 266 267 268 269 270 271 272 273 274 275 276 277 278
                            </td>
                            <td width="35%" class="cursor-pointer" title="点击查看" ng-click="showText(config.item.value)">
                                <span ng-bind="config.item.value | limitTo: 250"></span>
                                <span ng-bind="config.item.value.length > 250 ? '...': ''"></span>
                            </td>
                            <td width="12%" title="{{config.item.comment}}">
                                <span ng-bind="config.item.comment | limitTo: 250"></span>
                                <span ng-bind="config.item.comment.length > 250 ?'...' : ''"></span>
                            </td>
                            <td width="10%" ng-bind="config.item.dataChangeLastModifiedBy">
                            </td>
                            <td width="15%"
                                ng-bind="config.item.dataChangeLastModifiedTime | date: 'yyyy-MM-dd HH:mm:ss'">
                            </td>
279

lepdou committed
280 281 282 283 284 285 286
                            <td width="5%" class="text-center">
                                <img src="img/gray.png"
                                     data-tooltip="tooltip" data-placement="bottom" title="对此配置灰度"
                                     ng-if="!config.isDeleted"
                                     ng-click="editItem(namespace.branch, config.item)"
                                     ng-show="namespace.hasModifyPermission">
                            </td>
287

lepdou committed
288 289 290 291
                        </tr>
                        </tbody>
                    </table>
                </div>
292
            </div>
lepdou committed
293 294
            <!--gray rules-->
            <div class="rules-manage-view row" ng-show="namespace.branch.viewType == 'rule'">
295

lepdou committed
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
                <div class="alert alert-warning no-radius"
                     ng-show="!namespace.hasModifyPermission && !namespace.hasReleasePermission">
                    <strong>Tips:</strong>
                    您没有权限编辑灰度规则, 具有namespace修改权或者发布权的人员才可以编辑灰度规则. 如需要编辑灰度规则,请找项目管理员申请权限.
                </div>

                <table class="table table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>灰度的AppId</th>
                        <th>灰度的IP列表</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="ruleItem in namespace.branch.rules.ruleItems">
                        <td width="20%" ng-bind="ruleItem.clientAppId"></td>
                        <td width="70%" ng-show="!ruleItem.ApplyToAllInstances"
                            ng-bind="ruleItem.clientIpList.join(', ')"></td>
                        <td width="70%" ng-show="ruleItem.ApplyToAllInstances">ALL</td>
                        <td class="text-center" width="10%">
                            <img src="img/edit.png" class="i-20 hover"
                                 data-tooltip="tooltip" data-placement="bottom" title="修改"
                                 ng-show="namespace.hasModifyPermission || namespace.hasReleasePermission"
                                 ng-click="editRuleItem(namespace.branch, ruleItem)">
                            <img src="img/cancel.png" class="i-20 hover" style="margin-left: 5px;"
                                 data-tooltip="tooltip" data-placement="bottom" title="删除"
                                 ng-show="namespace.hasModifyPermission || namespace.hasReleasePermission"
                                 ng-click="deleteRuleItem(namespace.branch, ruleItem)">
                        </td>
                    </tr>
327

lepdou committed
328 329 330 331 332
                    </tbody>
                </table>
                <button class="btn btn-primary"
                        ng-if="namespace.hasModifyPermission || namespace.hasReleasePermission"
                        ng-show="(namespace.isPublic && !namespace.isLinkedNamespace) ||
333 334 335 336
                        ((!namespace.isPublic || namespace.isLinkedNamespace)
                        && (!namespace.branch.rules
                            || !namespace.branch.rules.ruleItems
                            || !namespace.branch.rules.ruleItems.length))"
lepdou committed
337
                        ng-click="addRuleItem(namespace.branch)">新增规则
338 339
                </button>

lepdou committed
340

341 342 343
            </div>


lepdou committed
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
            <!--instances -->
            <div class="panel panel-default" ng-show="namespace.branch.viewType == 'instance'">
                <div class="panel-heading text-right">
                    <button class="btn btn-default btn-sm"
                            data-tooltip="tooltip" data-placement="bottom" title="刷新列表"
                            ng-click="refreshInstancesInfo(namespace.branch)">
                        <img src="../../img/refresh.png"/>
                    </button>
                </div>
                <div class="panel-body">
                    <div class="panel-default" ng-if="namespace.branch.latestReleaseInstances.total > 0">
                        <div class="panel-heading">
                            <a target="_blank" data-tooltip="tooltip" data-placement="bottom" title="查看配置"
                               href="/config/history.html?#/appid={{appId}}&env={{env}}&clusterName={{namespace.baseInfo.clusterName}}&namespaceName={{namespace.baseInfo.namespaceName}}&releaseId={{namespace.branch.latestRelease.id}}">
                                {{namespace.branch.latestRelease.name}}
                            </a>
360
                        </div>
lepdou committed
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <td>App ID</td>
                                <td>Cluster Name</td>
                                <td>Data Center</td>
                                <td>IP</td>
                                <td>配置获取时间</td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="instance in namespace.branch.latestReleaseInstances.content">
                                <td width="20%" ng-bind="instance.appId"></td>
                                <td width="20%" ng-bind="instance.clusterName"></td>
                                <td width="20%" ng-bind="instance.dataCenter"></td>
                                <td width="20%" ng-bind="instance.ip"></td>
                                <td width="20%">{{instance.configs && instance.configs.length ?
                                    (instance.configs[0].releaseDeliveryTime | date: 'yyyy-MM-dd HH:mm:ss') : ''}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="row text-center"
                             ng-show="namespace.branch.latestReleaseInstances.content.length < namespace.branch.latestReleaseInstances.total">
                            <button class="btn btn-default" ng-click="loadInstanceInfo(namespace.branch)">加载更多</button>

387 388
                        </div>
                    </div>
lepdou committed
389 390 391 392
                    <div class="text-center" ng-if="namespace.branch.latestReleaseInstances.total == 0">
                        无实例信息
                    </div>
                </div>
393 394


lepdou committed
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
            </div>
            <!--history view-->
            <div class="J_historyview history-view" ng-show="namespace.branch.viewType == 'history'">
                <div class="media"
                     ng-show="namespace.branch.commits && namespace.branch.commits.length"
                     ng-repeat="commits in namespace.branch.commits">
                    <div class="media-body">
                        <div class="row">
                            <div class="col-md-6 col-sm-6 "><h3 class="media-heading"
                                                                ng-bind="commits.dataChangeCreatedBy"></h3>
                            </div>
                            <div class="col-md-6 col-sm-6 text-right">
                                <h5 class="media-heading"
                                    ng-bind="commits.dataChangeCreatedTime  | date: 'yyyy-MM-dd HH:mm:ss'"></h5>
                            </div>
                        </div>
411 412


lepdou committed
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
                        <!--properties format-->
                        <table class="table table-bordered table-striped text-center table-hover"
                               style="margin-top: 5px;"
                               ng-if="namespace.isPropertiesFormat">
                            <thead>
                            <tr>
                                <th>
                                    Type
                                </th>
                                <th>
                                    Key
                                </th>
                                <th>
                                    Old Value
                                </th>
                                <th>
                                    New Value
                                </th>
                                <th>
                                    Comment
                                </th>
                            </tr>
                            </thead>
                            <tbody>

                            <!--兼容老数据,不显示item类型为空行和注释的item-->
                            <tr ng-repeat="item in commits.changeSets.createItems" ng-show="item.key">
                                <td width="2%">
                                    新增
                                </td>
                                <td width="20%" title="{{item.key}}">

                                    <span ng-bind="item.key | limitTo: 250"></span>
                                    <span ng-bind="item.key.length > 250 ? '...' :''"></span>
                                </td>
                                <td width="30%">
                                </td>
                                <td width="30%" class="cursor-pointer" title="{{item.value}}"
                                    ng-click="showText(item.value)">
                                    <span ng-bind="item.value | limitTo: 250"></span>
                                    <span ng-bind="item.value.length > 250 ? '...': ''"></span>
                                </td>
                                <td width="18%" title="{{item.comment}}">
                                    <span ng-bind="item.comment | limitTo: 250"></span>
                                    <span ng-bind="item.comment.length > 250 ?'...' : ''"></span>
                                </td>
                            </tr>
                            <tr ng-repeat="item in commits.changeSets.updateItems">
                                <td width="2%">
                                    更新
                                </td>
                                <td width="20%" title="{{item.newItem.key}}">
                                    <span ng-bind="item.newItem.key | limitTo: 250"></span>
                                    <span ng-bind="item.newItem.key.length > 250 ? '...' :''"></span>
                                </td>
                                <td width="30%" class="cursor-pointer" title="{{item.oldItem.value}}"
                                    ng-click="showText(item.oldItem.value)">
                                    <span ng-bind="item.oldItem.value | limitTo: 250"></span>
                                    <span ng-bind="item.oldItem.value.length > 250 ? '...': ''"></span>
                                </td>
                                <td width="30%" class="cursor-pointer" title="{{item.newItem.value}}"
                                    ng-click="showText(item.newItem.value)">
                                    <span ng-bind="item.newItem.value | limitTo: 250"></span>
                                    <span ng-bind="item.newItem.value.length > 250 ? '...': ''"></span>
                                </td>
                                <td width="18%" title="{{item.newItem.comment}}">
                                    <span ng-bind="item.newItem.comment | limitTo: 250"></span>
                                    <span ng-bind="item.newItem.comment.length > 250 ?'...' : ''"></span>
                                </td>
                            </tr>
                            <tr ng-repeat="item in commits.changeSets.deleteItems"
                                ng-show="item.key || item.comment">
                                <td width="2%">
                                    删除
                                </td>
                                <td width="20%" title="{{item.key}}">
                                    <span ng-bind="item.key | limitTo: 250"></span>
                                    <span ng-bind="item.key.length > 250 ? '...' :''"></span>
                                </td>
                                <td width="30%" title="{{item.value}}">
                                    <span ng-bind="item.value | limitTo: 250"></span>
                                    <span ng-bind="item.value.length > 250 ? '...': ''"></span>
                                </td>
                                <td width="30%">
                                </td>
                                <td width="18%" title="{{item.comment}}">
                                    <span ng-bind="item.comment | limitTo: 250"></span>
                                    <span ng-bind="item.comment.length > 250 ?'...' : ''"></span>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <!--not properties format-->
                        <div ng-if="!namespace.isPropertiesFormat">
                            <div ng-repeat="item in commits.changeSets.createItems">
509 510 511
                                <textarea class="form-control no-radius" rows="20"
                                          ng-disabled="true" ng-bind="item.value">
                                </textarea>
lepdou committed
512
                            </div>
513

lepdou committed
514
                            <div ng-repeat="item in commits.changeSets.updateItems">
515 516 517
                                <textarea class="form-control no-radius" rows="20"
                                          ng-disabled="true" ng-bind="item.newItem.value">
                                </textarea>
lepdou committed
518
                            </div>
519 520 521
                        </div>


lepdou committed
522 523 524 525 526 527 528 529 530 531 532
                    </div>
                    <hr>
                </div>
                <div class="text-center">
                    <button type="button" class="btn btn-default" ng-show="!namespace.branch.hasLoadAllCommit"
                            ng-click="loadCommitHistory(namespace.branch)">加载更多
                        <span class="glyphicon glyphicon-menu-down"></span></button>
                </div>
                <div class="empty-container text-center"
                     ng-show="!namespace.branch.commits || !namespace.branch.commits.length">
                    无更改历史
533
                </div>
534
            </div>
lepdou committed
535 536
        </section>
    </div>
537
</section>