mapreduce_links.hbs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 span1" 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. <!--jobTracker-->
  27. <tr>
  28. <td><a href="#" {{action showDetails view.model.jobTracker}}>{{t services.service.summary.jobTracker}}</a></td>
  29. </tr>
  30. <!--taskTrackers-->
  31. <tr>
  32. <td><a href="#" {{action filterHosts view.component}}>{{view.model.taskTrackers.length}} {{t dashboard.services.mapreduce.taskTrackers}}</a></td>
  33. </tr>
  34. <!--jobTracker Web UI-->
  35. <tr>
  36. <td><a {{bindAttr href="view.webUrl"}} target="_blank">{{t services.service.summary.jobTrackerWebUI}}</a></td>
  37. </tr>
  38. </table>
  39. </div>
  40. <div class="link-button">
  41. {{#if view.model.quickLinks.length}}
  42. {{#view App.QuickViewLinks contentBinding="view.model"}}
  43. <div class="btn-group">
  44. <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
  45. {{t common.more}}
  46. <span class="caret"></span>
  47. </a>
  48. <ul class="dropdown-menu">
  49. {{#each view.quickLinks}}
  50. <li><a {{bindAttr href="url"}} target="_blank">{{label}}</a></li>
  51. {{/each}}
  52. </ul>
  53. </div>
  54. {{/view}}
  55. {{/if}}
  56. </div>
  57. </li>
  58. </div>