suite
This commit is contained in:
parent
5db1296517
commit
c32794db8e
@ -6,9 +6,6 @@ $("document").ready ->
|
||||
position_img_now = ->
|
||||
|
||||
|
||||
|
||||
# alert $("#large .large-img").outerHeight(false)
|
||||
|
||||
imgheight = $("#large .large-img").outerHeight(false) + $("#large h3").outerHeight(false)
|
||||
|
||||
|
||||
@ -81,14 +78,12 @@ $("document").ready ->
|
||||
$(".expandable_image").click ->
|
||||
maxwidth = 1000
|
||||
maxheight = 900
|
||||
alert "t"
|
||||
|
||||
|
||||
|
||||
|
||||
prev_link = $(this)
|
||||
$("body").append "<div id='large'></div>"
|
||||
title = false
|
||||
alert "te"
|
||||
|
||||
|
||||
|
||||
$("#large").append "<div class='img_container first'></div>"
|
||||
@ -117,8 +112,7 @@ $("document").ready ->
|
||||
"max-width" : "85%"
|
||||
|
||||
position_img();
|
||||
|
||||
alert "t"
|
||||
|
||||
false
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
-if admin
|
||||
%h2 Galerie photo
|
||||
%h2 Galerie photos
|
||||
%h2=input.name
|
||||
.description
|
||||
=raw input.description
|
||||
@ -72,7 +72,8 @@
|
||||
|
||||
.rea-gal.img_gallery
|
||||
-input.gallery_images.each do |gallery_images|
|
||||
=link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.square.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => gallery_images.title
|
||||
-if gallery_images.image_file.file
|
||||
=link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.square.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => gallery_images.title
|
||||
.clear
|
||||
|
||||
|
||||
@ -90,16 +91,17 @@
|
||||
.slides
|
||||
%ul.slides-container
|
||||
-input.gallery_images.each do |gallery_images|
|
||||
%li
|
||||
=image_tag "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url
|
||||
-if gallery_images.image_file.file
|
||||
%li
|
||||
=image_tag "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url
|
||||
|
||||
.desc
|
||||
-if gallery_images.title?
|
||||
%h3
|
||||
=gallery_images.title
|
||||
="/" if gallery_images.description?
|
||||
-if gallery_images.description?
|
||||
=gallery_images.description
|
||||
.desc
|
||||
-if gallery_images.title?
|
||||
%h3
|
||||
=gallery_images.title
|
||||
="/" if gallery_images.description?
|
||||
-if gallery_images.description?
|
||||
=gallery_images.description
|
||||
|
||||
=raw "<div class='main'>"
|
||||
=raw "<div class='row-fluid'>"
|
||||
@ -114,6 +116,7 @@
|
||||
|
||||
.rea-gal.img_gallery
|
||||
-input.gallery_images.each do |gallery_images|
|
||||
=link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.medium.small.thumb.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => (gallery_images.title if input.show_title)
|
||||
-if gallery_images.image_file.file
|
||||
=link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.medium.small.thumb.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => (gallery_images.title if input.show_title)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user