root/galaxy-central/templates/page/history_annotation_table.mako @ 2

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

import galaxy-central

行番号 
1<%namespace file="../tagging_common.mako" import="render_tagging_element_html" />
2<%namespace file="../root/history_common.mako" import="render_dataset" />
3
4<div class="annotated_item">
5        <table>
6            ## Table header.
7            <tr>
8                <th colspan='2'>History '${history.get_display_name()}'</th>
9            </tr>
10            <tr>
11                ## Status messages and tags.
12                <td colspan='2'>
13                    %if history.deleted:
14                        <div class="warningmessagesmall">
15                            ${_('This is a deleted history.')}
16                        </div>
17                    %endif
18                    ## Tags come for free with community tagging, so not sure if this is necessary.
19                    ##%if trans.get_user() is not None:
20                    ##    Tags: ${render_tagging_element_html( tags=history.tags, editable=False, use_toggle_link=False )}
21                    ##%endif
22                </td>
23            </tr>
24            <tr>
25                <td colspan="2" class="annotation" item_class="History" item_id="${trans.security.encode_id( history.id )}">Description of History:
26                    <ol>
27                        <li>What was the motivation for this history?
28                        <li>What is the outcome of this history?
29                        <li>What are unresolved questions from this history?
30                        <li>What new questions arise from this history?
31                    </ol>
32                </td>
33            </tr>
34   
35            ## Table body. For each dataset, there is an area to annotate the dataset.
36            %if not datasets:
37                <tr>
38                    <td>
39                        <div class="infomessagesmall" id="emptyHistoryMessage">
40                            ${_("Your history is empty. Click 'Get Data' on the left pane to start")}
41                        </div>
42                    </td>
43                </tr>
44            %else:
45                ## Render requested datasets.
46                %for data in datasets:
47                    %if data.visible:
48                    <tr>
49                        <td valign="top" class="annotation" item_class="HistoryDatasetAssociation" item_id="${trans.security.encode_id( data.id )}">Describe this step: why was it done? what data did it produce?</td>
50                        ##<td valign="top" class="annotation">Describe this step: why was it done? what data does it produce?</td>
51                        <td>
52                            <div class="historyItemContainer" id="historyItemContainer-${data.id}">
53                                ${render_dataset( data, data.hid, show_deleted_on_refresh = show_deleted, for_editing = False )}
54                            </div>
55                        </td>
56                    </tr>
57                    %endif
58                %endfor
59            %endif
60        </table>
61</div>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。