Commit 50ecd02b authored by Bob Van Landuyt's avatar Bob Van Landuyt Committed by Paul Slaughter

Translate repository-check messages on admin page.

parent f65058df
......@@ -14,9 +14,9 @@
.col-md-12
.card
.card-header.alert.alert-danger
Last repository check
= "(#{time_ago_with_tooltip(@project.last_repository_check_at)})"
failed. See the 'repocheck.log' file for error messages.
- last_check_message = _("Last repository check (%{last_check_timestamp}) failed. See the 'repocheck.log' file for error messages.")
- last_check_message = last_check_message % { last_check_timestamp: time_ago_with_tooltip(@project.last_repository_check_at) }
= last_check_message.html_safe
.row
.col-md-6
.card
......@@ -133,22 +133,18 @@
.card.repository-check
.card-header
Repository check
= _("Repository check")
.card-body
= form_for @project, url: repository_check_admin_project_path(@project), method: :post do |f|
.form-group
- if @project.last_repository_check_at.nil?
This repository has never been checked.
= _("This repository has never been checked.")
- elsif @project.last_repository_check_failed?
- failed_message = _("This repository was last checked %{last_check_timestamp}. The check %{strong_start}failed.%{strong_end} See the See the 'repocheck.log' file for error messages.")
- failed_message = failed_message % { last_check_timestamp: @project.last_repository_check_at.to_s(:medium), strong_start: "<strong class='cred'>", strong_end: "</strong>" }
= failed_message.html_safe
- else
This repository was last checked
= @project.last_repository_check_at.to_s(:medium) + '.'
The check
- if @project.last_repository_check_failed?
= succeed '.' do
%strong.cred failed
See the 'repocheck.log' file for error messages.
- else
passed.
= _("This repository was last checked %{last_check_timestamp}. The check passed.") % { last_check_timestamp: @project.last_repository_check_at.to_s(:medium) }
= link_to icon('question-circle'), help_page_path('administration/repository_checks')
......
......@@ -12222,6 +12222,9 @@ msgstr ""
msgid "Last reply by"
msgstr ""
msgid "Last repository check (%{last_check_timestamp}) failed. See the 'repocheck.log' file for error messages."
msgstr ""
msgid "Last repository check run"
msgstr ""
......@@ -17712,6 +17715,9 @@ msgstr ""
msgid "Repository URL"
msgstr ""
msgid "Repository check"
msgstr ""
msgid "Repository check was triggered."
msgstr ""
......@@ -21778,9 +21784,18 @@ msgstr ""
msgid "This repository"
msgstr ""
msgid "This repository has never been checked."
msgstr ""
msgid "This repository is currently empty. A new Auto DevOps pipeline will be created after a new file has been pushed to a branch."
msgstr ""
msgid "This repository was last checked %{last_check_timestamp}. The check %{strong_start}failed.%{strong_end} See the See the 'repocheck.log' file for error messages."
msgstr ""
msgid "This repository was last checked %{last_check_timestamp}. The check passed."
msgstr ""
msgid "This runner will only run on pipelines triggered on protected branches"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment