hdfs_links.hbs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div class="links">
  19. <li class="thumbnail row">
  20. <a class="corner-icon" href="#" {{action deleteWidget target="view"}}>
  21. <i class="icon-remove-sign icon-large"></i>
  22. </a>
  23. <div class="caption span10"> {{view.title}}</div>
  24. <div class="widget-content" >
  25. <table>
  26. <!--NameNode-->
  27. <tr>
  28. <td><a href="#" {{action showDetails view.model.nameNode}}>{{t dashboard.services.hdfs.nanmenode}}</a></td>
  29. </tr>
  30. <!--SecondaryNameNode-->
  31. <tr>
  32. <td><a href="#" {{action showDetails view.model.snameNode}}>{{t dashboard.services.hdfs.snanmenode}}</a></td>
  33. </tr>
  34. <!--Data Nodes-->
  35. <tr>
  36. <td>
  37. <a href="#" {{action filterHosts view.dataNodeComponent}}>{{view.model.dataNodes.length}} {{t dashboard.services.hdfs.datanodes}}</a>
  38. </td>
  39. </tr>
  40. </table>
  41. </div>
  42. <div class="link-button">
  43. {{#if view.model.quickLinks.length}}
  44. {{#view App.QuickViewLinks contentBinding="view.model"}}
  45. <div class="btn-group">
  46. <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
  47. {{t common.more}}
  48. <span class="caret"></span>
  49. </a>
  50. <ul class="dropdown-menu">
  51. {{#each view.quickLinks}}
  52. <li><a {{bindAttr href="url"}} target="_blank">{{label}}</a></li>
  53. {{/each}}
  54. </ul>
  55. </div>
  56. {{/view}}
  57. {{/if}}
  58. </div>
  59. </li>
  60. </div>