<%= content_for :header do %>


<title>Fetsite - <%= @rubrik.name %></title>
<% set_meta_tags :og => {
:title => @rubrik.name.to_s,
:url=> rubrik_path(@rubrik,:theme=>nil)
}
%>
<%= display_meta_tags %>

<% end %>
<% cache("rubriken_tabs_"+@rubrik.id.to_s + "_"+@rubriken.max{|r| r.updated_at.to_i}.updated_at.to_i.to_s + can?(:verwalten, Rubrik).to_s) do %>
<%= render 'tabs' %>
<% end %>
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
<p id="notice"><%= notice %></p>
<div class="content-wrap content-column">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">

<h1><%= @rubrik.name %></h1>
<p>
  <%= @rubrik.desc %>
</p>
<b>Moderatoren:</b>
<i>
  <% @moderatoren.each do |m|%>
  <%= m.email%>,
  <% end%>
</i>
</div></div>
<div class="row-fluid">

<div class="span9">
<ul class="unstyled linkbox-list" style="max-width:70em" id="neuigkeiten">
<% @neuigkeiten.each do |neuigkeit| %>
    <%= render neuigkeit, wrap_in: "li" %>
<% end %>
</ul>

<div id="infinite-scrolling">
<%= paginate @neuigkeiten, theme:'twitter-bootstrap' %>


</div>
</div>
<div class="span3">
<% unless @calentries.nil? || @calentries.empty? %>
  <% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at.to_i}.updated_at.to_i.to_s+"_"+I18n.locale.to_s+params[:month].to_s+params[:year].to_s) do %>
<%= render 'calendars/calentries', :object=>@calentries %>
<% end %>
<% end %>
<% if !current_user.nil? and current_user.has_role?(:fetuser) %>
	<%= link_to calendar_url(@rubrik.calendar,:format=>:ics, :key=>Key.find_or_create(current_user,1).uuid) , calendars_path(:format=>:ics, :key=>Key.find_or_create(current_user,1).uuid)%>
<% end %>


</div>

</div>

<br>
</div>
</div>

