app/views/generic_files/_versioning.html.erb in sufia-3.5.0 vs app/views/generic_files/_versioning.html.erb in sufia-3.6.0

- old
+ new

@@ -1,24 +1,8 @@ -<%# -Copyright © 2012 The Pennsylvania State University - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -%> - <div id="versioning_display" class="tab-pane"> <h2 class="non lower">Versions</h2> <div class="well"> - <%= form_for @generic_file, :url => sufia.generic_file_path, :html => {:multipart => true, :class => 'form-horizontal'} do |f| %> + <%= form_for @generic_file, :url => sufia.generic_file_path(@generic_file), :html => {:multipart => true, :class => 'form-horizontal'} do |f| %> <%= hidden_field_tag('redirect_tab', 'versions') %> <h3>Upload New Version</h3> <p>Upload a new version of this file from your computer.</p> <p id="upload_field"> <%= file_field_tag "filedata" %>