{{extend 'layout.html'}} {{ import os def all(items): return reduce(lambda a,b:a and b,items,True) def peekfile(path,file): return A(file.replace('\\\\','/'),_href=URL('peek', args=(app, path, file))) def editfile(path,file): return A(SPAN(T('Edit')),_class='button editbutton btn btn-mini',_href=URL('edit', args=(app, path, file))) def testfile(path,file): return A(TAG[''](IMG(_src=URL('static', 'images/test_icon.png'), _alt=T('test')), SPAN(T("Run tests in this file"))), _class='icon test', _href=URL('test', args=(app, file)), _rel="tooltip", **{'_data-placement':'right', '_data-original-title':T("Run tests in this file")}) def editlanguagefile(path,file): return A(SPAN(T('Edit')),_class='button editbutton btn-mini',_href=URL('edit_language', args=(app, path, file))) def file_upload_form(location): form=FORM(T("upload file:")," ", INPUT(_type="file",_name="file")," ",T("and rename it:")," ", INPUT(_type="text",_name="filename",requires=IS_NOT_EMPTY()), INPUT(_type="hidden",_name="location",_value=location), INPUT(_type="hidden",_name="token",_value=session.token), INPUT(_type="hidden",_name="sender",_value=URL('design/'+app)), INPUT(_type="submit",_value=T("submit")),_action=URL('upload_file')) return form def file_create_form(location): form=FORM(T("create file with filename:")," ", INPUT(_type="text",_name="filename",requires=IS_NOT_EMPTY()), INPUT(_type="hidden",_name="location",_value=location), INPUT(_type="hidden",_name="token",_value=session.token), INPUT(_type="hidden",_name="sender",_value=URL('design/'+app)), INPUT(_type="submit",_value=T("submit")),_action=URL('create_file')) return form def deletefile(arglist): return A(TAG[''](IMG(_src=URL('static', 'images/delete_icon.png')), SPAN(T('Delete this file (you will be asked to confirm deletion)'))), _href=URL('delete',args=arglist,vars=dict(sender=request.function+'/'+app+'/'+request.args[1])), _class='icon delete', _rel="tooltip", **{'_data-placement':'right', '_data-original-title':T('Delete this file (you will be asked to confirm deletion)')}) }} {{block sectionclass}}plugin{{end}}
{{=T("There are no models")}}
{{else:}}{{=T("There are no controllers")}}
{{else:}}{{=T("There are no views")}}
{{else:}}{{=T("There are no static files")}}
{{else:}}{{=T("There are no modules")}}
{{else:}}