root/galaxy-central/templates/webapps/reports/system.mako

リビジョン 2, 3.6 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<%inherit file="/base.mako"/>
2<%namespace file="/message.mako" import="render_msg" />
3
4<%
5    from galaxy.web.framework.helpers import time_ago
6%>
7
8%if message:
9    ${render_msg( message, 'done' )}
10%endif
11
12<div class="toolForm">
13    <h3 align="center">Old Histories and Datasets</h3>
14    <table align="center" width="90%" class="border" cellpadding="5" cellspacing="5">
15        <tr>
16            <td>
17                <form method="post" action="system">
18                    <p>
19                        <button name="action" value="userless_histories">Number of Histories</button>
20                        that are not associate with a user and were last updated more than
21                        <input type="textfield" value="${userless_histories_days}" size="3" name="userless_histories_days">
22                        days ago.
23                    </p>
24                    <p>
25                        <button name="action" value="deleted_histories">Number of Histories</button>
26                        that were deleted more than
27                        <input type="textfield" value="${deleted_histories_days}" size="3" name="deleted_histories_days">
28                        days ago but have not yet been purged.
29                    </p>
30                    <p>
31                        <button name="action" value="deleted_datasets">Number of Datasets</button>
32                        that were deleted more than
33                        <input type="textfield" value="${deleted_datasets_days}" size="3" name="deleted_datasets_days">
34                        days ago but have not yet been purged.
35                    </p>
36                </form>
37            </td>
38        </tr>
39    </table>
40    <br clear="left" />
41    <h3 align="center">Current Disk Space Where Datasets are Stored</h3>
42    <table align="center" width="90%" class="colored">
43        <tr>
44            <td colspan="5">
45                <b>Disk Usage for ${file_path}</b>
46            </td>
47        </tr>
48        <tr class="header">
49            <td>File System</td>
50            <td>Disk Size</td>
51            <td>Used</td>
52            <td>Available</td>
53            <td>Percent Used</td>
54        </tr>
55        <tr class="tr">
56            <td>${disk_usage[0]}</td>
57            <td>${disk_usage[1]}</td>
58            <td>${disk_usage[2]}</td>
59            <td>${disk_usage[3]}</td>
60            <td>${disk_usage[4]}</td>
61        </tr>
62    </table>
63    <br clear="left" />
64    %if datasets.count() > 0:
65        <h3 align="center">${datasets.count()} largest unpurged data files over ${file_size_str}</h3>
66        <table align="center" width="90%" class="colored">
67            <tr class="header">
68                <td>File</td>
69                <td>Last Updated</td>
70                <td>Deleted</td>
71                <td>File Size</td>
72            </tr>
73            <% ctr = 0 %>
74            %for dataset in datasets:
75                %if ctr % 2 == 1:
76                    <tr class="odd_row">
77                %else:
78                    <tr class="tr">
79                %endif
80                    <td>
81                        <% dataset_label = 'dataset_%d.dat' % dataset.id %>
82                        <a href="${h.url_for( controller='system', action='dataset_info', id=trans.security.encode_id( dataset.id ) )}">${dataset_label}</a>
83                    </td>
84                    <td>${time_ago( dataset.update_time )}</td>
85                    <td>${dataset.deleted}</td>
86                    <td>${dataset.file_size}</td>
87                </tr>
88                <% ctr += 1 %>
89            %endfor
90        </table>
91        <br clear="left" />
92    %else:
93        <h3 align="center">There are no unpurged data files larger than ${file_size_str}</h3>
94    %endif
95</div>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。