{{extend 'layout.html'}} {{import os, glob}} {{block sectionclass}}site{{end}}
{{if a==request.application:}}
{{=a}} ({{=T('currently running')}}){{else:}}{{=A(a,_href=URL(a,'default','index'))}}{{if MULTI_USER_MODE and db.app(name=a):}}(created by {{="%(first_name)s %(last_name)s" % db.auth_user[db.app(name=a).owner]}}){{pass}} {{if not os.path.exists('applications/%s/compiled' % a):}} {{buttons.append((URL('design',args=a), T("Edit")))}} {{else:}} {{buttons.append((URL(a,'appadmin','index'), T("appadmin")))}} {{pass}} {{buttons.append((URL('about',args=a), T("About")))}} {{pass}} {{buttons.append((URL('errors',args=a), T("Errors")))}} {{buttons.append((URL('cleanup',args=a), T("Clean")))}} {{buttons.append((URL('pack',args=a), T("Pack all")))}} {{buttons.append((URL('pack_custom',args=a), T("Pack custom")))}} {{if not os.path.exists('applications/%s/compiled' % a):}} {{buttons.append((URL('compile_app',args=[a, 'skip_failed_views']), T("Compile (skip failed views)")))}} {{buttons.append((URL('compile_app',args=a), T("Compile (all or nothing)")))}} {{else:}} {{buttons.append((URL('pack',args=(a, 'compiled')), T("Pack compiled")))}} {{if glob.glob('applications/%s/controllers/*.py' % a):}} {{buttons.append((URL('remove_compiled_app',args=a), T("Remove compiled")))}} {{pass}} {{pass}} {{if os.path.exists(os.path.join(apath(r=request),a,'.git')): }} {{buttons.append((URL('git_pull',args=a), T("Git Pull")))}} {{buttons.append((URL('git_push',args=a), T("Git Push")))}} {{pass}} {{if a!=request.application:}} {{buttons.append((URL('uninstall',args=a), T("Uninstall")))}} {{pass}} |
{{=button_enable(URL('enable',args=a, hmac_key=session.hmac_key), a) if a!='admin' else ''}} |