{{extend 'layout.html'}} {{ def shortcut(combo, description): return XML('
  • %s%s
  • ' % (combo, description)) }} {{if TEXT_EDITOR == 'amy':}} {{include 'default/amy_ajax.html'}} {{elif TEXT_EDITOR == 'codemirror':}} {{cm=URL('static','codemirror')}} {{if TEXT_EDITOR_KEYBINDING == 'emacs':}}{{pass}} {{if TEXT_EDITOR_KEYBINDING == 'vi':}}{{pass}} {{elif TEXT_EDITOR == 'ace':}} {{if filetype == 'python':}} {{elif filetype in ('html', 'load'):}} {{elif filetype == 'js':}} {{elif filetype == 'css':}} {{else:}} {{pass}} {{if TEXT_EDITOR_KEYBINDING == 'emacs':}} {{elif TEXT_EDITOR_KEYBINDING == 'vi':}} {{else:}} {{pass}} {{else:}} {{pass}} {{block sectionclass}}edit{{end}}

    {{=T('Editing file "%s"',filename)}}

    {{if functions:}}

    {{=B(T('exposes:'))}} {{=XML(', '.join([A(f,_href=URL(a=app,c=controller,f=f)).xml() for f in functions]))}} {{if editviewlinks:}}
    {{=B(T('edit views:'))}} {{=XML(', '.join([v.xml() for v in editviewlinks]))}} {{pass}}

    {{pass}}

    {{if filetype=='python':}} {{=A(SPAN(T('toggle breakpoint')), _value="breakpoint", _name="breakpoint", _onclick="return doToggleBreakpoint('%s','%s://%s%s',null);" % (filename, request.env['wsgi_url_scheme'], request.env['http_host'], URL(c='debug', f='toggle_breakpoint')), _class="button special btn btn-inverse")}} {{pass}} {{=button(URL('design',args=request.vars.app if request.vars.app else request.args[0], anchor=request.vars.id), T('back'))}} {{if edit_controller:}} {{=button(edit_controller, T('edit controller'))}} {{pass}} {{if view_link:}} {{=button(view_link, T('try view'))}} {{pass}} {{if request.args[1]=='models':}} {{=T('online designer')}} {{pass}} {{=T('docs')}}

    {{if TEXT_EDITOR == 'amy':}} {{elif TEXT_EDITOR == 'codemirror':}} {{elif TEXT_EDITOR == 'ace':}}
    {{=data}}
    {{else:}} {{pass}}
    {{=T('currently saved or')}} {{=T('to previous version.')}}

    {{if TEXT_EDITOR=='edit_area' and filetype=='html':}}

    {{=T('Key bindings for ZenCoding Plugin')}}

    {{elif TEXT_EDITOR == 'codemirror' and filetype=='html':}}

    {{=T('Key bindings for ZenCoding Plugin')}}

    {{elif TEXT_EDITOR == 'codemirror':}}

    {{=T("Key bindings")}}

    {{else:}}

    {{=T("Key bindings")}}

    {{pass}}