container.mako 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ## Licensed to Cloudera, Inc. under one
  2. ## or more contributor license agreements. See the NOTICE file
  3. ## distributed with this work for additional information
  4. ## regarding copyright ownership. Cloudera, Inc. licenses this file
  5. ## to you under the Apache License, Version 2.0 (the
  6. ## "License"); you may not use this file except in compliance
  7. ## with the License. You may obtain a copy of the License at
  8. ##
  9. ## http://www.apache.org/licenses/LICENSE-2.0
  10. ##
  11. ## Unless required by applicable law or agreed to in writing, software
  12. ## distributed under the License is distributed on an "AS IS" BASIS,
  13. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ## See the License for the specific language governing permissions and
  15. ## limitations under the License.
  16. <%!
  17. from desktop.views import commonheader, commonfooter
  18. from django.utils.translation import ugettext as _
  19. %>
  20. <%namespace name="comps" file="jobbrowser_components.mako" />
  21. ${ commonheader(_('Container: %(trackerId)s') % dict(trackerId=tracker.trackerId), "jobbrowser", user) | n,unicode }
  22. ${ comps.menubar()}
  23. <div class="container-fluid">
  24. <div class="row-fluid">
  25. <div class="span12">
  26. <div class="card card-home">
  27. <div class="card-body">
  28. <p>
  29. <h1>${_('Container at %(trackerHost)s on port %(trackerPort)s') % dict(trackerHost=tracker.host, trackerPort=tracker.httpPort)}</h1>
  30. <div>
  31. <dl>
  32. <dt>${_('ID')}</dt>
  33. <dd>${ tracker.trackerId }</dd>
  34. </dl>
  35. </div>
  36. <h2>${_('Memory Metrics')}</h2>
  37. <div>
  38. <dl>
  39. <dt>${_('Node Id')}</dt>
  40. <dd>${tracker.nodeId }</dd>
  41. <dt>${_('State')}</dt>
  42. <dd>${tracker.state }</dd>
  43. <dt>${_('User')}</dt>
  44. <dd>${tracker.user}</dd>
  45. <dt>${_('Diagnostics')}</dt>
  46. <dd>${tracker.diagnostics}</dd>
  47. <dt>${_('Total Memory Needed in MB')}</dt>
  48. <dd>${tracker.totalMemoryNeededMB}</dd>
  49. <dt>${_('Exit Code')}</dt>
  50. <dd>${tracker.exitCode}</dd>
  51. </dl>
  52. </div>
  53. <a class="btn" href="javascript:history.back()">${_('Back')}</a>
  54. </p>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. ${ commonfooter(request, messages) | n,unicode }