YARN-10480. replace href tags with ng-href (#2426)

(cherry picked from commit 61f8c5767e)
This commit is contained in:
Gabriel Medeiros Coelho 2020-11-10 15:54:28 -03:00 committed by Wei-Chiu Chuang
parent 12bfd9194a
commit 9a3f2bb545

View File

@ -18,7 +18,7 @@
<a ng-click="stopApp(appName)" class="btn btn-secondary"><span class="glyphicon glyphicon-stop"></span> Stop</a> <a ng-click="stopApp(appName)" class="btn btn-secondary"><span class="glyphicon glyphicon-stop"></span> Stop</a>
<a ng-click="upgradeApp(appName)" class="btn btn-secondary"><span class="glyphicon glyphicon-circle-arrow-up"></span> Upgrade</a> <a ng-click="upgradeApp(appName)" class="btn btn-secondary"><span class="glyphicon glyphicon-circle-arrow-up"></span> Upgrade</a>
<div style="display:inline-block;" ng-repeat="(key, value) in details.yarnfile.quicklinks"> <div style="display:inline-block;" ng-repeat="(key, value) in details.yarnfile.quicklinks">
<a href="{{value}}" class="btn btn-secondary" ng-hide="checkServiceLink()"><span class="glyphicon glyphicon-new-window"></span> {{key}}</a> <a ng-href="{{value}}" class="btn btn-secondary" ng-hide="checkServiceLink()"><span class="glyphicon glyphicon-new-window"></span> {{key}}</a>
</div> </div>
{{details.yarnfile.state}} {{details.yarnfile.state}}
</div> </div>
@ -53,7 +53,7 @@ <h3>{{docker.name}}</h3>
<tbody class="table-striped"> <tbody class="table-striped">
<tr ng-repeat="container in docker.containers"> <tr ng-repeat="container in docker.containers">
<td>{{container.bare_host}}</td> <td>{{container.bare_host}}</td>
<td><a href="http://{{container.bare_host}}:8042/terminal/terminal.template?container={{container.id}}" target="_blank">{{container.id}}</a></td> <td><a ng-href="http://{{container.bare_host}}:8042/terminal/terminal.template?container={{container.id}}" target="_blank">{{container.id}}</a></td>
<td>{{container.launch_time | date:'yyyy-MM-dd HH:mm:ss Z'}}</td> <td>{{container.launch_time | date:'yyyy-MM-dd HH:mm:ss Z'}}</td>
<td>{{container.state}}</td> <td>{{container.state}}</td>
</tr> </tr>