<%inherit file="/base/base.mako"/> <%def name="title()"> ${_('%s File Edit') % 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()"> ${_('Edit file')} @ ${h.show_id(c.commit)} <%def name="menu_bar_subnav()"> ${self.repo_menu(active='files')} <%def name="main()"> <% renderer = h.renderer_from_filename(c.f_path)%>
${self.breadcrumbs()}
${_('Path')}:
${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.f_path, request.GET.get('at'))}
${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)}
${h.link_to("r%s:%s" % (c.file.commit.idx,h.short_id(c.file.commit.raw_id)),h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.file.commit.raw_id))} ${h.format_byte_size_binary(c.file.size)} ${c.file.mimetype}
${_('history')} % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): % if not c.file.is_binary: %if True: ${h.link_to(_('source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),class_="btn btn-mini")} %else: ${h.link_to(_('annotation'),h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),class_="btn btn-mini")} %endif ${_('raw')} ${_('download')} % endif % endif
${'%s /' % c.file.dir_path if c.file.dir_path else c.file.dir_path} ${h.dropdownmenu('set_mode','plain',[('plain',_('plain'))],enable_filter=True)} ${h.dropdownmenu('line_wrap', 'off', [('on', _('on')), ('off', _('off')),])}

                
                
${_('Commit Message')}:
${h.reset('reset',_('Cancel'),class_="btn btn-small")} ${h.submit('commit',_('Commit changes'),class_="btn btn-small btn-success")}
${h.end_form()}