diff --git a/app/views/content_viewer/image_gallery.rhtml b/app/views/content_viewer/image_gallery.rhtml
index 1aa1e01..f81baa9 100644
--- a/app/views/content_viewer/image_gallery.rhtml
+++ b/app/views/content_viewer/image_gallery.rhtml
@@ -8,7 +8,7 @@
<% @images.each do |a| %>
<%= render :partial => partial_for_class(a.class), :object => a %>
- <%= a.abstract && a.abstract.first(40) %>
+ <%= a.abstract && (a.abstract.first(40) + (a.abstract.size > 40 ? '…' : ''))%>
<% end %>
diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb
index a41be2c..4a7d3bd 100644
--- a/test/functional/content_viewer_controller_test.rb
+++ b/test/functional/content_viewer_controller_test.rb
@@ -846,7 +846,7 @@ class ContentViewerControllerTest < Test::Unit::TestCase
get :view_page, :profile => profile.identifier, :page => folder.explode_path
- assert_tag :tag => 'li', :attributes => {:class => 'image-gallery-item'}, :child => {:tag => 'span', :content => 'a long abstract bigger then 40 chars for'}
+ assert_tag :tag => 'li', :attributes => {:class => 'image-gallery-item'}, :child => {:tag => 'span', :content => 'a long abstract bigger then 40 chars for…'}
end
end
--
libgit2 0.21.2