Skip to content

Commit

Permalink
Merge pull request #3314 from mzazrivec/remove_vertical_line_from_get…
Browse files Browse the repository at this point in the history
…text_strings

Remove vertical lines from gettext strings
  • Loading branch information
chessbyte authored Jan 25, 2018
2 parents 5ff2c31 + 0372c32 commit 190984f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/helpers/quadicon_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def render_host_quadicon(item, options)
end

output << content_tag(:div, :class => 'flobj') do
title = _("Name: %{name} | Hostname: %{hostname}") % {:name => h(item.name), :hostname => h(item.hostname)}
title = _("Name: %{name} Hostname: %{hostname}") % {:name => h(item.name), :hostname => h(item.hostname)}

link_to(href, :title => title) do
quadicon_reflection_img
Expand Down Expand Up @@ -617,7 +617,7 @@ def render_ext_management_system_quadicon(item, options)
output << flobj_img_simple("layout/reflection.png")
else
output << content_tag(:div, :class => 'flobj') do
title = _("Name: %{name} | Hostname: %{hostname} | Refresh Status: %{status}") %
title = _("Name: %{name} Hostname: %{hostname} Refresh Status: %{status}") %
{:name => h(item.name),
:hostname => h(item.hostname),
:status => h(item.last_refresh_status.titleize)}
Expand Down Expand Up @@ -810,7 +810,7 @@ def quadicon_storage_link_options

def quadicon_storage_img_options(item)
opts = {
:title => _("Name: %{name} | Datastore Type: %{storage_type}") % {:name => h(item.name), :storage_type => h(item.store_type)}
:title => _("Name: %{name} Datastore Type: %{storage_type}") % {:name => h(item.name), :storage_type => h(item.store_type)}
}

opts
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/quadicon_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

RSpec.shared_examples :storage_name_type_title do
it 'has a title with name and type' do
expect(subject).to include("Name: #{item.name} | Datastore Type: VMFS")
expect(subject).to include("Name: #{item.name} Datastore Type: VMFS")
end
end

Expand Down

0 comments on commit 190984f

Please sign in to comment.