Commit 78816da5 authored by Jiaan Louw's avatar Jiaan Louw Committed by Olena Horal-Koretska

Resolve "Internationalize admin project view"

parent 232c82b5
......@@ -47,7 +47,6 @@ linters:
- "app/views/admin/hooks/edit.html.haml"
- "app/views/admin/logs/show.html.haml"
- "app/views/admin/projects/_projects.html.haml"
- "app/views/admin/projects/show.html.haml"
- "app/views/admin/requests_profiles/index.html.haml"
- "app/views/admin/runners/_runner.html.haml"
- "app/views/admin/runners/index.html.haml"
......
......@@ -5,10 +5,10 @@
.js-remove-member-modal
%h3.page-title
Project: #{@project.full_name}
= _('Project: %{name}') % { name: @project.full_name }
= link_to edit_project_path(@project), class: "btn btn-nr float-right" do
%i.fa.fa-pencil-square-o
Edit
= _('Edit')
%hr
- if @project.last_repository_check_failed?
.row
......@@ -22,57 +22,67 @@
.col-md-6
.card
.card-header
Project info:
= _('Project info:')
%ul.content-list
%li
%span.light Name:
%span.light
= _('Name:')
%strong
= link_to @project.name, project_path(@project)
%li
%span.light Namespace:
%span.light
= _('Namespace:')
%strong
- if @project.namespace
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
- else
Global
= s_('ProjectSettings|Global')
%li
%span.light Owned by:
%span.light
= _('Owned by:')
%strong
- if @project.owner
= link_to @project.owner_name, [:admin, @project.owner]
- else
(deleted)
= _('(deleted)')
%li
%span.light Created by:
%span.light
= _('Created by:')
%strong
= @project.creator.try(:name) || '(deleted)'
= @project.creator.try(:name) || _('(deleted)')
%li
%span.light Created on:
%span.light
= _('Created on:')
%strong
= @project.created_at.to_s(:medium)
%li
%span.light ID:
%span.light
= _('ID:')
%strong
= @project.id
%li
%span.light http:
%span.light
= _('http:')
%strong
= link_to @project.http_url_to_repo, project_path(@project)
%li
%span.light ssh:
%span.light
= _('ssh:')
%strong
= link_to @project.ssh_url_to_repo, project_path(@project)
- if @project.repository.exists?
%li
%span.light Gitaly storage name:
%span.light
= _('Gitaly storage name:')
%strong
= @project.repository.storage
%li
%span.light Gitaly relative path:
%span.light
= _('Gitaly relative path:')
%strong
= @project.repository.relative_path
......@@ -80,30 +90,36 @@
= render 'shared/storage_counter_statistics', storage_size: @project.statistics&.storage_size, storage_details: @project.statistics
%li
%span.light last commit:
%span.light
= _('last commit:')
%strong
= last_commit(@project)
%li
%span.light Git LFS status:
%span.light
= _('Git LFS status:')
%strong
= project_lfs_status(@project)
= link_to icon('question-circle'), help_page_path('topics/git/lfs/index')
- else
%li
%span.light repository:
%span.light
= _('repository:')
%strong.cred
does not exist
= _('does not exist')
- if @project.archived?
%li
%span.light archived:
%strong project is read-only
%span.light
= _('archived:')
%strong
= _('project is read-only')
= render_if_exists "shared_runner_status", project: @project
%li
%span.light access:
%span.light
= _('access:')
%strong
%span{ class: visibility_level_color(@project.visibility_level) }
= visibility_level_icon(@project.visibility_level)
......@@ -115,24 +131,24 @@
.card
.card-header
Transfer project
= s_('ProjectSettings|Transfer project')
.card-body
= form_for @project, url: transfer_admin_project_path(@project), method: :put do |f|
.form-group.row
.col-sm-3.col-form-label
= f.label :new_namespace_id, "Namespace"
= f.label :new_namespace_id, _("Namespace")
.col-sm-9
.dropdown
= dropdown_toggle('Search for Namespace', { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' })
= dropdown_toggle(_('Search for Namespace'), { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' })
.dropdown-menu.dropdown-select
= dropdown_title('Namespaces')
= dropdown_filter("Search for Namespace")
= dropdown_title(_('Namespaces'))
= dropdown_filter(_('Search for Namespace'))
= dropdown_content
= dropdown_loading
.form-group.row
.offset-sm-3.col-sm-9
= f.submit 'Transfer', class: 'btn btn-primary'
= f.submit _('Transfer'), class: 'btn btn-primary'
.card.repository-check
.card-header
......@@ -152,18 +168,18 @@
= link_to icon('question-circle'), help_page_path('administration/repository_checks')
.form-group
= f.submit 'Trigger repository check', class: 'btn btn-primary'
= f.submit _('Trigger repository check'), class: 'btn btn-primary'
.col-md-6
- if @group
.card
.card-header
%strong= @group.name
group members
= _('group members')
%span.badge.badge-pill= @group_members.size
.float-right
= link_to admin_group_path(@group), class: 'btn btn-sm' do
= icon('pencil-square-o', text: 'Manage access')
= icon('pencil-square-o', text: _('Manage access'))
%ul.content-list.members-list
= render partial: 'shared/members/member', collection: @group_members, as: :member, locals: { show_controls: false }
.card-footer
......@@ -174,10 +190,10 @@
.card
.card-header
%strong= @project.name
project members
= _('project members')
%span.badge.badge-pill= @project.users.size
.float-right
= link_to icon('pencil-square-o', text: 'Manage access'), project_project_members_path(@project), class: "btn btn-sm"
= link_to icon('pencil-square-o', text: _('Manage access')), project_project_members_path(@project), class: "btn btn-sm"
%ul.content-list.project_members.members-list
= render partial: 'shared/members/member', collection: @project_members, as: :member, locals: { show_controls: false }
.card-footer
......
......@@ -776,6 +776,9 @@ msgstr ""
msgid "(check progress)"
msgstr ""
msgid "(deleted)"
msgstr ""
msgid "(external source)"
msgstr ""
......@@ -7004,6 +7007,9 @@ msgstr ""
msgid "Created by me"
msgstr ""
msgid "Created by:"
msgstr ""
msgid "Created date"
msgstr ""
......@@ -11053,6 +11059,9 @@ msgstr ""
msgid "Git LFS objects will be synced in pull mirrors if LFS is %{docs_link_start}enabled for the project%{docs_link_end}. They will <strong>not</strong> be synced in push mirrors."
msgstr ""
msgid "Git LFS status:"
msgstr ""
msgid "Git global setup"
msgstr ""
......@@ -11254,6 +11263,12 @@ msgstr ""
msgid "Gitaly Servers"
msgstr ""
msgid "Gitaly relative path:"
msgstr ""
msgid "Gitaly storage name:"
msgstr ""
msgid "Gitaly|Address"
msgstr ""
......@@ -15351,9 +15366,18 @@ msgstr ""
msgid "Name:"
msgstr ""
msgid "Namespace"
msgstr ""
msgid "Namespace is empty"
msgstr ""
msgid "Namespace:"
msgstr ""
msgid "Namespaces"
msgstr ""
msgid "Namespaces to index"
msgstr ""
......@@ -16423,6 +16447,9 @@ msgstr ""
msgid "Owned by me"
msgstr ""
msgid "Owned by:"
msgstr ""
msgid "Owner"
msgstr ""
......@@ -18034,6 +18061,9 @@ msgstr ""
msgid "Project has too many %{label_for_message} to search"
msgstr ""
msgid "Project info:"
msgstr ""
msgid "Project is required when cluster_type is :project"
msgstr ""
......@@ -18289,6 +18319,9 @@ msgstr ""
msgid "ProjectSettings|Git Large File Storage (LFS)"
msgstr ""
msgid "ProjectSettings|Global"
msgstr ""
msgid "ProjectSettings|Internal"
msgstr ""
......@@ -18430,6 +18463,9 @@ msgstr ""
msgid "ProjectSettings|This will dictate the commit history when you merge a merge request"
msgstr ""
msgid "ProjectSettings|Transfer project"
msgstr ""
msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails."
msgstr ""
......@@ -20443,6 +20479,9 @@ msgstr ""
msgid "Search files"
msgstr ""
msgid "Search for Namespace"
msgstr ""
msgid "Search for a LDAP group"
msgstr ""
......@@ -24876,6 +24915,9 @@ msgstr ""
msgid "Track your project with Audit Events."
msgstr ""
msgid "Transfer"
msgstr ""
msgid "Transfer ownership"
msgstr ""
......@@ -24960,6 +25002,9 @@ msgstr ""
msgid "Trigger removed."
msgstr ""
msgid "Trigger repository check"
msgstr ""
msgid "Trigger this manual action"
msgstr ""
......@@ -27440,6 +27485,9 @@ msgid_plural "about %d hours"
msgstr[0] ""
msgstr[1] ""
msgid "access:"
msgstr ""
msgid "activated"
msgstr ""
......@@ -27482,6 +27530,9 @@ msgstr ""
msgid "archived"
msgstr ""
msgid "archived:"
msgstr ""
msgid "assign yourself"
msgstr ""
......@@ -27813,6 +27864,9 @@ msgstr ""
msgid "disabled"
msgstr ""
msgid "does not exist"
msgstr ""
msgid "does not have a supported extension. Only %{extension_list} are supported"
msgstr ""
......@@ -27916,6 +27970,9 @@ msgstr ""
msgid "group"
msgstr ""
msgid "group members"
msgstr ""
msgid "groups"
msgstr ""
......@@ -27931,6 +27988,9 @@ msgstr ""
msgid "here"
msgstr ""
msgid "http:"
msgstr ""
msgid "https://your-bitbucket-server"
msgstr ""
......@@ -28047,6 +28107,9 @@ msgstr ""
msgid "jigsaw is not defined"
msgstr ""
msgid "last commit:"
msgstr ""
msgid "latest"
msgstr ""
......@@ -28546,6 +28609,12 @@ msgstr ""
msgid "project avatar"
msgstr ""
msgid "project is read-only"
msgstr ""
msgid "project members"
msgstr ""
msgid "projects"
msgstr ""
......@@ -28587,6 +28656,9 @@ msgid_plural "replies"
msgstr[0] ""
msgstr[1] ""
msgid "repository:"
msgstr ""
msgid "reset it."
msgstr ""
......@@ -28659,6 +28731,9 @@ msgstr ""
msgid "spendCommand|%{slash_command} will update the sum of the time spent."
msgstr ""
msgid "ssh:"
msgstr ""
msgid "started"
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