<% #-- # Copyright (C) 2010 Tero Hänninen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <% @page_title = "Update repository with zip" -%> <%= breadcrumbs_from(@root) -%>

Update repository with zip

<%= error_messages_for :repository -%> <% form_for(repo_owner_path(@repository.reload, [@repository.project, @repository]), :url => { :action => "update_repo_with_zip", :controller => "repositories" }, :html => {:multipart => true}, :builder => GitoriousFormBuilder) do |f| -%>

<%= t("views.repos.update_with_zip_hint") -%>

Insert the url for the zip or select a local zip file
Package url:
Local zip-file: <%=file_field_tag "local_package_file" %>

Target branch: <%= f.current_repos_heads("target_head", "target_head", @repository) -%>
<%= t("views.repos.target_branch_hint") -%>

<%= f.submit "Update repository" -%> <% # FIXME Add cancel-button %> <% end -%>