PageRenderTime 19ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/reports/index.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 110 lines | 101 code | 7 blank | 2 comment | 6 complexity | ebe5cececa24a8d73f1b9259af2c85aa MD5 | raw file
  1. <%inherit file="/webapps/reports/base_panels.mako"/>
  2. <%def name="init()">
  3. <%
  4. self.has_left_panel=True
  5. self.has_right_panel=False
  6. self.active_view="reports"
  7. %>
  8. </%def>
  9. <%def name="stylesheets()">
  10. ${parent.stylesheets()}
  11. ## Include "base.css" for styling tool menu and forms (details)
  12. ${h.css( "base", "autocomplete_tagging", "tool_menu" )}
  13. ## But make sure styles for the layout take precedence
  14. ${parent.stylesheets()}
  15. <style type="text/css">
  16. body { margin: 0; padding: 0; overflow: hidden; }
  17. #left {
  18. background: #C1C9E5 url(${h.url_for('/static/style/menu_bg.png')}) top repeat-x;
  19. }
  20. </style>
  21. </%def>
  22. <%def name="javascripts()">
  23. ${parent.javascripts()}
  24. </%def>
  25. <%def name="left_panel()">
  26. <%
  27. from datetime import datetime
  28. from time import mktime, strftime, localtime
  29. %>
  30. <div class="unified-panel-header" unselectable="on">
  31. <div class='unified-panel-header-inner'>Reports</div>
  32. </div>
  33. <div class="page-container" style="padding: 10px;">
  34. <div class="toolMenu">
  35. <div class="toolSectionList">
  36. <div class="toolSectionPad"></div>
  37. <div class="toolSectionTitle">
  38. <span>Jobs</span>
  39. </div>
  40. <div class="toolSectionBody">
  41. <div class="toolSectionBg">
  42. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_date_handler', specified_date=datetime.utcnow().strftime( "%Y-%m-%d" ) )}">Today's jobs</a></div>
  43. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_month_all' )}">Jobs per day this month</a></div>
  44. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_month_in_error' )}">Jobs in error per day this month</a></div>
  45. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_date_handler', operation='unfinished' )}">All unfinished jobs</a></div>
  46. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_month_all' )}">Jobs per month</a></div>
  47. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_month_in_error' )}">Jobs in error per month</a></div>
  48. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_user' )}">Jobs per user</a></div>
  49. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_tool' )}">Jobs per tool</a></div>
  50. </div>
  51. </div>
  52. <div class="toolSectionPad"></div>
  53. <div class="toolSectionPad"></div>
  54. <div class="toolSectionTitle">
  55. <span>Sample Tracking</span>
  56. </div>
  57. <div class="toolSectionBody">
  58. <div class="toolSectionBg">
  59. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='sample_tracking', action='per_month_all' )}">Sequencing requests per month</a></div>
  60. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='sample_tracking', action='per_user' )}">Sequencing requests per user</a></div>
  61. </div>
  62. </div>
  63. <div class="toolSectionPad"></div>
  64. <div class="toolSectionPad"></div>
  65. <div class="toolSectionTitle">
  66. <span>Workflows</span>
  67. </div>
  68. <div class="toolSectionBody">
  69. <div class="toolSectionBg">
  70. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='workflows', action='per_month_all' )}">Workflows per month</a></div>
  71. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='workflows', action='per_user' )}">Workflows per user</a></div>
  72. </div>
  73. </div>
  74. <div class="toolSectionPad"></div>
  75. <div class="toolSectionPad"></div>
  76. <div class="toolSectionTitle">
  77. <span>Users</span>
  78. </div>
  79. <div class="toolSectionBody">
  80. <div class="toolSectionBg">
  81. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='users', action='registered_users' )}">Registered users</a></div>
  82. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='users', action='last_access_date' )}">Date of last login</a></div>
  83. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='users', action='user_disk_usage' )}">User disk usage</a></div>
  84. </div>
  85. </div>
  86. <div class="toolSectionPad"></div>
  87. <div class="toolSectionPad"></div>
  88. <div class="toolSectionTitle">
  89. <span>System</span>
  90. </div>
  91. <div class="toolSectionBody">
  92. <div class="toolSectionBg">
  93. <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='system', action='index' )}">Disk space maintenance</a></div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </%def>
  100. <%def name="center_panel()">
  101. <% center_url = h.url_for( controller='jobs', action='specified_month_all' ) %>
  102. <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"> </iframe>
  103. </%def>