themen auf eigenen seiten anzeigen

This commit is contained in:
Andreas Stephanides
2015-02-10 14:04:18 +01:00
parent ebf486b347
commit 2b483ae9e9
2 changed files with 23 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ class ThemenController < ApplicationController
respond_to do |format| respond_to do |format|
format.html { format.html {
redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> "thema_"+params[:id].to_s # redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> "thema_"+params[:id].to_s
} }
format.js format.js
end end

View File

@@ -1,8 +1,27 @@
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>
<%= link_to "Zurück", @thema.themengruppe %> <%= link_to "Zurück", @thema.themengruppe %>
<br> <br>
<div class="contentbox"> <% thema=@thema %>
<%= render :partial=>"themen/small", :object=>@thema %> <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> </div>
<%= render :partial=>'layouts/pretty_toolbar' %>
<% # render :partial=>'layouts/pretty_toolbar' %>