Version routes cleanup in views.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7936 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-26 14:53:52 +00:00
parent 307e97cc03
commit bb8e2beeac
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -1,6 +1,6 @@
<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 %>

View File

@ -1,6 +1,6 @@
<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 %>