<%inherit file="/base/base.mako"/> <%def name="title()"> ${_('{} Files Delete').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()">
${_('Delete file')} @ ${h.show_id(c.commit)} % if c.commit.branch: ${c.commit.branch} % endif
${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)}
  • %if c.file.is_binary: ${_('Binary file (%s)') % c.file.mimetype} %else: %if c.file.size < c.visual.cut_off_limit_file: ${h.pygmentize(c.file,linenos=True,anchorlinenos=False,cssclass="code-highlight")} %else: ${_('File size {} is bigger then allowed limit {}. ').format(h.format_byte_size_binary(c.file.size), h.format_byte_size_binary(c.visual.cut_off_limit_file))} ${h.link_to(_('Show as raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} %endif %endif
    ${h.submit('commit',_('Commit changes'),class_="btn btn-small btn-danger-action")}
    ${h.end_form()}