Add mobile support for datasync restart
This commit is contained in:
parent
22c7fee0f6
commit
06dee96af6
4 changed files with 28 additions and 4 deletions
|
@ -72,6 +72,9 @@
|
|||
% elif request.is_admin:
|
||||
<li class="root-user" data-icon="forbidden">${h.link_to("Become root", url('become_root'), **{'data-ajax': 'false'})}</li>
|
||||
% endif
|
||||
% if request.has_perm('datasync.restart'):
|
||||
<li>${h.link_to("DataSync", url('datasync.mobile'))}</li>
|
||||
% endif
|
||||
<li data-icon="lock">${h.link_to("Logout", url('logout'), **{'data-ajax': 'false'})}</li>
|
||||
<li data-icon="info">${h.link_to("About {}".format(capture(self.app_title)), url('mobile.about'))}</li>
|
||||
</ul>
|
||||
|
|
8
tailbone/templates/mobile/datasync.mako
Normal file
8
tailbone/templates/mobile/datasync.mako
Normal file
|
@ -0,0 +1,8 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/mobile/base.mako" />
|
||||
|
||||
<%def name="title()">DataSync</%def>
|
||||
|
||||
${h.form(url('datasync.restart'))}
|
||||
${h.submit('restart', "Restart DataSync", id='datasync-restart')}
|
||||
${h.end_form()}
|
Loading…
Add table
Add a link
Reference in a new issue