root/galaxy-central/templates/library/common/ldda_permissions.mako

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

import galaxy-central

行番号 
1<%inherit file="/base.mako"/>
2<%namespace file="/message.mako" import="render_msg" />
3<%namespace file="/dataset/security_common.mako" import="render_permission_form" />
4
5<%
6    if len( lddas ) > 1:
7        name_str = '%d selected datasets' % len( lddas )
8    else:
9        ldda = lddas[0]
10        name_str = ldda.name
11%>
12
13<br/><br/>
14<ul class="manage-table-actions">
15    <li>
16        <a class="action-button" href="${h.url_for( controller='library_common', action='browse_library', cntrller=cntrller, id=library_id, use_panels=use_panels, show_deleted=show_deleted )}"><span>Browse this data library</span></a>
17    </li>
18</ul>
19
20%if message:
21    ${render_msg( message, status )}
22%endif
23
24%if len( lddas ) > 1:
25    <div class="toolFormTitle">Manage the following selected datasets</div>
26    <p/>
27    <table cellspacing="0" cellpadding="5" border="0" width="100%" class="libraryTitle">
28        %for ldd_assoc in lddas:
29            <tr>
30                <td>
31                    <div class="rowTitle">
32                        <span class="historyItemTitle"><b>${ldd_assoc.name}</b></span>
33                        <a id="ldda-${ldd_assoc.id}-popup" class="popup-arrow" style="display: none;">&#9660;</a>
34                    </div>
35                    <div popupmenu="ldd_assoc-${ldd_assoc.id}-popup">
36                        <a class="action-button" href="${h.url_for( controller='library_common', action='library_dataset_info', id=trans.security.encode_id( ldd_assoc.library_dataset_id ), library_id=library_id )}">Manage this dataset's versions</a>
37                    </div>
38                </td>
39                <td>
40                    %if ldd_assoc == ldd_assoc.library_dataset.library_dataset_dataset_association:
41                        <i>This is the latest version of this library dataset</i>
42                    %else:
43                        <font color="red"><i>This is an expired version of this library dataset</i></font>
44                    %endif
45                </td>
46            </tr>
47        %endfor
48    </table>
49    <p/>
50%else:
51    %if ldda == ldda.library_dataset.library_dataset_dataset_association:
52        <b><i>This is the latest version of this library dataset</i></b>
53    %else:
54        <font color="red"><b><i>This is an expired version of this library dataset</i></b></font>
55    %endif
56    <p/>
57%endif
58
59<% ldda_ids = ",".join( [ trans.security.encode_id( d.id ) for d in lddas ] ) %>
60## LIBRARY_ACCESS is a special permission that is set only at the library level,
61## and DATASET_MANAGE_PERMISSIONS is inherited to the dataset from the ldda.
62${render_permission_form( lddas[0], name_str, h.url_for( controller='library_common', action='ldda_permissions', cntrller=cntrller, library_id=library_id, folder_id=trans.security.encode_id( lddas[0].library_dataset.folder.id ), id=ldda_ids, show_deleted=show_deleted ), roles, do_not_render=[ 'LIBRARY_ACCESS', 'DATASET_MANAGE_PERMISSIONS' ] )}
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。