mapreduce_slots.hbs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="has-hidden-info">
  19. <li class="thumbnail row" >
  20. <a class="corner-icon" href="#" {{action deleteWidget target="view"}}><i class="icon-remove-sign icon-large"></i></a>
  21. <div class="caption span10"> {{view.title}}</div>
  22. <div class="hidden-info">
  23. <table align="center">
  24. {{#each line in view.hiddenInfo}}
  25. <tr><td>{{line}}</td></tr>{{/each}}
  26. </table>
  27. </div>
  28. {{#if view.isViewExist}}
  29. <div class="widget-content row-fluid" id="map-reduce-slots-text" >
  30. <ul class="span12">
  31. <div class="span3"> {{t dashboard.widgets.mapSlots}}</div>
  32. <div class="progress span5" id="map-reduce-slots-bar1">
  33. <div class="bar bar-success" {{bindAttr style="view.map_occupied"}}></div>
  34. <div class="bar bar-warning" {{bindAttr style="view.map_reserved"}}></div>
  35. </div>
  36. <div class="span3" id="map-reduce-slots-num1"> {{view.map_display_text}}</div>
  37. </ul>
  38. <ul class="span12">
  39. <div class="span3"> {{t dashboard.widgets.reduceSlots}}</div>
  40. <div class="progress span5" id="map-reduce-slots-bar2">
  41. <div class="bar bar-success" {{bindAttr style="view.reduce_occupied"}}></div>
  42. <div class="bar bar-warning" {{bindAttr style="view.reduce_reserved"}}></div>
  43. </div>
  44. <div class="span3" id="map-reduce-slots-num2"> {{view.reduce_display_text}}</div>
  45. </ul>
  46. </div>
  47. {{else}}
  48. <div class="widget-content-isNA" >{{t services.service.summary.notAvailable}}</div>
  49. {{/if}}
  50. </li>
  51. </div>