From c55a2479e84eef6cf9cce0cc7bdfe89146ea008a Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sat, 28 Feb 2015 16:22:01 +0100 Subject: [PATCH] shareable --- Gemfile | 4 +++- app/views/fotos/show.html.erb | 10 +++++----- app/views/galleries/show.html.erb | 17 +++++++++++++++-- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index ba1a015..1cb1085 100755 --- a/Gemfile +++ b/Gemfile @@ -121,4 +121,6 @@ gem 'opengraph_parser' # Image gallery gem 'blueimp-gallery' -gem 'blueimp-gallery-rails' \ No newline at end of file +gem 'blueimp-gallery-rails' + +gem 'shareable' \ No newline at end of file diff --git a/app/views/fotos/show.html.erb b/app/views/fotos/show.html.erb index d4c084d..04c4e6b 100644 --- a/app/views/fotos/show.html.erb +++ b/app/views/fotos/show.html.erb @@ -3,14 +3,14 @@ position: absolute; left: 0; right: 0; -bottom: 0; -top: 0;" %> +bottom: 40pt; +top: 0" %> <% #, gallery_foto_path(@foto.gallery, ((@foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].nil?) ? (@foto.gallery.fotos[0].try(:id).to_i) : @foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].try(:id).to_i) ) %> -
+
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, @foto.datei.url, :class=>"btn",title: I18n.t('fotos.download')+': '+@foto.title,:target=>:blank, :style=>"" %> -
" data-layout="standard" data-action="like" data-show-faces="true" data-share="true">
- + +<%= render_shareable :url=>gallery_foto_url(@foto.gallery,@foto, {theme: nil, locale: nil}) %>

<%= notice %>

diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index ecda4af..8cd4f77 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -99,7 +99,7 @@ end × -
    +