<%= content_for :header do %> Fet - Fotos: <%= @gallery.name %> <% if @openfotoid.nil? || @openfotoid==0 @firstfoto= @fotos_p.first unless @firstfoto.nil? picture_url=URI(root_url) picture_url.path=@firstfoto.datei.url(:locale=>nil, :theme=>nil) end set_meta_tags :og => { :image => picture_url.to_s, :title => @gallery.name.to_s, :type => "article", :url=>gallery_url(@gallery,:theme=>nil) } else @ofoto=Foto.find(@openfotoid) picture_url=URI(root_url) picture_url.path=@ofoto.datei.url(:locale=>nil, :theme=>nil) set_meta_tags :og => { :image => picture_url.to_s, :title => @gallery.name.to_s + " - FotoID:" + @ofoto.id.to_s, :type => "article", :url=>gallery_url(@gallery,{:fotoid=>@ofoto.id,:theme=>nil}) } end %> <%= display_meta_tags %> <% end %>

<%= notice %>

<%= @gallery.fotos.size.to_s + " " + I18n.t('fotos.bilder')%> <%=I18n.l(@gallery.try(:datum).try(:to_date)) unless @gallery.try(:datum).try(:to_date).nil? %>

<%= @gallery.name %>

<%= @gallery.desc %>

<%= paginate @fotos_p , theme:'twitter-bootstrap' %>
<% for i in 0..@pppage_array.size-1 %> <%=@pppage_array[i]%> <% end %>

<% @fotos_p.each do |f| %>
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, f.datei.url, :class=>"btn-small",title: I18n.t('fotos.download')+': '+f.title.to_s, rel: 'tooltip' %> <%= link_to ff_icon('icon-remove-circle').html_safe, gallery_foto_path(@gallery, f), :method => :delete, :class=>"btn-small btn-danger",title: I18n.t('fotos.delete')+': '+f.title, rel: 'tooltip', confirm: I18n.t('fotos.delete')+': '+f.title+', Sicher?' if can?(:delete,f) %>

<% end %>
<% if can? :delete,@gallery %>
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, '', :class=>"btn-small"%>: <%= I18n.t('fotos.download_long')%>
<%= link_to ff_icon('icon-remove-circle').html_safe, '', :class=>"btn-small btn-danger"%>: <%= I18n.t('fotos.delete')%>

<% end %> <%= render 'layouts/pretty_toolbar' %>
<%= javascript_include_tag "blueimp-gallery-all" %>