forked from bofh/fetsite
commit
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -73,6 +73,7 @@ gem "cancan"
|
|||||||
# Fileupload
|
# Fileupload
|
||||||
|
|
||||||
gem 'paperclip' ,'~>3.4.0'
|
gem 'paperclip' ,'~>3.4.0'
|
||||||
|
gem 'blueimp-gallery'
|
||||||
|
|
||||||
gem 'git'
|
gem 'git'
|
||||||
gem 'haml'
|
gem 'haml'
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<div id="links">
|
<div id="links">
|
||||||
<% @fotos.each_index do |i| %>
|
<% @fotos.each_index do |i| %>
|
||||||
<% f= @fotos[i] %>
|
<% f= @fotos[i] %>
|
||||||
<a href="<%= f.datei.resized.url%>" title="<%=f.title%>">
|
<a href="<%= f.datei.resized.url%>" title="<%=f.title%>" data-gallery>
|
||||||
<%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid img-rounded"}) if @showind.include? i %></a>
|
<%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid img-rounded"}) if @showind.include? i %></a>
|
||||||
|
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<%= render 'layouts/pretty_toolbar' %>
|
<%= render 'layouts/pretty_toolbar' %>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('links').onclick = function (event) {
|
document.getElementById('links').onclick = function (event) {
|
||||||
event = event || window.event;
|
event = event || window.event;
|
||||||
@@ -71,4 +71,3 @@ document.getElementById('links').onclick = function (event) {
|
|||||||
blueimp.Gallery(links, options);
|
blueimp.Gallery(links, options);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user