Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use 'Vergroot deze afbeelding' on the title attribute of a link if cl…

…icking on it, renders a larger image.
  • Loading branch information...
commit 07d72fde9884bcb04d47766ae27a629871de0cb8 1 parent 3d6e03d
@vanderhoorn vanderhoorn authored
View
2  app/views/admin/news_items/_news_items.html.erb
@@ -26,7 +26,7 @@
image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s),
'#',
{
- :rel => "lightbox[#{news_item.node.id}]", :title => h(image_node.content.title),
+ :rel => "lightbox[#{news_item.node.id}]", :title => 'Vergroot deze afbeelding',
:class => 'right'
}
)
View
2  app/views/admin/weblog_posts/_image.html.haml
@@ -1,2 +1,2 @@
.weblogPostImage{ :id => "weblog_post_image_#{image.id}" }
- = link_to(image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s), '#', { :rel => "lightbox[#{@weblog_post.node.id}]", :title => h(image.title) })
+ = link_to(image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s), '#', { :rel => "lightbox[#{@weblog_post.node.id}]", :title => 'Vergroot deze afbeelding' })
View
2  app/views/images/_content_box_content.html.haml
@@ -2,4 +2,4 @@
- if content.url.present?
= link_to(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s), h(content.url), :title => "#{h content.description}", :class => 'clearfix')
- else
- = link_to_node(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s), node, { :action => :full }, { :rel => "lightbox['sidebox']", :title => "#{h content.description}" })
+ = link_to_node(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s), node, { :action => :full }, { :rel => "lightbox['sidebox']", :title => 'Vergroot deze afbeelding' })
View
2  app/views/news_items/_news_items.html.haml
@@ -20,7 +20,7 @@
.content.clearfix
- if (image_node = news_item.node.children.accessible.with_content_type('Image').first)
- = link_to_node(image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s), image_node, { :action => :full }, { :rel => "lightbox[#{news_item.node.id}]", :title => h(image_node.content.description), :class => 'right' })
+ = link_to_node(image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s), image_node, { :action => :full }, { :rel => "lightbox[#{news_item.node.id}]", :title => 'Vergroot deze afbeelding', :class => 'right' })
- if news_item.preamble.present?
= simple_format(h(news_item.preamble))
View
2  app/views/shared/_images_bar.html.haml
@@ -1,3 +1,3 @@
#images_bar
- images.each do |image|
- = link_to_node(image_tag(thumbnail_image_path(image, :format => :jpg), :alt => image.alt.to_s), image.node, { :action => :full, :format => :jpg}, { :rel => "lightbox[#{rel}]", :title => "#{h image.description}" })
+ = link_to_node(image_tag(thumbnail_image_path(image, :format => :jpg), :alt => image.alt.to_s), image.node, { :action => :full, :format => :jpg}, { :rel => "lightbox[#{rel}]", :title => 'Vergroot deze afbeelding' })
View
2  app/views/weblog_posts/_image.html.erb
@@ -4,7 +4,7 @@
image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s),
image.node,
{ :action => :full },
- { :rel => "lightbox[#{@weblog_post.node.id}]", :title => image.title }
+ { :rel => "lightbox[#{@weblog_post.node.id}]", :title => 'Vergroot deze afbeelding' }
)
-%>
<br/>
Please sign in to comment.
Something went wrong with that request. Please try again.