Commit c9c8b30a authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Ezekiel Kigbo

Externalize strings in projects/index.html.haml

parent 8e70f39c
...@@ -18,20 +18,20 @@ ...@@ -18,20 +18,20 @@
.search-holder .search-holder
= render 'shared/projects/search_form', autofocus: true, admin_view: true = render 'shared/projects/search_form', autofocus: true, admin_view: true
.dropdown .dropdown
- toggle_text = 'Namespace' - toggle_text = _('Namespace')
- if params[:namespace_id].present? - if params[:namespace_id].present?
= hidden_field_tag :namespace_id, params[:namespace_id] = hidden_field_tag :namespace_id, params[:namespace_id]
- namespace = Namespace.find(params[:namespace_id]) - namespace = Namespace.find(params[:namespace_id])
- toggle_text = "#{namespace.kind}: #{namespace.full_path}" - toggle_text = "#{namespace.kind}: #{namespace.full_path}"
= dropdown_toggle(toggle_text, { toggle: 'dropdown', is_filter: 'true' }, { toggle_class: 'js-namespace-select large' }) = dropdown_toggle(toggle_text, { toggle: 'dropdown', is_filter: 'true' }, { toggle_class: 'js-namespace-select large' })
.dropdown-menu.dropdown-select.dropdown-menu-right .dropdown-menu.dropdown-select.dropdown-menu-right
= dropdown_title('Namespaces') = dropdown_title(_('Namespaces'))
= dropdown_filter("Search for Namespace") = dropdown_filter(_("Search for Namespace"))
= dropdown_content = dropdown_content
= dropdown_loading = dropdown_loading
= render 'shared/projects/dropdown' = render 'shared/projects/dropdown'
= link_to new_project_path, class: 'gl-button btn btn-confirm' do = link_to new_project_path, class: 'gl-button btn btn-confirm' do
New Project = _('New Project')
= button_tag "Search", class: "gl-button btn btn-confirm btn-search hide" = button_tag _("Search"), class: "gl-button btn btn-confirm btn-search hide"
= render 'projects' = render 'projects'
---
title: Externalize strings in projects/index.html.haml
merge_request: 58160
author: nuwe1
type: other
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