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