<%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.repo_page_title(c.rhodecode_db_repo)}
${self.breadcrumbs()}
${_('Path')}:
${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.f_path)}
${h.secure_form(h.url.current(),method='post',id='eform')}
${h.link_to("r%s:%s" % (c.file.commit.idx,h.short_id(c.file.commit.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=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.url('files_home', repo_name=c.repo_name,revision=c.commit.raw_id,f_path=c.f_path),class_="btn btn-mini")} %else: ${h.link_to(_('annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.commit.raw_id,f_path=c.f_path),class_="btn btn-mini")} %endif ${h.link_to(_('raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.commit.raw_id,f_path=c.f_path),class_="btn btn-mini")} ${_('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()}