Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pagination now using an En Dash with spaces

  • Loading branch information...
commit cb2916cd97945c8725eab0fdade278753ca5a907 1 parent aa987ef
@gregbell gregbell authored
View
2  lib/active_admin/locales/en.yml
@@ -35,7 +35,7 @@ en:
empty: "No %{model} found"
one: "Displaying <b>1</b> %{model}"
one_page: "Displaying <b>all %{n}</b> %{model}"
- multiple: "Displaying %{model} <b>%{from}%{to}</b> of <b>%{total}</b> in total"
+ multiple: "Displaying %{model} <b>%{from}&nbsp;&ndash;&nbsp;%{to}</b> of <b>%{total}</b> in total"
entry:
one: "entry"
other: "entries"
View
4 spec/unit/views/components/paginated_collection_spec.rb
@@ -182,7 +182,7 @@ def paginated_collection(*args)
it "should display proper message (including number and not hash)" do
pagination.find_by_class('pagination_information').first.content.
- gsub('&nbsp;',' ').should == "Displaying posts <b>1 - 2</b> of <b>3</b> in total"
+ gsub('&nbsp;',' ').should == "Displaying posts <b>1 &ndash; 2</b> of <b>3</b> in total"
end
end
@@ -196,7 +196,7 @@ def paginated_collection(*args)
it "should show the proper item counts" do
pagination.find_by_class('pagination_information').first.content.
- gsub('&nbsp;',' ').should == "Displaying posts <b>61 - 81</b> of <b>81</b> in total"
+ gsub('&nbsp;',' ').should == "Displaying posts <b>61 &ndash; 81</b> of <b>81</b> in total"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.