diff --git a/app/controllers/projects/pipeline_schedules_controller.rb b/app/controllers/projects/pipeline_schedules_controller.rb index fd5b89298a7729ac1af6755709d34d389299cbb1..6b721c8fdf7ff8e7618fa361f64fcc42b42643fc 100644 --- a/app/controllers/projects/pipeline_schedules_controller.rb +++ b/app/controllers/projects/pipeline_schedules_controller.rb @@ -50,8 +50,8 @@ class Projects::PipelineSchedulesController < Projects::ApplicationController job_id = RunPipelineScheduleWorker.perform_async(schedule.id, current_user.id) if job_id - link_to_pipelines = view_context.link_to(_('Pipelines page'), project_pipelines_path(@project)) - message = _("Successfully scheduled a pipeline to run. Go to the %{link_to_pipelines} for details.").html_safe % { link_to_pipelines: link_to_pipelines } + pipelines_link_start = "" + message = _("Successfully scheduled a pipeline to run. Go to the %{pipelines_link_start}Pipelines page%{pipelines_link_end} for details.") % { pipelines_link_start: pipelines_link_start, pipelines_link_end: "" } flash[:notice] = message.html_safe else flash[:alert] = _('Unable to schedule a pipeline to run immediately') diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 1e6f04c78154ddd7b0d88713397572ebdc11d8f7..fcbd34a05d513351532fa1c44b4232c6297dfe1c 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -5833,9 +5833,6 @@ msgstr "" msgid "Pipelines for last year" msgstr "" -msgid "Pipelines page" -msgstr "" - msgid "Pipelines settings for '%{project_name}' were successfully updated." msgstr "" @@ -7708,7 +7705,7 @@ msgstr "" msgid "Successfully removed email." msgstr "" -msgid "Successfully scheduled a pipeline to run. Go to the %{link_to_pipelines} for details." +msgid "Successfully scheduled a pipeline to run. Go to the %{pipelines_link_start}Pipelines page%{pipelines_link_end} for details." msgstr "" msgid "Successfully unblocked"