<%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')} % for branch in c.commit.branches: ${branch} % endfor

${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)}

- ${h.files_breadcrumbs(c.repo_name, c.rhodecode_db_repo.repo_type, c.commit.raw_id, c.f_path, c.rhodecode_db_repo.landing_ref_name, request.GET.get('at'), limit_items=True, hide_last_item=False, linkify_last_item=True, copy_path_icon=False)} /

${_('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()}