root/galaxy-central/templates/webapps/community/common/view_tool_history.mako @ 3

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

import galaxy-central

行番号 
1<%namespace file="/message.mako" import="render_msg" />
2
3<%
4    if cntrller in [ 'tool' ] and can_edit:
5        menu_label = 'Edit information or submit for approval'
6    else:
7        menu_label = 'Edit information'
8%>
9
10<%!
11   def inherit(context):
12       if context.get('use_panels'):
13           return '/webapps/community/base_panels.mako'
14       else:
15           return '/base.mako'
16%>
17<%inherit file="${inherit(context)}"/>
18
19<h2>Tool history</h2>
20<ul class="manage-table-actions">
21    %if can_approve_or_reject:
22        <li><a class="action-button" href="${h.url_for( controller='admin', action='set_tool_state', state=trans.model.Tool.states.APPROVED, id=trans.security.encode_id( tool.id ), cntrller=cntrller )}">Approve</a></li>
23        <li><a class="action-button" href="${h.url_for( controller='admin', action='set_tool_state', state=trans.model.Tool.states.REJECTED, id=trans.security.encode_id( tool.id ), cntrller=cntrller )}">Reject</a></li>
24    %endif
25    <li><a class="action-button" id="tool-${tool.id}-popup" class="menubutton">Tool Actions</a></li>
26    <div popupmenu="tool-${tool.id}-popup">
27        %if can_edit:
28            <a class="action-button" href="${h.url_for( controller='common', action='edit_tool', id=trans.app.security.encode_id( tool.id ), cntrller=cntrller )}">${menu_label}</a>
29        %endif
30        %if can_view:
31            <a class="action-button" href="${h.url_for( controller='common', action='view_tool', id=trans.app.security.encode_id( tool.id ), cntrller=cntrller )}">View tool</a>
32        %endif
33        %if can_delete:
34            <a class="action-button" href="${h.url_for( controller='common', action='delete_tool', id=trans.app.security.encode_id( tool.id ), cntrller=cntrller )}" confirm="Are you sure you want to delete this tool?">Delete tool</a>
35        %endif
36        %if can_download:
37            <a class="action-button" href="${h.url_for( controller='common', action='download_tool', id=trans.app.security.encode_id( tool.id ), cntrller=cntrller )}">Download tool</a>
38        %endif
39    </div>
40</ul>
41
42%if message:
43    ${render_msg( message, status )}
44%endif
45
46<div class="toolForm">
47    <div class="toolFormTitle">${tool.name}</div>
48    <div class="form-row">
49        <label>Tool id:</label>
50        ${tool.tool_id}
51        <div style="clear: both"></div>
52    </div>
53    <div class="form-row">
54        <label>Version:</label>
55        ${tool.version}
56        <div style="clear: both"></div>
57    </div>
58    <div class="form-row">
59        <label>Description:</label>
60        ${tool.description}
61        <div style="clear: both"></div>
62    </div>
63    <div class="form-row">
64        <label>User description:</label>
65        ${tool.user_description}
66        <div style="clear: both"></div>
67    </div>
68    <div class="form-row">
69        <label>Uploaded by:</label>
70        ${tool.user.username}
71        <div style="clear: both"></div>
72    </div>
73</div>
74<p/>
75<table class="grid">
76    <thead>
77        <tr>
78            <th>State</th>
79            <th>Last Update</th>
80            <th>Comments</th>
81        </tr>
82    </thead>
83    <tbody>
84        %for state, updated, comments in events:   
85            <tr class="libraryRow libraryOrFolderRow" id="libraryRow">
86                <td><b><a>${state}</a></b></td>
87                <td><a>${updated}</a></td>
88                <td><a>${comments}</a></td>
89            </tr>             
90        %endfor
91    </tbody>
92</table>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。