PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/user/permissions.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 19 lines | 16 code | 3 blank | 0 comment | 4 complexity | df91c97ceea6208d086ec23cead9a6ca MD5 | raw file
 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<%def name="title()">Change Default Permissions on New Histories</%def>
 6
 7%if message:
 8    ${render_msg( message, status )}
 9%endif
10
11<br/><br/>
12<ul class="manage-table-actions">
13    <li>
14        <a class="action-button"  href="${h.url_for( controller='user', cntrller=cntrller, action='index')}">User preferences</a>
15    </li>
16</ul>
17%if trans.user:
18    ${render_permission_form( trans.user, trans.user.email, h.url_for( controller='user', action='set_default_permissions', cntrller=cntrller ), trans.user.all_roles() )}
19%endif