diff --git a/app/views/fotos/show.html.erb b/app/views/fotos/show.html.erb index 34eed73..55882f9 100644 --- a/app/views/fotos/show.html.erb +++ b/app/views/fotos/show.html.erb @@ -8,10 +8,9 @@ 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=>"" %> + :class=>"btn",title: I18n.t('fotos.download')+': '+@foto.title.to_s,:target=>:blank, :style=>"" %> <%= render_shareable :url=>gallery_foto_url(@foto.gallery,@foto, {theme: nil, locale: nil}),:static_link=>true, :buttons=>[:facebook, :twitter, :google_plus] %>

<%= notice %>

- diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index f9d564c..9e85f16 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -1,7 +1,7 @@ <%= content_for :header do %> Fet - Fotos: <%= @gallery.name %> -<% +<% if @openfotoid.nil? || @openfotoid==0 @firstfoto= @fotos_p.first unless @firstfoto.nil? @@ -70,7 +70,7 @@ end