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

adjust link on caption

Bruno Pagno05237ca11ac0
diff --git a/app/forms/projects/settings/work_packages/activities/form.rb b/app/forms/projects/settings/work_packages/activities/form.rb
index 8c468c3381c..3dd3a1f37ff 100644
--- a/app/forms/projects/settings/work_packages/activities/form.rb
+++ b/app/forms/projects/settings/work_packages/activities/form.rb
@@ -33,7 +33,7 @@ module Projects::Settings::WorkPackages::Activities
f.check_box(
name: :enabled_comments_with_restricted_visibility,
label: I18n.t("settings.work_packages.activities.enable_comments_with_restricted_visibility"),
- caption: I18n.t("settings.work_packages.activities.helper_text"),
+ caption: caption_text,
checked: model.project.enabled_comments_with_restricted_visibility
)
@@ -47,5 +47,15 @@ module Projects::Settings::WorkPackages::Activities
def initialize(**_options)
super()
end
+
+ private
+
+ def caption_text
+ link = render(Primer::Beta::Link.new(href: OpenProject::Static::Links.url_for(:user_guides_work_package_activity))) do
+ I18n.t("label_learn_more")
+ end
+
+ I18n.t("settings.work_packages.activities.helper_text", link:).html_safe
+ end
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 259f2c27f40..09366fb45bd 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -4020,7 +4020,7 @@ en:
not_allowed_text: "You do not have the necessary permissions to view this page."
activities:
enable_comments_with_restricted_visibility: "Enable restricted visibility comments"
- helper_text: "Restricted comments allow an internal team to communicate amongst themselves privately. These are only visible to select roles that have the necessary permissions and will not be visible publicly."
+ helper_text: "Restricted comments allow an internal team to communicate amongst themselves privately. These are only visible to select roles that have the necessary permissions and will not be visible publicly. %{link}"
text_formatting:
markdown: "Markdown"