<%inherit file="/base/base.mako"/> <%def name="title()"> ${_('{} Files Upload').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()">
## Template for uploads
% if c.replace_binary: ${_('Replace content of')} ${c.f_path} @ ${h.show_id(c.commit)} % else: ${_('Upload new file')} @ ${h.show_id(c.commit)} % endif % if c.commit.branch: ${c.commit.branch} % endif
% if not c.replace_binary: <% form_url = h.route_path('repo_files_upload_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path) %>
% else: <% form_url = h.route_path('repo_files_replace_binary', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path) %> % endif

% if not c.replace_binary: ${_("Drag'n Drop files here or")} ${_('Choose your files')}.
% else: ${_("Drag'n Drop file here or")} ${_('Choose your file')}.
% endif
${h.submit('commit_btn',_('Commit changes'), class_="btn btn-small btn-success")}
##${h.end_form()}