Files
fetsite/app/views/themen/show.html.erb
Andreas Stephanides 5439d33a3c thema show width
2015-02-11 18:54:10 +01:00

50 lines
1.2 KiB
Plaintext

<%= content_for :header do %>
<title><%= @thema.title.to_s + " (" + @thema.themengruppe.title.to_s + ")" %></title>
<% unless @thema.attachments.first.nil?
# picture_url=URI(root_url)
# picture_url.path=@thema.picture.url(:locale=>nil, :theme=>nil)
end
%>
<% set_meta_tags :og => {
:title => @thema.title.to_s + " (" + @thema.themengruppe.title.to_s + ")",
:type => "article",
:description =>@thema.text_first_words,
:url=>thema_url(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %>
<p id="notice"><%= notice %></p>
<% link_to "Zurück", @thema.themengruppe %>
<% thema=@thema %><div class="content-wrap content-column" >
<div class="contentbox">
<%= render :partial => 'themen/small', :object => thema %>
<ul class="unstyled">
<% unless thema.gremium.nil? %>
<li>
<%= link_to fa_icon("users 2x")+thema.gremium.name , thema.gremium,:class=>"linkbox" %>
</li>
<% end %>
<% thema.nlinks.each do |l| %>
<li>
<%= render l.neuigkeit if can? :show, l.neuigkeit%>
</li>
<% end %>
</ul>
</div>
<br>
<div class="">
<%= render @thema.themengruppe %>
</div>
</div>
<% # render :partial=>'layouts/pretty_toolbar' %>