immaculatepine / hermitage Goto Github PK
View Code? Open in Web Editor NEWRuby gem that makes rendering of image galleries easier
Home Page: http://immaculatepine.github.io/hermitage/
License: MIT License
Ruby gem that makes rendering of image galleries easier
Home Page: http://immaculatepine.github.io/hermitage/
License: MIT License
May I know if hermitage can support delete image in thumbnail view?
I'm trying to use this but my attachment is called "image" so I'm getting an undefined method error.
I looked over the docs but it doesn't look like this functionality is configureable?
Hey!
I have installed the gem and set it up, but the gallery is not being displayed.
I am using carrierwave to store my images, and I have
specified the correct attribute names so heritage has access to both
thumbnails and full image.
In my view:
<%= render_gallery_for @images %>
where @images is an array of objects with thumbnail and full images are accessible like this: @images[i].image.thumb.url & @images[i].image.url
Hermitage configuration:
Hermitage.configure :images do
original -> item { item.image.url }
thumbnail -> item { item.image.thumb.url }
title -> item { item.category.name }
list_tag :ul
item_tag :li
list_class 'thumbnails'
item_class 'span4'
link_class 'thumbnail'
image_class nil
each_slice nil
end
Clicking an image, (not being able to click to the next image, simply goes to the image url):
What am I doing wrong?
Thanks.
Is it possible to add a link into the image title? I would like to link to the source of my images.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.