[2] | 1 | <%inherit file="/webapps/reports/base_panels.mako"/> |
---|
| 2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
| 3 | |
---|
| 4 | <%def name="init()"> |
---|
| 5 | <% |
---|
| 6 | self.has_left_panel=True |
---|
| 7 | self.has_right_panel=False |
---|
| 8 | self.active_view="reports" |
---|
| 9 | %> |
---|
| 10 | </%def> |
---|
| 11 | |
---|
| 12 | <%def name="stylesheets()"> |
---|
| 13 | ${parent.stylesheets()} |
---|
| 14 | ## TODO: Clean up these styles and move into panel_layout.css (they are |
---|
| 15 | ## used here and in the editor). |
---|
| 16 | <style type="text/css"> |
---|
| 17 | #left { |
---|
| 18 | background: #C1C9E5 url(${h.url_for('/static/style/menu_bg.png')}) top repeat-x; |
---|
| 19 | } |
---|
| 20 | div.toolMenu { |
---|
| 21 | margin: 5px; |
---|
| 22 | margin-left: 10px; |
---|
| 23 | margin-right: 10px; |
---|
| 24 | } |
---|
| 25 | div.toolSectionPad { |
---|
| 26 | margin: 0; |
---|
| 27 | padding: 0; |
---|
| 28 | height: 5px; |
---|
| 29 | font-size: 0px; |
---|
| 30 | } |
---|
| 31 | div.toolSectionDetailsInner { |
---|
| 32 | margin-left: 5px; |
---|
| 33 | margin-right: 5px; |
---|
| 34 | } |
---|
| 35 | div.toolSectionTitle { |
---|
| 36 | padding-bottom: 0px; |
---|
| 37 | font-weight: bold; |
---|
| 38 | } |
---|
| 39 | div.toolMenuGroupHeader { |
---|
| 40 | font-weight: bold; |
---|
| 41 | padding-top: 0.5em; |
---|
| 42 | padding-bottom: 0.5em; |
---|
| 43 | color: #333; |
---|
| 44 | font-style: italic; |
---|
| 45 | border-bottom: dotted #333 1px; |
---|
| 46 | margin-bottom: 0.5em; |
---|
| 47 | } |
---|
| 48 | div.toolTitle { |
---|
| 49 | padding-top: 5px; |
---|
| 50 | padding-bottom: 5px; |
---|
| 51 | margin-left: 16px; |
---|
| 52 | margin-right: 10px; |
---|
| 53 | display: list-item; |
---|
| 54 | list-style: square outside; |
---|
| 55 | } |
---|
| 56 | a:link, a:visited, a:active |
---|
| 57 | { |
---|
| 58 | color: #303030; |
---|
| 59 | } |
---|
| 60 | </style> |
---|
| 61 | </%def> |
---|
| 62 | |
---|
| 63 | <%def name="left_panel()"> |
---|
| 64 | <% |
---|
| 65 | from datetime import datetime |
---|
| 66 | from time import mktime, strftime, localtime |
---|
| 67 | %> |
---|
| 68 | <div class="unified-panel-header" unselectable="on"> |
---|
| 69 | <div class='unified-panel-header-inner'>Reports</div> |
---|
| 70 | </div> |
---|
| 71 | <div class="page-container" style="padding: 10px;"> |
---|
| 72 | <div class="toolMenu"> |
---|
| 73 | <div class="toolSectionList"> |
---|
| 74 | <div class="toolSectionPad"></div> |
---|
| 75 | <div class="toolSectionTitle"> |
---|
| 76 | <span>Jobs</span> |
---|
| 77 | </div> |
---|
| 78 | <div class="toolSectionBody"> |
---|
| 79 | <div class="toolSectionBg"> |
---|
| 80 | <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> |
---|
| 81 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_month_all' )}">Jobs per day this month</a></div> |
---|
| 82 | <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> |
---|
| 83 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='specified_date_handler', operation='unfinished' )}">All unfinished jobs</a></div> |
---|
| 84 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_month_all' )}">Jobs per month</a></div> |
---|
| 85 | <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> |
---|
| 86 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_user' )}">Jobs per user</a></div> |
---|
| 87 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='jobs', action='per_tool' )}">Jobs per tool</a></div> |
---|
| 88 | </div> |
---|
| 89 | </div> |
---|
| 90 | <div class="toolSectionPad"></div> |
---|
| 91 | <div class="toolSectionPad"></div> |
---|
| 92 | <div class="toolSectionTitle"> |
---|
| 93 | <span>Users</span> |
---|
| 94 | </div> |
---|
| 95 | <div class="toolSectionBody"> |
---|
| 96 | <div class="toolSectionBg"> |
---|
| 97 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='users', action='registered_users' )}">Registered users</a></div> |
---|
| 98 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='users', action='last_access_date' )}">Date of last login</a></div> |
---|
| 99 | </div> |
---|
| 100 | </div> |
---|
| 101 | <div class="toolSectionPad"></div> |
---|
| 102 | <div class="toolSectionPad"></div> |
---|
| 103 | <div class="toolSectionTitle"> |
---|
| 104 | <span>System</span> |
---|
| 105 | </div> |
---|
| 106 | <div class="toolSectionBody"> |
---|
| 107 | <div class="toolSectionBg"> |
---|
| 108 | <div class="toolTitle"><a target="galaxy_main" href="${h.url_for( controller='system', action='index' )}">Disk space maintenance</a></div> |
---|
| 109 | </div> |
---|
| 110 | </div> |
---|
| 111 | </div> |
---|
| 112 | </div> |
---|
| 113 | </div> |
---|
| 114 | </%def> |
---|
| 115 | |
---|
| 116 | <%def name="center_panel()"> |
---|
| 117 | <% center_url = h.url_for( controller='jobs', action='specified_month_all' ) %> |
---|
| 118 | <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"> </iframe> |
---|
| 119 | </%def> |
---|