{{extend 'layout.html'}} {{import os, glob}} {{block sectionclass}}site{{end}}
{{else:}}
{{if not os.path.exists('applications/%s/compiled' % a):}} {{=sp_button(URL('design',args=a), T("Edit"))}} {{else:}} {{=button(URL(a,'appadmin','index'), T("appadmin"))}} {{pass}} {{=button(URL('about',args=a), T("About"))}} {{pass}} {{=button(URL('errors',args=a), T("Errors"))}} {{=button(URL('cleanup',args=a), T("Clean"))}} {{=button(URL('pack',args=a), T("Pack all"))}} {{if not os.path.exists('applications/%s/compiled' % a):}} {{=button(URL('compile_app',args=a), T("Compile"))}} {{else:}} {{=button(URL('pack',args=(a, 'compiled')), T("Pack compiled"))}} {{if glob.glob('applications/%s/controllers/*.py' % a):}} {{=button(URL('remove_compiled_app',args=a), T("Remove compiled"))}} {{pass}} {{pass}} {{if os.path.exists(os.path.join(apath(r=request),a,'.git')): }} {{=button(URL('git_pull',args=a), T("Git Pull"))}} {{=button(URL('git_push',args=a), T("Git Push"))}} {{pass}} {{if a!=request.application:}} {{=button(URL('uninstall',args=a), T("Uninstall"))}} {{=button_enable(URL('enable',args=a), a)}} {{pass}}
{{if session.check_version:}} {{=T('Checking for upgrades...')}}
{{session.check_version=False}} {{else:}} {{=button("javascript:ajax('"+URL('check_version')+"',[],'check_version')", T('Check for upgrades'))}} {{=button(URL('default','reload_routes'), T('Reload routes'))}} {{pass}}{{=T("Running on %s", request.env.server_software)}}
{{if session.is_mobile=='auto':}}{{=A(T('Try the mobile interface'),_href=URL('plugin_jqmobile','about'))}}
{{pass}}{{=button(URL('bulk_register'),T('Bulk Register'))}} {{=button(URL('manage_students',vars={'order':'auth_user.id'}),T('Manage Students'))}}
{{=button(URL('wizard','index'), T('Start wizard'))}} {{=T("(requires internet access)")}}
{{=button(URL('gae','deploy'), T('Deploy on Google App Engine'))}} {{=button(URL('openshift','deploy'),T('Deploy to OpenShift'))}}