##// END OF EJS Templates
repository: fixed a bug when scoped token was attached to repository, admins were unable to remove that repository.
repository: fixed a bug when scoped token was attached to repository, admins were unable to remove that repository.

File last commit:

r2105:4ad1a937 default
r2482:1a1126ca default
Show More
files_delete.mako
75 lines | 2.7 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
<%def name="title()">
${_('%s Files Delete') % c.repo_name}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="menu_bar_nav()">
${self.menu_items(active='repositories')}
</%def>
<%def name="breadcrumbs_links()">
${_('Delete file')} @ ${h.show_id(c.commit)}
</%def>
<%def name="menu_bar_subnav()">
${self.repo_menu(active='files')}
</%def>
<%def name="main()">
<div class="box">
<div class="title">
${self.repo_page_title(c.rhodecode_db_repo)}
</div>
<div class="edit-file-title">
${self.breadcrumbs()}
</div>
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${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', class_="form-horizontal", request=request)}
templating: use .mako as extensions for template files.
r1282 <div class="edit-file-fieldset">
<div class="fieldset">
<div id="destination-label" class="left-label">
${_('Path')}:
</div>
<div class="right-content">
<span id="path-breadcrumbs">${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.f_path)}</span>
</div>
</div>
</div>
<div id="codeblock" class="codeblock delete-file-preview">
<div class="code-body">
%if c.file.is_binary:
${_('Binary file (%s)') % c.file.mimetype}
%else:
files: ported repository files controllers to pyramid views.
r1927 %if c.file.size < c.visual.cut_off_limit_file:
templating: use .mako as extensions for template files.
r1282 ${h.pygmentize(c.file,linenos=True,anchorlinenos=False,cssclass="code-highlight")}
%else:
files: ported repository files controllers to pyramid views.
r1927 ${_('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))}
templating: use .mako as extensions for template files.
r1282 %endif
%endif
</div>
</div>
<div class="edit-file-fieldset">
<div class="fieldset">
<div id="commit-message-label" class="commit-message-label left-label">
${_('Commit Message')}:
</div>
<div class="right-content">
<div class="message">
<textarea id="commit" name="message" placeholder="${c.default_message}"></textarea>
</div>
</div>
</div>
<div class="pull-right">
${h.reset('reset',_('Cancel'),class_="btn btn-small btn-danger")}
${h.submit('commit',_('Delete File'),class_="btn btn-small btn-danger-action")}
</div>
</div>
${h.end_form()}
</div>
</%def>