Skip to content

Instantly share code, notes, and snippets.

Avatar

maas designer maasdesigner

View GitHub Profile
View gist:6464128
CHANGE THIS show.html.erb
<% content_for :body_content_right do %>
<ul id='gallery'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url), image.thumbnail("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</li>
<% end %>
View gist:6463949
here small images
<ul class="lb-album">
<li>
<a href="#image-31">
<%= image_tag "10smal.jpg", alt: "image031"%>
<span>Dr. Bekir ÇELEBİ</span> </a>
HERE STYLE FOR BIG IMAGES
View gist:6463860
<% content_for :body_content_right do %>
<ul id='gallery'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url, id: 'image-id') %>
<div class="lb-overlay" id="image-id">
<%= image_tag image.thumbnail("900x600").url, id: 'image-id'%>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</div> </li>
View gist:6463587
NoMethodError in Refinery/pages#show
Showing /home/maasdesigner/Desktop/metroson/app/views/refinery/pages/show.html.erb where line #6 raised:
undefined method `large' for #<Refinery::Image:0xc879ab8>
Extracted source (around line #6):
3: <ul id='gallery'>
4: <% @page.images.each_with_index do |image, index| %>
View gist:6463431
<% content_for :body_content_right do %>
<ul class='lb-album'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url), image.thumbnail("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</li>
<% end %>
</ul>
<% end %>
View show.html.erb
<% content_for :body_content_right do %>
<ul id='gallery'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url), image.thumbnail("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</li>
<% end %>
</ul>
View gist:6453675
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url, { id: 'image-01' }) %>
<div class="lb-overlay" id="image<%= image.thumbnail("200x200#c").url %>">
<%= image_tag image.thumbnail("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</div>
</li>
View gist:6447154
<ul class='lb-album'>
<% @page.images.each do |image| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url) %>
<div class="lb-overlay" id="id<%= 'image.thumbnail.url' %>">
View gist:6441791
<ul id="gallery" class="clearfix">
<% photos_for_page.each_with_index do |photo, index| %>
<li>
<%= link_to (image_tag photo.preview_link(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.link_url, {
:target=> "_blank",
:class=>"fancybox",
:data =>{:title=> t('.image') + ' ' + (index + 1 ).to_s + '/' + photos_for_page.total_pages.to_s + ' ' + photo.title + '<br/><br/>' + photo.description},
:rel=>"group",
:title=> photo.title } %>
</li>
View gist:6441728
NoMethodError in Refinery/pages#show
Showing /home/maasdesigner/Desktop/metroson/app/views/refinery/photo_gallery/albums/_photos.html.erb where line #10 raised:
undefined method `preview_link' for #<Refinery::PhotoGallery::Photo:0x9e2c580>
Extracted source (around line #10):
7: <ul id="gallery" class="clearfix">
8: <% photos_for_page.each_with_index do |photo, index| %>