<%inherit file="/base/base.mako"/> <%def name="title()"> ${_('{} Files Add').format(c.repo_name)} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="menu_bar_nav()"> ${self.menu_items(active='repositories')} <%def name="breadcrumbs_links()"> <%def name="menu_bar_subnav()"> ${self.repo_menu(active='files')} <%def name="main()">
${_('Add new file')} @ ${h.show_id(c.commit)} % if c.commit.branch: ${c.commit.branch} % endif
${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)}
${_('Edit')}
${_('Preview')}
${h.dropdownmenu('line_wrap', 'off', [('on', _('Line wraps on')), ('off', _('line wraps off'))], extra_classes=['last-item'])}
${h.dropdownmenu('set_mode','plain',[('plain', _('plain'))], enable_filter=True)}

                    
                    
${h.submit('commit_btn',_('Commit changes'), class_="btn btn-small btn-success")}
${h.end_form()}