Commit b751dc0b authored by jplang's avatar jplang
Browse files

Version routes cleanup in views.

git-svn-id: https://svn.redmine.org/redmine/trunk@7936 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 79f95a8d
......@@ -38,4 +38,4 @@
<% end %>
</div>
<p><%= link_to_if_authorized l(:label_version_new), {:controller => 'versions', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %></p>
<p><%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p>
<h2><%=l(:label_version)%></h2>
<% labelled_tabular_form_for :version, @version, :url => version_path(@version), :html => {:method => :put} do |f| %>
<% labelled_tabular_form_for @version do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<% end %>
......
<h2><%=l(:label_version_new)%></h2>
<% labelled_tabular_form_for :version, @version, :url => project_versions_path(@project) do |f| %>
<% labelled_tabular_form_for @version, :url => project_versions_path(@project) do |f| %>
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<% end %>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment