{{extend 'layout.html'}} {{ def all(items): return reduce(lambda a,b:a and b,items,True) def peekfile(path,file,vars={},title=None): args=(path,file) if 'app' in vars else (app,path,file) return A(file.replace('\\\\','/'),_title=title,_href=URL('peek', args=args, vars=vars)) def editfile(path,file,vars={}): args=(path,file) if 'app' in vars else (app,path,file) return A(SPAN(T('Edit')),_class='button editbutton',_href=URL('edit', args=args, vars=vars)) 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 (to run all files, you may also use the button labelled 'test')"))), _class='icon test tooltip',_href=URL('test', args=(app, file))) def editlanguagefile(path,file,vars={}): return A(SPAN(T('Edit')),_class='button editbutton',_href=URL('edit_language', args=(app, path, file), vars=vars)) def editpluralsfile(path,file,vars={}): return A(SPAN(T('Edit')),_class='button editbutton',_href=URL('edit_plurals', args=(app, path, file), vars=vars)) def file_upload_form(location, anchor=None): 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',args=app, anchor=anchor)), INPUT(_type="submit",_value=T("upload")),_action=URL('upload_file')) return form def file_create_form(location, anchor=None): 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="sender",_value=URL('design',args=app)), INPUT(_type="hidden",_name="token",_value=session.token), INPUT(_type="hidden",_name="id",_value=anchor), INPUT(_type="submit",_value=T("Create")),_action=URL('create_file')) return form def upload_plugin_form(app, anchor=None): form=FORM(T("upload plugin file:")," ", INPUT(_type="file",_name="pluginfile"), INPUT(_type="hidden",_name="id",_value=anchor), INPUT(_type="hidden",_name="token",_value=session.token), INPUT(_type="submit",_value=T("upload"))) return form def deletefile(arglist, vars={}): vars.update({'sender':request.function+'/'+app}) return A(TAG[''](IMG(_src=URL('static', 'images/delete_icon.png')), SPAN(T('Delete this file (you will be asked to confirm deletion)'))), _class='icon delete tooltip', _href=URL('delete',args=arglist,vars=vars)) }} {{block sectionclass}}design{{end}}
{{=searchbox('search')}} {{=T("collapse/expand all")}}
{{=T("There are no models")}}
{{else:}}{{=T("There are no controllers")}}
{{else:}}{{=T("There are no views")}}
{{pass}}{{=T("There are no translators, only default language is supported")}}
{{pass}}{{=editlanguagefile('languages',file)}} {{=deletefile([app, 'languages', file], dict(id=id, id2='languages'))}} {{=peekfile('languages',file, dict(id=id))}} | ( {{=T("Plural-Forms:")}} {{p=languages[lang][3:7]}} {{if p[2] == 'default':}} {{=T("rules are not defined")}} {{=T.M("(file **gluon/contrib/plural_rules/%s.py** is not found)",lang[:2])}} {{else:}} {{if p[3] == 1:}} {{=B(T("are not used"))}} {{else:}} {{pfile=p[0]}} {{if p[1]!=0:}} {{=editpluralsfile('languages',pfile,dict(nplurals=p[3]))}} {{=peekfile('languages',pfile,dict(id=id))}} {{else:}} {{=T("are not used yet")}} {{pass}} {{pass}} {{pass}} ) |
{{=T("There are no static files")}}
{{pass}}{{=T("There are no modules")}}
{{pass}}{{=T("There are no private files")}}
{{pass}}{{=T('There are no plugins')}}
{{pass}}