From 1052fdce571711c8664a92f594d968f434e71005 Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 1 Sep 2026 13:19:40 +0100 Subject: [PATCH] Rename "Collaborators" "Maintainers" for learning paths & topics. #1350 --- .../_collaborators_button.html.erb | 15 +++++++------ app/views/learning_path_topics/show.html.erb | 2 +- app/views/learning_paths/show.html.erb | 2 +- config/locales/en.yml | 22 ++++++++++++++----- .../learning_path_topics_controller_test.rb | 9 ++++++++ .../learning_paths_controller_test.rb | 9 ++++++++ 6 files changed, 44 insertions(+), 15 deletions(-) diff --git a/app/views/collaborations/_collaborators_button.html.erb b/app/views/collaborations/_collaborators_button.html.erb index 7538548c2..7df68f3a3 100644 --- a/app/views/collaborations/_collaborators_button.html.erb +++ b/app/views/collaborations/_collaborators_button.html.erb @@ -1,6 +1,8 @@ +<% association_name = resource.class.human_attribute_name(:collaborators) %> + <%= link_to '#', class: 'btn btn-default collaborators-button', data: { toggle: 'modal', target: '#collaborators-modal'} do %> - Collaborators + <%= association_name %> <% end %> <% if @learning_path_topic.collaborators.any? %> - + <% @learning_path_topic.collaborators.each do |collaborator| %>