Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace all occurrences of settings_project_path && make toolbar and menu title consistent

Henriette Dinger67dd3bcb46af
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 45a4bc28316..b55292988a6 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -43,7 +43,6 @@ class ApplicationController < ActionController::Base
include Redmine::I18n
include HookHelper
include ErrorsHelper
- include ApplicationHelper
include ::OpenProject::Authentication::SessionExpiry
include AdditionalUrlHelpers
include OpenProjectErrorHelper
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index 8d8eea83977..047bf00d63b 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -47,7 +47,7 @@ class CategoriesController < ApplicationController
respond_to do |format|
format.html do
flash[:notice] = l(:notice_successful_create)
- redirect_to settings_project_path(@project, tab: 'categories')
+ redirect_to settings_categories_project_path(@project)
end
format.js do
render locals: { project: @project, category: @category }
@@ -69,7 +69,7 @@ class CategoriesController < ApplicationController
@category.attributes = permitted_params.category
if @category.save
flash[:notice] = l(:notice_successful_update)
- redirect_to settings_project_path(@project, tab: 'categories')
+ redirect_to settings_categories_project_path(@project)
else
render action: 'edit'
end
@@ -80,12 +80,12 @@ class CategoriesController < ApplicationController
if @issue_count == 0
# No issue assigned to this category
@category.destroy
- redirect_to settings_project_path(@project, tab: 'categories')
+ redirect_to settings_categories_project_path(@project)
return
elsif params[:todo]
reassign_to = @project.categories.find_by(id: params[:reassign_to_id]) if params[:todo] == 'reassign'
@category.destroy(reassign_to)
- redirect_to settings_project_path(@project, tab: 'categories')
+ redirect_to settings_categories_project_path(@project)
return
end
@categories = @project.categories - [@category]
diff --git a/app/controllers/copy_projects_controller.rb b/app/controllers/copy_projects_controller.rb
index c06cce4690c..a2b897acfa2 100644
--- a/app/controllers/copy_projects_controller.rb
+++ b/app/controllers/copy_projects_controller.rb
@@ -77,7 +77,7 @@ class CopyProjectsController < ApplicationController
end
def origin
- params[:coming_from] == 'admin' ? projects_path : settings_project_path(@project.id)
+ params[:coming_from] == 'admin' ? projects_path : settings_generic_project_path(@project.id)
end
def enqueue_copy_job
diff --git a/app/controllers/project_enumerations_controller.rb b/app/controllers/project_enumerations_controller.rb
index 45b331bba06..21eec403446 100644
--- a/app/controllers/project_enumerations_controller.rb
+++ b/app/controllers/project_enumerations_controller.rb
@@ -42,7 +42,7 @@ class ProjectEnumerationsController < ApplicationController
flash[:notice] = l(:notice_successful_update)
end
- redirect_to settings_project_path(@project, tab: 'activities')
+ redirect_to settings_activities_project_path(@project)
end
def destroy
@@ -50,6 +50,6 @@ class ProjectEnumerationsController < ApplicationController
flash[:notice] = l(:notice_successful_update)
- redirect_to settings_project_path(@project, tab: 'activities')
+ redirect_to settings_activities_project_path(@project)
end
end
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index b1f91cf7492..2b7e3e420f6 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -108,7 +108,7 @@ class ProjectsController < ApplicationController
@errors = service_call.errors
flash[:notice] = t(:notice_successful_update) if service_call.success?
- redirect_to settings_project_path(@altered_project)
+ redirect_to settings_generic_project_path(@altered_project)
end
def update_identifier
@@ -119,7 +119,7 @@ class ProjectsController < ApplicationController
if service_call.success?
flash[:notice] = I18n.t(:notice_successful_update)
- redirect_to settings_project_path(@project)
+ redirect_to settings_generic_project_path(@project)
else
render action: 'identifier'
end
@@ -132,7 +132,7 @@ class ProjectsController < ApplicationController
flash[:error] = @project.errors.full_messages
end
- redirect_to settings_project_path(@project.identifier, tab: 'types')
+ redirect_to settings_types_project_path(@project.identifier)
end
def modules
@@ -140,7 +140,7 @@ class ProjectsController < ApplicationController
# Ensure the project is touched to update its cache key
@project.touch
flash[:notice] = I18n.t(:notice_successful_update)
- redirect_to settings_project_path(@project, tab: 'modules')
+ redirect_to settings_modules_project_path(@project)
end
def custom_fields
@@ -154,7 +154,7 @@ class ProjectsController < ApplicationController
raise ActiveRecord::Rollback
end
end
- redirect_to settings_project_path(@project, tab: 'custom_fields')
+ redirect_to settings_custom_fields_project_path(@project)
end
def archive
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb
index 9257bb612a7..a218f290c6a 100644
--- a/app/controllers/versions_controller.rb
+++ b/app/controllers/versions_controller.rb
@@ -28,7 +28,7 @@
#++
class VersionsController < ApplicationController
- menu_item :roadmap
+ menu_item :settings_versions
model_object Version
before_action :find_model_object, except: %i[index new create close_completed]
before_action :find_project_from_association, except: %i[index new create close_completed]
@@ -103,7 +103,7 @@ class VersionsController < ApplicationController
if request.put?
@project.close_completed_versions
end
- redirect_to settings_project_path(@project, tab: 'versions')
+ redirect_to settings_versions_project_path(@project)
end
def destroy
@@ -116,13 +116,13 @@ class VersionsController < ApplicationController
flash[:error] = call.errors.full_messages
end
- redirect_to settings_project_path(@project, tab: 'versions')
+ redirect_to settings_versions_project_path(@projectsettings_versions_project_path)
end
private
def redirect_back_or_version_settings
- redirect_back_or_default(settings_project_path(@project, tab: 'versions'))
+ redirect_back_or_default(settings_versions_project_path(@project))
end
def find_project
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a53c4c8f37b..271307ce1a6 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -527,12 +527,4 @@ module ApplicationHelper
s += raw '<br /><em>' + rules + '</em>' unless rules.empty?
s
end
-
- def settings_project_path(project, opts = {})
- if opts[:tab]
- url_for controller: "project_settings/#{opts[:tab]}", action: 'show', only_path: true, id: project
- else
- url_for controller: "project_settings/generic", action: 'show', only_path: true, id: project
- end
- end
end
diff --git a/app/helpers/project_settings_helper.rb b/app/helpers/project_settings_helper.rb
index 0a1b5d6428a..24820f5343a 100644
--- a/app/helpers/project_settings_helper.rb
+++ b/app/helpers/project_settings_helper.rb
@@ -40,7 +40,12 @@ module ProjectSettingsHelper
{
name: 'modules',
action: { controller: '/project_settings/modules', action: 'show' },
- label: :label_module_plural
+ label: :label_enabled_project_modules
+ },
+ {
+ name: 'types',
+ action: { controller: '/project_settings/types', action: 'show' },
+ label: :label_work_package_types
},
{
name: 'custom_fields',
@@ -66,11 +71,6 @@ module ProjectSettingsHelper
name: 'activities',
action: { controller: '/project_settings/activities', action: 'show' },
label: :enumeration_activities
- },
- {
- name: 'types',
- action: { controller: '/project_settings/types', action: 'show' },
- label: :label_work_package_types
}
]
end
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb
index dfd69cee82e..332116471e7 100644
--- a/app/helpers/repositories_helper.rb
+++ b/app/helpers/repositories_helper.rb
@@ -29,7 +29,7 @@
module RepositoriesHelper
def settings_repository_tab_path
- settings_project_path(@project, tab: 'repository')
+ settings_repository_project_path(@project)
end
def format_revision(revision)
diff --git a/app/views/project_settings/activities.html.erb b/app/views/project_settings/activities.html.erb
index f36ff4b7ad6..bc554423f8a 100644
--- a/app/views/project_settings/activities.html.erb
+++ b/app/views/project_settings/activities.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_enabled_project_activities) %>
+<%= toolbar title: l(:enumeration_activities) %>
<% if @project.activities(true).any? %>
<%= form_tag project_enumerations_path(@project),
diff --git a/app/views/project_settings/categories.html.erb b/app/views/project_settings/categories.html.erb
index a035c1e489a..8887f6cf9cb 100644
--- a/app/views/project_settings/categories.html.erb
+++ b/app/views/project_settings/categories.html.erb
@@ -27,13 +27,13 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_available_project_work_package_categories) do %>
+<%= toolbar title: l(:label_work_package_category_plural) do %>
<% if current_user.allowed_to?(:manage_categories, @project) %>
<li class="toolbar-item">
<%= link_to_if_authorized({ controller: '/categories', action: 'new', project_id: @project },
{ aria: { label: t(:label_work_package_category_new) },
title: t(:label_work_package_category_new),
- class: 'button -highlight'}) do %>
+ class: 'button -alt-highlight'}) do %>
<%= op_icon('icon-add button--icon') %>
<span class="button--text"><%= t('activerecord.models.category') %></span>
<% end %>
@@ -99,17 +99,6 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
</div>
- <% if @project.categories.any? %>
- <div class="generic-table--action-buttons">
- <%= link_to_if_authorized({ controller: '/categories', action: 'new', project_id: @project },
- { class: 'button -alt-highlight',
- aria: {label: t(:label_work_package_category_new)},
- title: t(:label_work_package_category_new)}) do %>
- <%= op_icon('button--icon icon-add') %>
- <span class="button--text"><%= t('activerecord.models.category') %></span>
- <% end %>
- </div>
- <% end %>
<% else %>
<%= no_results_box action_url: new_project_category_path(@project),
display_action: authorize_for('categories', 'new'),
diff --git a/app/views/project_settings/custom_fields.html.erb b/app/views/project_settings/custom_fields.html.erb
index b8857a0ae1c..edb477b70e3 100644
--- a/app/views/project_settings/custom_fields.html.erb
+++ b/app/views/project_settings/custom_fields.html.erb
@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_enabled_project_custom_fields) do %>
+<%= toolbar title: l(:label_custom_field_plural) do %>
<% if current_user.admin? %>
<li class="toolbar-item">
<%= link_to new_custom_field_path(type: 'WorkPackageCustomField'),
@@ -54,7 +54,9 @@ See docs/COPYRIGHT.rdoc for more details.
work_package_custom_fields: @wp_custom_fields
} %>
- <p><%= form.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %></p>
+ <div class="generic-table--action-buttons">
+ <%= form.button l(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+ </div>
<% end %>
<% else %>
<%= no_results_box custom_title: t('projects.settings.custom_fields.no_results_title_text') %>
diff --git a/app/views/project_settings/types.html.erb b/app/views/project_settings/types.html.erb
index 8cf5cd97309..888150dfaf9 100644
--- a/app/views/project_settings/types.html.erb
+++ b/app/views/project_settings/types.html.erb
@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_available_project_work_package_types) %>
+<%= toolbar title: l(:label_work_package_types) %>
<% if Type.all.any? %>
<%= form_for @project,
diff --git a/app/views/project_settings/versions.html.erb b/app/views/project_settings/versions.html.erb
index d32286dedf7..3375a2fe1a2 100644
--- a/app/views/project_settings/versions.html.erb
+++ b/app/views/project_settings/versions.html.erb
@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_available_project_versions) do %>
+<%= toolbar title: l(:label_version_plural) do %>
<% if current_user.allowed_to?(:manage_versions, @project) %>
<li class="toolbar-item">
<%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project },
@@ -163,15 +163,14 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
</div>
- <div class="generic-table--action-buttons">
- <%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project },
- { class: 'button -alt-highlight',
- aria: {label: t(:label_version_new)},
- title: t(:label_version_new)}) do %>
- <%= op_icon('button--icon icon-add') %>
- <span class="button--text"><%= t('activerecord.models.version') %></span>
- <% end %>
- </div>
+ <% if @project.versions.any? %>
+ <div class="generic-table--action-buttons">
+ <%= link_to l(:label_close_versions),
+ close_completed_project_versions_path(@project),
+ method: :put,
+ class: 'button' %>
+ </div>
+ <% end %>
<% else %>
<%= no_results_box action_url: new_project_version_path(@project),
display_action: authorize_for('versions', 'new'),
@@ -179,11 +178,3 @@ See docs/COPYRIGHT.rdoc for more details.
custom_action_text: t('projects.settings.versions.no_results_content_text')
%>
<% end %>
-
-<% if @project.versions.any? %>
- <div class="contextual">
- <%= link_to l(:label_close_versions),
- close_completed_project_versions_path(@project),
- method: :put %>
- </div>
-<% end %>
diff --git a/app/views/projects/_edit.html.erb b/app/views/projects/_edit.html.erb
index 8b38450fb0d..ce5d9d31fca 100644
--- a/app/views/projects/_edit.html.erb
+++ b/app/views/projects/_edit.html.erb
@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_project_settings) do %>
+<%= toolbar title: l(:label_information_plural) do %>
<% if User.current.allowed_to?(:add_subprojects, @project) %>
<li class="toolbar-item">
<%= link_to new_project_path(parent_id: @project.id),
diff --git a/app/views/projects/identifier.html.erb b/app/views/projects/identifier.html.erb
index 4bd3f3d7bfc..94e80304252 100644
--- a/app/views/projects/identifier.html.erb
+++ b/app/views/projects/identifier.html.erb
@@ -50,7 +50,7 @@ See docs/COPYRIGHT.rdoc for more details.
<%= f.submit l(:button_update), class: 'button -highlight -with-icon icon-checkmark' %>
</span>
<span>
- <%= link_to settings_project_path(@project), class: 'button' do %>
+ <%= link_to settings_generic_project_path(@project), class: 'button' do %>
<span class="button--text"><%= l(:button_cancel) %></span>
<% end %>
</span>
diff --git a/app/views/repositories/_repository_header.html.erb b/app/views/repositories/_repository_header.html.erb
index a0ea2124e5d..10dd1c29018 100644
--- a/app/views/repositories/_repository_header.html.erb
+++ b/app/views/repositories/_repository_header.html.erb
@@ -73,7 +73,7 @@ See docs/COPYRIGHT.rdoc for more details.
{ repository: @repository, project: @project, repository_empty: empty }) %>
<% if User.current.allowed_to?(:manage_repository, @project) %>
<li class="toolbar-item -icon-only">
- <%= link_to settings_project_path(@project, tab: 'repository'),
+ <%= link_to settings_repository_project_path(@project),
class: 'button', title: l(:label_settings) do %>
<%= op_icon('button--icon icon-settings') %>
<% end %>
diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb
index 9ed63f42943..b76ecd4f02d 100644
--- a/app/views/repositories/committers.html.erb
+++ b/app/views/repositories/committers.html.erb
@@ -81,7 +81,7 @@ See docs/COPYRIGHT.rdoc for more details.
<hr class="form--separator" />
<p>
<%= submit_tag l(:button_update), class: 'button -highlight' %>
- <%= link_to settings_project_path(id: @project.id, tab: 'repository'), class: 'button' do %>
+ <%= link_to settings_repository_project_path(@project.id), class: 'button' do %>
<span class="button--text"><%= l(:button_cancel) %></span>
<% end %>
</p>
diff --git a/config/routes.rb b/config/routes.rb
index ec370af06b2..bdafdda3de8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -163,14 +163,6 @@ OpenProject::Application.routes.draw do
resources :projects, except: %i[show edit] do
member do
- # this route let's you access the project specific settings (by tab)
- #
- # settings_project_path(@project)
- # => "/projects/1/settings"
- #
- # settings_project_path(@project, tab: 'members')
- # => "/projects/1/settings/members"
- #
ProjectSettingsHelper.project_settings_tabs.each do |tab|
get "settings/#{tab[:name]}", controller: "project_settings/#{tab[:name]}", action: 'show', as: "settings_#{tab[:name]}"
end
diff --git a/lib/api/v3/work_packages/create_form_representer.rb b/lib/api/v3/work_packages/create_form_representer.rb
index 93674552ab0..a732e3d7b40 100644
--- a/lib/api/v3/work_packages/create_form_representer.rb
+++ b/lib/api/v3/work_packages/create_form_representer.rb
@@ -31,7 +31,6 @@ module API
module V3
module WorkPackages
class CreateFormRepresenter < FormRepresenter
- include ApplicationHelper
link :self do
{
href: api_v3_paths.create_work_package_form,
@@ -72,8 +71,7 @@ module API
current_user_allowed_to(:edit_project,
context: represented.project))
{
- href: settings_project_path(represented.project.identifier,
- tab: 'custom_fields'),
+ href: settings_custom_fields_project_path(represented.project.identifier),
type: 'text/html',
title: I18n.t('label_custom_field_plural')
}
diff --git a/lib/api/v3/work_packages/create_project_form_representer.rb b/lib/api/v3/work_packages/create_project_form_representer.rb
index 073f00500d9..310603f022c 100644
--- a/lib/api/v3/work_packages/create_project_form_representer.rb
+++ b/lib/api/v3/work_packages/create_project_form_representer.rb
@@ -31,7 +31,6 @@ module API
module V3
module WorkPackages
class CreateProjectFormRepresenter < FormRepresenter
- include ApplicationHelper
link :self do
{
href: api_v3_paths.create_project_work_package_form(represented.project_id),
@@ -69,8 +68,7 @@ module API
current_user_allowed_to(:edit_project,
context: represented.project)
{
- href: settings_project_path(represented.project.identifier,
- tab: 'custom_fields'),
+ href: settings_custom_fields_project_path(represented.project.identifier),
type: 'text/html',
title: I18n.t('label_custom_field_plural')
}
diff --git a/lib/api/v3/work_packages/work_package_collection_representer.rb b/lib/api/v3/work_packages/work_package_collection_representer.rb
index 915150492ed..e8c8a954d55 100644
--- a/lib/api/v3/work_packages/work_package_collection_representer.rb
+++ b/lib/api/v3/work_packages/work_package_collection_representer.rb
@@ -32,7 +32,6 @@ module API
module V3
module WorkPackages
class WorkPackageCollectionRepresenter < ::API::Decorators::OffsetPaginatedCollection
- include ApplicationHelper
element_decorator ::API::V3::WorkPackages::WorkPackageRepresenter
def initialize(models,
@@ -121,7 +120,7 @@ module API
if project.present? &&
(current_user.try(:admin?) || current_user_allowed_to(:edit_project, context: project))
{
- href: settings_project_path(project.identifier, tab: 'custom_fields'),
+ href: settings_custom_fields_project_path(project.identifier),
type: 'text/html',
title: I18n.t('label_custom_field_plural')
}
diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rb
index 4ac9339bc15..4b4f8916af6 100644
--- a/lib/api/v3/work_packages/work_package_representer.rb
+++ b/lib/api/v3/work_packages/work_package_representer.rb
@@ -37,7 +37,6 @@ module API
include API::Decorators::FormattableProperty
include API::Caching::CachedRepresenter
include ::API::V3::Attachments::AttachableRepresenterMixin
- include ApplicationHelper
extend ::API::V3::Utilities::CustomFieldInjector::RepresenterClass
cached_representer key_parts: %i(project),
@@ -150,7 +149,7 @@ module API
next if represented.project.nil?
{
- href: settings_project_path(represented.project.identifier, tab: 'custom_fields'),
+ href: settings_custom_fields_project_path(represented.project.identifier),
type: 'text/html',
title: "Custom fields"
}
diff --git a/lib/open_project/object_linking.rb b/lib/open_project/object_linking.rb
index 752b1b42a69..e97ecfaf198 100644
--- a/lib/open_project/object_linking.rb
+++ b/lib/open_project/object_linking.rb
@@ -100,17 +100,13 @@ module OpenProject
# Examples:
#
# link_to_project(project) # => link to the specified project overview
- # link_to_project(project, action:'settings') # => link to project settings
# link_to_project(project, {only_path: false}, class: "project") # => 3rd arg adds html options
# link_to_project(project, {}, class: "project") # => html options with default url (project overview)
#
def link_to_project(project, options = {}, html_options = nil, show_icon = false)
project_name = project_link_name(project, show_icon)
- if project.active? && options.delete(:action) == 'settings'
- # backwards compatibility
- link_to(project_name, settings_project_path_or_url(project, options), html_options)
- elsif project.active?
+ if project.active?
link_to(project_name, project_path_or_url(project, options), html_options)
else
project_name
diff --git a/modules/backlogs/app/views/project_settings/versions.html.erb b/modules/backlogs/app/views/project_settings/versions.html.erb
index e46a2c00110..1001ccdf9af 100644
--- a/modules/backlogs/app/views/project_settings/versions.html.erb
+++ b/modules/backlogs/app/views/project_settings/versions.html.erb
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details.
++#%>
-<%= toolbar title: l(:label_available_project_versions) do %>
+<%= toolbar title: l(:label_version_plural) do %>
<% if current_user.allowed_to?(:manage_versions, @project) %>
<li class="toolbar-item">
<%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project },
@@ -166,15 +166,14 @@ See doc/COPYRIGHT.rdoc for more details.
</table>
</div>
</div>
- <div class="generic-table--action-buttons">
- <%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project },
- { class: 'button -alt-highlight',
- aria: {label: t(:label_version_new)},
- title: t(:label_version_new)}) do %>
- <%= op_icon('button--icon icon-add') %>
- <span class="button--text"><%= l(:label_version) %></span>
- <% end %>
- </div>
+ <% if @project.versions.any? %>
+ <div class="generic-table--action-buttons">
+ <%= link_to l(:label_close_versions),
+ close_completed_project_versions_path(@project),
+ method: :put,
+ class: 'button' %>
+ </div>
+ <% end %>
<% else %>
<%= no_results_box action_url: new_project_version_path(@project),
display_action: authorize_for('versions', 'new'),
@@ -182,11 +181,3 @@ See doc/COPYRIGHT.rdoc for more details.
custom_action_text: t('projects.settings.versions.no_results_content_text')
%>
<% end %>
-
-<% if @project.versions.any? %>
- <div class="contextual">
- <%= link_to l(:label_close_versions),
- close_completed_project_versions_path(@project),
- method: :put %>
- </div>
-<% end %>